CVE-2015-8857
CRITICAL 9.8CVSS 3.1Incorrect Handling of Non-Boolean Comparisons During Minification in uglify-js
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.
- Published
- 23 Jan 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-1254CWE-254CWE-670
- Also known as
- GHSA-34r7-q49f-h37c
- Sources
- NVDJSONOSV GHSA-34r7-q49f-h37cJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | uglifyjs_project | uglifyjscpe:2.3:a:uglifyjs_project:uglifyjs:*:*:*:*:*:node.js:*:* |
< 2.4.24 | 2.4.24 |
| OSV | npm | uglify-js | < 2.4.24 | 2.4.24 |
| OSV | RubyGems | uglifier | < 2.7.2 | 2.7.2 |
References
- http://www.openwall.com/lists/oss-security/2016/04/20/11 · Mailing List, Third Party Advisory, WEB
- http://www.securityfocus.com/bid/96410 · Third Party Advisory, VDB Entry
- https://nodesecurity.io/advisories/39 · Exploit, Patch, Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2015-8857 · ADVISORY
- https://github.com/mishoo/UglifyJS2/issues/751 · WEB
- https://github.com/lautis/uglifier/commit/4677bfe38142937ff952f95605bcec4618892c3e · WEB
- https://github.com/mishoo/UglifyJS2 · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uglifier/CVE-2015-8857.yml · WEB
- https://web.archive.org/web/20200227190830/http://www.securityfocus.com/bid/96410 · WEB
- https://zyan.scripts.mit.edu/blog/backdooring-js · WEB
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 23 Jan 2017)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 24 Oct 2017)