CVE-2015-8857
CRITICAL9.8EPSS 0.27%Incorrect Handling of Non-Boolean Comparisons During Minification in uglify-js
Published: 10/24/2017Modified: 4/28/2026
Description
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.
Affected packages (3)
- Debian/uglifyjsfrom 0, < 2.7.4-1
- npm/uglify-jsfrom 0, < 2.4.24
- RubyGems/uglifierfrom 0, < 2.7.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (9)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2015-8857
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2015-8857
- PATCHhttps://github.com/mishoo/UglifyJS2
- WEBhttps://github.com/lautis/uglifier/commit/4677bfe38142937ff952f95605bcec4618892c3e
- WEBhttps://github.com/mishoo/UglifyJS2/issues/751
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/uglifier/CVE-2015-8857.yml
- WEBhttps://web.archive.org/web/20200227190830/http://www.securityfocus.com/bid/96410
- WEBhttps://zyan.scripts.mit.edu/blog/backdooring-js
- WEBhttp://www.openwall.com/lists/oss-security/2016/04/20/11