GHSA-hg7c-66ff-9q8g: Constantinople Sandbox Bypass Vulnerability

MODERATE
Published
Advisory Summary

GHSA-hg7c-66ff-9q8g is a MODERATE sandbox bypass vulnerability (General Security Weakness) affecting Constantinople libraries in the npm ecosystem. The issue involves sandbox bypass in constantinople. Remediation is available by upgrading affected packages to version 3.1.1.

GHSA-hg7c-66ff-9q8g at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-hg7c-66ff-9q8g
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Constantinople
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-hg7c-66ff-9q8g

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-hg7c-66ff-9q8g, 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

constantinople before 3.1.1 affected by a sandbox bypass.

GHSA-hg7c-66ff-9q8g 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-hg7c-66ff-9q8g?
GHSA-hg7c-66ff-9q8g is a security vulnerability in Constantinople involving Sandbox bypass 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-hg7c-66ff-9q8g?
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 CWE is associated with GHSA-hg7c-66ff-9q8g?
GHSA-hg7c-66ff-9q8g is classified under General Security Weakness.
How can I check npm dependencies for GHSA-hg7c-66ff-9q8g?
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-hg7c-66ff-9q8g",
  "modified" : "2020-07-31T16:18:53Z",
  "published" : "2020-07-31T16:18:53Z",
  "withdrawn" : "2020-07-31T16:18:53Z",
  "aliases" : [ ],
  "summary" : "Sandbox bypass in constantinople",
  "details" : "constantinople before 3.1.1 affected by a sandbox bypass.",
  "severity" : [ ],
  "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" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-hg7c-66ff-9q8g"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/568"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-04-16T03:01:22Z",
    "nvd_published_at" : null
  }
}