mishoo/uglifyjs2 · Security
Incorrect Handling of Non-Boolean Comparisons During Minification in uglify-js
- GHSA ID
- GHSA-34r7-q49f-h37c
- CVE ID
- CVE-2015-8857
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
Versions of uglify-js prior to 2.4.24 are affected by a vulnerability which may cause crafted JavaScript to have altered functionality after minification.
Recommendation
Upgrade UglifyJS to version >= 2.4.24.
CWEs
- CWE-670 · Always-Incorrect Control Flow Implementation
- CWE-1254 · Incorrect Comparison Logic Granularity
References
- https://nvd.nist.gov/vuln/detail/CVE-2015-8857 ↗
- https://github.com/mishoo/UglifyJS2/issues/751 ↗
- https://zyan.scripts.mit.edu/blog/backdooring-js/ ↗
- http://www.openwall.com/lists/oss-security/2016/04/20/11 ↗
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uglifier/CVE-2015-8857.yml ↗
- https://web.archive.org/web/20200227190830/http://www.securityfocus.com/bid/96410 ↗
- https://github.com/lautis/uglifier/commit/4677bfe38142937ff952f95605bcec4618892c3e ↗
- https://github.com/advisories/GHSA-34r7-q49f-h37c ↗