PT-2022-17618 · Unknown · Node-Fetch
Published
2022-08-01
·
Updated
2023-07-11
·
CVE-2022-2596
CVSS v3.1
5.9
Medium
| Vector | AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
node-fetch versions prior to 3.2.10
Description
The issue is related to Inefficient Regular Expression Complexity, which can lead to a Regular Expression Denial of Service (ReDoS) in the
isOriginPotentiallyTrustworthy() function. This occurs when processing a URL string with alternating letters and periods.Recommendations
For versions prior to 3.2.10, update to version 3.2.10 or later to resolve the issue. As a temporary workaround, consider disabling the
isOriginPotentiallyTrustworthy() function in referrer.js until a patch is available. Restrict access to the referrer.js module to minimize the risk of exploitation. Avoid using the isOriginPotentiallyTrustworthy() function with URL strings that may cause ReDoS until the issue is resolved.Exploit
Fix
Resource Exhaustion
DoS
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Node-Fetch