RubySec

Providing security resources for the Ruby community

CVE-2015-8857 (uglifier): uglifier incorrectly handles non-boolean comparisons during minification

ADVISORIES

GEM

uglifier

SEVERITY

CVSS v3.x: 9.8 (Critical)

CVSS v2.0: 7.5 (High)

PATCHED VERSIONS

  • >= 2.7.2

DESCRIPTION

The upstream library for the Ruby uglifier gem, UglifyJS, is affected by a vulnerability that allows a specially crafted Javascript file to have altered functionality after minification.

This bug, found in UglifyJS versions 2.4.23 and earlier, was demonstrated to allow potentially malicious code to be hidden within secure code, and activated by the minification process.

For more information, consult:

  • https://zyan.scripts.mit.edu/blog/backdooring-js

  • CWE: 254 - 7PK - Security Features

RELATED