{"id":"GHSA-34r7-q49f-h37c","summary":"Incorrect Handling of Non-Boolean Comparisons During Minification in uglify-js","details":"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.\n\n## Recommendation\n\nUpgrade UglifyJS to version \u003e= 2.4.24.","aliases":["CVE-2015-8857"],"modified":"2024-02-15T05:32:13.081195Z","published":"2017-10-24T18:33:36Z","database_specific":{"nvd_published_at":"2017-01-23T21:59:00Z","cwe_ids":["CWE-1254","CWE-670"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2020-06-16T20:54:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2015-8857"},{"type":"WEB","url":"https://github.com/mishoo/UglifyJS2/issues/751"},{"type":"WEB","url":"https://github.com/lautis/uglifier/commit/4677bfe38142937ff952f95605bcec4618892c3e"},{"type":"PACKAGE","url":"https://github.com/mishoo/UglifyJS2"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uglifier/CVE-2015-8857.yml"},{"type":"WEB","url":"https://web.archive.org/web/20200227190830/http://www.securityfocus.com/bid/96410"},{"type":"WEB","url":"https://zyan.scripts.mit.edu/blog/backdooring-js"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2016/04/20/11"}],"affected":[{"package":{"name":"uglify-js","ecosystem":"npm","purl":"pkg:npm/uglify-js"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.4.24"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-34r7-q49f-h37c/GHSA-34r7-q49f-h37c.json"}},{"package":{"name":"uglifier","ecosystem":"RubyGems","purl":"pkg:gem/uglifier"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.2"}]}],"versions":["0.1.0","0.1.1","0.2.0","0.3.0","0.4.0","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.1.0","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","1.2.7","1.3.0","2.0.0","2.0.1","2.1.0","2.1.1","2.1.2","2.2.0","2.2.1","2.3.0","2.3.1","2.3.2","2.3.3","2.4.0","2.5.0","2.5.1","2.5.3","2.6.0","2.6.1","2.7.0","2.7.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-34r7-q49f-h37c/GHSA-34r7-q49f-h37c.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}