GHSA-4vmm-mhcq-4x9j: Constantinople Sandbox Bypass Leading To Arbitrary Vulnerability

CRITICAL
CVSS 10.0
Published
Advisory Summary

GHSA-4vmm-mhcq-4x9j is a CRITICAL (CVSS 10.0) sandbox bypass leading to arbitrary vulnerability (General Security Weakness) affecting Constantinople libraries in the npm ecosystem. The issue involves sandbox bypass leading to arbitrary code execution in constantinople. Remediation is available by upgrading affected packages to version 3.1.1.

GHSA-4vmm-mhcq-4x9j at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-4vmm-mhcq-4x9j
Severity CRITICAL
CVSS v3.1 Base Score 10.0
CWE Classification General Security Weakness
Affected Product Constantinople
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 10.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-4vmm-mhcq-4x9j

To remediate this vulnerability, upgrade all affected Constantinople dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

constantinople fixed: 3.1.1
npm install constantinople@3.1.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls constantinople

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-4vmm-mhcq-4x9j, inspect your project dependencies using npm:

npm ls constantinople

Analyze the terminal output to locate any version of Constantinople in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.1), your application is affected.

Note: The npm ls constantinople command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Constantinople, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Versions of `constantinople` prior to 3.1.1 are vulnerable to a sandbox bypass which can lead to arbitrary code execution. ## Recommendation Update to version 3.1.1 or later.

GHSA-4vmm-mhcq-4x9j Affected Constantinople Versions

1 component(s)
Fixed Versions:
3.1.1
Product / Package Ecosystem Affected Versions Fixed Version
constantinople
npm
< 3.1.1
3.1.1

References

Frequently Asked Questions

What is GHSA-4vmm-mhcq-4x9j?
GHSA-4vmm-mhcq-4x9j is a security vulnerability in Constantinople involving Sandbox Bypass Leading to Arbitrary Code Execution in constantinople under General Security Weakness.
Which Constantinople versions are affected?
Affected versions include releases prior to 3.1.1 across affected packages: constantinople.
What version fixes GHSA-4vmm-mhcq-4x9j?
Upgrading to 3.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is constantinople affected?
Yes, constantinople is affected in releases prior to 3.1.1. Upgrade your dependency to 3.1.1 or later.
What is the CVSS score of GHSA-4vmm-mhcq-4x9j?
GHSA-4vmm-mhcq-4x9j has a CVSS v3.1 base score of 10.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N.
What CWE is associated with GHSA-4vmm-mhcq-4x9j?
GHSA-4vmm-mhcq-4x9j is classified under General Security Weakness.
How can I check npm dependencies for GHSA-4vmm-mhcq-4x9j?
Run the dependency tree command: 'npm ls constantinople'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4vmm-mhcq-4x9j",
  "modified" : "2021-08-16T16:06:38Z",
  "published" : "2019-06-14T16:15:14Z",
  "aliases" : [ ],
  "summary" : "Sandbox Bypass Leading to Arbitrary Code Execution in constantinople",
  "details" : "Versions of `constantinople` prior to 3.1.1 are vulnerable to a sandbox bypass which can lead to arbitrary code execution.\n\n\n## Recommendation\n\nUpdate to version 3.1.1 or later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "constantinople"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pugjs/constantinople/commit/01d409c0d081dfd65223e6b7767c244156d35f7f"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1577703"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/npm:constantinople:20180421"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/568"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-06-14T16:14:40Z",
    "nvd_published_at" : null
  }
}