Code Injection Affecting js-deobfuscator package, versions <1.1.0


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.04% (11th percentile)

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 Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-JSDEOBFUSCATOR-7176000
  • published2 Jun 2024
  • disclosed31 May 2024
  • creditSteakEnthusiast

Introduced: 31 May 2024

CVE-2024-36120  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade js-deobfuscator to version 1.1.0 or higher.

Overview

js-deobfuscator is an A simple but powerful deobfuscator to remove common JavaScript obfuscation techniques. Open an issue if there is a feature you think should be implemented.

Affected versions of this package are vulnerable to Code Injection through crafted payloads targeting expression simplification. An attacker can execute arbitrary code by exploiting improperly handled input in the expression simplification feature.

Workaround

This vulnerability can be mitigated by disabling the expression simplification feature.

References

CVSS Scores

version 3.1