Vulnerabilities in pkg:npm/es5-ext
PACKAGECVE-2024-27088 is a LOW denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Es5 ext libraries in the npm ecosystem. The issue involves es5-ext vulnerable to regular expression denial of service in `function#copy` and `function#tostringtokens`. Remediation is available by upgrading affected packages to version 0.10.63.
pkg:npm/es5-ext
Vulnerability advisories affecting package pkg:npm/es5-ext. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-4gmj-3p3h-gm8h | CVE-2024-27088 | LOW | es5-ext vulnerable to Regular Expression Denial of Service in `function#copy` and `function#toStringTokens` |
CVE-2024-27088 at a Glance
How to Fix CVE-2024-27088
To remediate this vulnerability, upgrade all affected Es5 ext 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 es5-ext@0.10.63
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls es5-ext
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-27088, inspect your project dependencies using npm:
npm ls es5-ext
Analyze the terminal output to locate any version of Es5 ext in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.63), your application is affected.
Note: The npm ls es5-ext 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-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Es5 ext, 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-27088 Affected Es5 ext Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
es5-ext
|
npm |
≥ 0.10.0
< 0.10.63
|
0.10.63
|
References
Frequently Asked Questions
What is CVE-2024-27088?
Which Es5 ext versions are affected?
What version fixes CVE-2024-27088?
Is es5-ext affected?
What CWE is associated with CVE-2024-27088?
How can I check npm dependencies for CVE-2024-27088?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4gmj-3p3h-gm8h",
"modified" : "2024-02-26T20:01:28Z",
"published" : "2024-02-26T20:01:28Z",
"aliases" : [ "CVE-2024-27088" ],
"summary" : "es5-ext vulnerable to Regular Expression Denial of Service in `function#copy` and `function#toStringTokens`",
"details" : "### Impact\n\nPassing functions with very long names or complex default argument names into `function#copy` or`function#toStringTokens` may put script to stall\n\n### Patches\nFixed with https://github.com/medikoo/es5-ext/commit/3551cdd7b2db08b1632841f819d008757d28e8e2 and https://github.com/medikoo/es5-ext/commit/a52e95736690ad1d465ebcd9791d54570e294602\nPublished with v0.10.63\n\n### Workarounds\nNo real workaround aside of refraining from using above utilities.\n\n### References\nhttps://github.com/medikoo/es5-ext/issues/201\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "es5-ext"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.10.0"
}, {
"fixed" : "0.10.63"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/medikoo/es5-ext/security/advisories/GHSA-4gmj-3p3h-gm8h"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-27088"
}, {
"type" : "WEB",
"url" : "https://github.com/medikoo/es5-ext/issues/201"
}, {
"type" : "WEB",
"url" : "https://github.com/medikoo/es5-ext/commit/3551cdd7b2db08b1632841f819d008757d28e8e2"
}, {
"type" : "WEB",
"url" : "https://github.com/medikoo/es5-ext/commit/a52e95736690ad1d465ebcd9791d54570e294602"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/medikoo/es5-ext"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-26T20:01:28Z",
"nvd_published_at" : "2024-02-26T17:15:11Z"
}
}