Vulnerabilities in pkg:npm/js-deobfuscator
PACKAGECVE-2024-36120 is a HIGH (CVSS 8.1) javascript-deobfuscator crafted payload can lead vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Js deobfuscator libraries in the npm ecosystem. The issue involves javascript-deobfuscator crafted payload can lead to code execution. Remediation is available by upgrading affected packages to version 1.1.0.
pkg:npm/js-deobfuscator
Vulnerability advisories affecting package pkg:npm/js-deobfuscator. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-9p6p-8v9r-8c9m | CVE-2024-36120 | HIGH | javascript-deobfuscator crafted payload can lead to code execution |
CVE-2024-36120 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2024-36120
To remediate this vulnerability, upgrade all affected Js deobfuscator dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install js-deobfuscator@1.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls js-deobfuscator
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-36120, inspect your project dependencies using npm:
npm ls js-deobfuscator
Analyze the terminal output to locate any version of Js deobfuscator in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.0), your application is affected.
Note: The npm ls js-deobfuscator command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Js deobfuscator, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-36120 Affected Js deobfuscator Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
js-deobfuscator
|
npm |
< 1.1.0
|
1.1.0
|
References
Frequently Asked Questions
What is CVE-2024-36120?
Which Js deobfuscator versions are affected?
What version fixes CVE-2024-36120?
Is js-deobfuscator affected?
What is the CVSS score of CVE-2024-36120?
What CWE is associated with CVE-2024-36120?
How can I check npm dependencies for CVE-2024-36120?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9p6p-8v9r-8c9m",
"modified" : "2024-06-04T15:13:54Z",
"published" : "2024-06-04T15:13:54Z",
"aliases" : [ "CVE-2024-36120" ],
"summary" : "javascript-deobfuscator crafted payload can lead to code execution",
"details" : "javascript-deobfuscator removes common JavaScript obfuscation techniques. Crafted payloads targeting expression simplification can lead to code execution. This issue has been patched in version 1.1.0.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "js-deobfuscator"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ben-sb/javascript-deobfuscator/security/advisories/GHSA-9p6p-8v9r-8c9m"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-36120"
}, {
"type" : "WEB",
"url" : "https://github.com/ben-sb/javascript-deobfuscator/commit/630d3caec83d5f31c5f7a07e6fadf613d06699d6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ben-sb/javascript-deobfuscator"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-06-04T15:13:54Z",
"nvd_published_at" : "2024-05-31T17:15:09Z"
}
}