Technical impact
decode-uri-component processes percent-encoded sequences by collecting distinct runs and performing a global replacement. When an input contains many unique percent-encoded runs, the number of replacements and the scanned length grow together, leading to quadratic CPU consumption. The event loop is blocked, causing a denial of service to the application. The flaw is tied to improper input validation (CWE-400), resource exhaustion (CWE-407), and improper handling of encoded sequences (CWE-1322).
Affected Systems
The vulnerable library is SamVerschueren's decode-uri-component. All releases before version 0.5.1 are affected. Updating to v0.5.1 or later, which removed the quadratic replacement logic, resolves the issue.
Risk and Exploitability
The CVSS score of 8.2 indicates a high severity denial of service. The EPSS score is < 1%, indicating a low exploitation probability, but the lack of a public exploit and absence from the KEV catalog suggest low to moderate real-world risk. However, any system that processes user-supplied input through decode‑uri‑component could be targeted by sending a crafted payload with many distinct percent‑encoded runs, triggering the quadratic CPU usage. The likely attack vector is through malicious request bodies or query parameters that reach the library via application code.
Github GHSA