GHSA-g6f4-j6c2-w3p3: Uglify js High Severity Vulnerability That Affects Vulnerability
HIGHGHSA-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
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.
npm install uglify-js@2.4.24
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
GHSA-g6f4-j6c2-w3p3 Affected Uglify js Versions
1 component(s)| 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?
Which Uglify js versions are affected?
What version fixes GHSA-g6f4-j6c2-w3p3?
Is uglify-js affected?
What CWE is associated with GHSA-g6f4-j6c2-w3p3?
How can I check npm dependencies for GHSA-g6f4-j6c2-w3p3?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}