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

    Threat Intelligence

    EPSS
    0.04% (10th 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 ID SNYK-JS-JSDEOBFUSCATOR-7176000
  • published 2 Jun 2024
  • disclosed 31 May 2024
  • credit SteakEnthusiast

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
Expand this section

Snyk

Recommended
8.1 high
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Changed
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High