Loading...
Skip to main content

CVE-2015-8857 — Vulnerability in uglifier — CVE Details

CRITICAL

Incorrect Handling of Non-Boolean Comparisons During Minification in uglify-js

Published October 24, 2017Updated February 16, 2024Source: osv

Summary

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.

Advisory Timeline

  • First published October 24, 2017 (3275 days ago).
  • Last revised February 16, 2024 — 2306 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update uglifier to 2.7.2 or later
gem install uglifier -v 2.7.2
npm
Update uglify-js to 2.4.24 or later
npm install uglify-js@2.4.24

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 2 ecosystems: npm (1), rubygems (1).

PackageEcosystemAffectedFixed In
uglifier
rubygems
0.1.0, 0.1.1, 0.2.0, 0.3.0 (+40 more)2.7.2
uglify-js
npm
All versions2.4.24

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2015-8857?
Incorrect Handling of Non-Boolean Comparisons During Minification in uglify-js This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2015-8857?
CVE-2015-8857 affects uglifier and uglify-js. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2015-8857 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-34r7-q49f-h37c

Related CVEs

  • CVE-2026-107722
    CRITICAL

    fast-jwt: Incomplete patch of CVE-2026-34950: Non-whitespace key-prefix re-enables RSA→HS256 algorithm confusion

  • CVE-2026-108261
    CRITICAL

    TinaCMS admin preview iframe loads an attacker-controlled origin from the URL fragment

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies