Improper minification of non-boolean comparisons Affecting uglifier package, versions < 2.7.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper minification of non-boolean comparisons vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-UGLIFIER-20236
  • published20 Jul 2015
  • disclosed20 Jul 2015
  • creditUnknown

Introduced: 20 Jul 2015

CVE NOT AVAILABLE CWE-95  (opens in a new tab)

How to fix?

Upgrade uglifier to version 2.7.2 or higher.

Overview

uglifier is a gem that minifies and compresses JavaScript files.

Affected versions of this package are vulnerable to Improper minification of non-boolean comparisons. It slightly alters the functionality of a JavaScript file after the minification process. This bug was demonstrated to allow potentially malicious code to be hidden within secure code, and activated by the minification process. "Backdooring your JavaScript using minifier bugs" explains how this works.

CVSS Scores

version 3.1