PT-2026-53825 · Npm · Decode-Uri-Component
CVSS v4.0
6.6
Medium
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/S:N/AU:Y/R:U/V:D/RE:M/U:Amber |
Name of the Vulnerable Software and Affected Versions
decode-uri-component versions 0.4.1 and earlier
Description
A denial of service issue exists where the
decode() function splits input based on the '%' character, creating N tokens that are then processed by decodeComponents(). This process results in super-linear parsing time, where increasing the number of tokens significantly increases processing time (e.g., 200 tokens take 0.7s, while 1400 tokens take 33s). An attacker can exploit this by providing crafted input to cause high CPU consumption and block the event-loop.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
DoS
Resource Exhaustion
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Decode-Uri-Component