GHSA-g6f4-j6c2-w3p3: Uglify js High Severity Vulnerability That Affects Vulnerability

HIGH
Published
Advisory Summary

GHSA-g6f4-j6c2-w3p3 is a HIGH high severity vulnerability that affects vulnerability (General Security Weakness) affecting Uglify js libraries in the npm ecosystem. The issue involves high severity vulnerability that affects uglify-js. Remediation is available by upgrading affected packages to version 2.4.24.

GHSA-g6f4-j6c2-w3p3 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-g6f4-j6c2-w3p3
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Uglify js
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-g6f4-j6c2-w3p3

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

uglify-js fixed: 2.4.24
npm install uglify-js@2.4.24
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 uglify-js

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-g6f4-j6c2-w3p3, inspect your project dependencies using npm:

npm ls uglify-js

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

Note: The npm ls uglify-js 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 Uglify js, 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

Withdrawn, accidental duplicate publish. The uglify-js package before 2.4.24 for Node.js does not properly account for non-boolean values when rewriting boolean expressions, which might allow attackers to bypass security mechanisms or possibly have unspecified other impact by leveraging improperly rewritten Javascript.

GHSA-g6f4-j6c2-w3p3 Affected Uglify js Versions

1 component(s)
Fixed Versions:
2.4.24
Product / Package Ecosystem Affected Versions Fixed Version
uglify-js
npm
< 2.4.24
2.4.24

References

Frequently Asked Questions

What is GHSA-g6f4-j6c2-w3p3?
GHSA-g6f4-j6c2-w3p3 is a security vulnerability in Uglify js involving High severity vulnerability that affects uglify-js under General Security Weakness.
Which Uglify js versions are affected?
Affected versions include releases prior to 2.4.24 across affected packages: uglify-js.
What version fixes GHSA-g6f4-j6c2-w3p3?
Upgrading to 2.4.24 (or the latest patched release for your respective branch) resolves the vulnerability.
Is uglify-js affected?
Yes, uglify-js is affected in releases prior to 2.4.24. Upgrade your dependency to 2.4.24 or later.
What CWE is associated with GHSA-g6f4-j6c2-w3p3?
GHSA-g6f4-j6c2-w3p3 is classified under General Security Weakness.
How can I check npm dependencies for GHSA-g6f4-j6c2-w3p3?
Run the dependency tree command: 'npm ls uglify-js'. 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-g6f4-j6c2-w3p3",
  "modified" : "2020-06-17T15:14:46Z",
  "published" : "2018-10-09T00:39:43Z",
  "withdrawn" : "2020-06-17T15:14:46Z",
  "aliases" : [ ],
  "summary" : "High severity vulnerability that affects uglify-js",
  "details" : "Withdrawn, accidental duplicate publish.\n\nThe uglify-js package before 2.4.24 for Node.js does not properly account for non-boolean values when rewriting boolean expressions, which might allow attackers to bypass security mechanisms or possibly have unspecified other impact by leveraging improperly rewritten Javascript.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "uglify-js"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.4.24"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-8857"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-g6f4-j6c2-w3p3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-17T15:14:46Z",
    "nvd_published_at" : null
  }
}