js-beautify@1.8.0-rc4 vulnerabilities

beautifier.io for node

Direct Vulnerabilities

Known vulnerabilities in the js-beautify 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)

js-beautify is a reformat and re-indent bookmarklets, ugly JavaScript, unpack scripts packed by Dean Edward’s popular packer, as well as partly deobfuscate scripts processed by the npm package "javascript-obfuscator".

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to an unsafe regex in tokenizer.py and tokenizer.js.

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

Upgrade js-beautify to version 1.14.1 or higher.

<1.14.1