GHSA-4vmm-mhcq-4x9j: Constantinople Sandbox Bypass Leading To Arbitrary Vulnerability
CRITICALGHSA-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
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).
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.
npm install constantinople@3.1.1
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
GHSA-4vmm-mhcq-4x9j Affected Constantinople Versions
1 component(s)| 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?
Which Constantinople versions are affected?
What version fixes GHSA-4vmm-mhcq-4x9j?
Is constantinople affected?
What is the CVSS score of GHSA-4vmm-mhcq-4x9j?
What CWE is associated with GHSA-4vmm-mhcq-4x9j?
How can I check npm dependencies for GHSA-4vmm-mhcq-4x9j?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}