Vulnerabilities in pkg:npm/cacheable-request
PACKAGEGHSA-8x6c-cv3v-vp6g is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Withdrawn libraries in the npm ecosystem. The issue involves cacheable-request depends on http-cache-semantics, which is vulnerable to regular expression denial of service. Remediation is available by upgrading affected packages to version 10.2.7.
pkg:npm/cacheable-request
Vulnerability advisories affecting package pkg:npm/cacheable-request. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8x6c-cv3v-vp6g | - | HIGH | Withdrawn: cacheable-request depends on http-cache-semantics, which is vulnerable to Regular Expression Denial of Service |
GHSA-8x6c-cv3v-vp6g at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix GHSA-8x6c-cv3v-vp6g
To remediate this vulnerability, upgrade all affected Withdrawn 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 cacheable-request@10.2.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls cacheable-request
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-8x6c-cv3v-vp6g, inspect your project dependencies using npm:
npm ls cacheable-request
Analyze the terminal output to locate any version of Withdrawn in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.2.7), your application is affected.
Note: The npm ls cacheable-request 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 Withdrawn, 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
GHSA-8x6c-cv3v-vp6g Affected Withdrawn Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cacheable-request
|
npm |
< 10.2.7
|
10.2.7
|
References
Frequently Asked Questions
What is GHSA-8x6c-cv3v-vp6g?
Which Withdrawn versions are affected?
What version fixes GHSA-8x6c-cv3v-vp6g?
Is cacheable-request affected?
What is the CVSS score of GHSA-8x6c-cv3v-vp6g?
What CWE is associated with GHSA-8x6c-cv3v-vp6g?
How can I check npm dependencies for GHSA-8x6c-cv3v-vp6g?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8x6c-cv3v-vp6g",
"modified" : "2023-02-14T02:40:00Z",
"published" : "2023-02-11T00:13:31Z",
"withdrawn" : "2023-02-14T02:40:00Z",
"aliases" : [ ],
"summary" : "Withdrawn: cacheable-request depends on http-cache-semantics, which is vulnerable to Regular Expression Denial of Service",
"details" : "## This advisory is withdawn.\n\ncacheable-request depends on http-cache-semanttics, which contains an Inefficient Regular Expression Complexity in versions prior to 4.1.1 of that package. cacheable-request has been updated to rely on the fixed version in 10.2.7. \n\n### Summary of http-cache-semantics vulnerability\nhttp-cache semantics contains an Inefficient Regular Expression Complexity , leading to Denial of Service. This affects versions of the package http-cache-semantics before 4.1.1. The issue can be exploited via malicious request header values sent to a server, when that server reads the cache policy from the request using this library.\n\n### Details\nhttps://github.com/advisories/GHSA-rc47-6667-2j5j\n\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "cacheable-request"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "10.2.7"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/jaredwray/cacheable-request/security/advisories/GHSA-8x6c-cv3v-vp6g"
}, {
"type" : "WEB",
"url" : "https://github.com/jaredwray/cacheable-request/commit/8a47777e4eb61960469873cf4b3a2823742fc15e"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-rc47-6667-2j5j"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jaredwray/cacheable-request"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-02-11T00:13:31Z",
"nvd_published_at" : null
}
}