uglify-js@1.2.2 vulnerabilities

JavaScript parser, mangler/compressor and beautifier toolkit

Direct Vulnerabilities

Known vulnerabilities in the uglify-js package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Regular Expression Denial of Service (ReDoS)

uglify-js is a JavaScript parser, minifier, compressor and beautifier toolkit.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the string_template and the decode_template functions.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade uglify-js to version 3.14.3 or higher.

<3.14.3
  • M
Regular Expression Denial of Service (ReDoS)

The parse() function in the uglify-js package prior to version 2.6.0 is vulnerable to regular expression denial of service (ReDoS) attacks when long inputs of certain patterns are processed.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade to version 2.6.0 or greater. If a direct dependency update is not possible, use snyk wizard to patch this vulnerability.

<2.6.0
  • M
Regular Expression Denial of Service (ReDoS)

The parse() function in the uglify-js package prior to version 2.6.0 is vulnerable to regular expression denial of service (ReDoS) attacks when long inputs of certain patterns are processed.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade to version 2.6.0 or greater. If a direct dependency update is not possible, use snyk wizard to patch this vulnerability.

<2.6.0