Description
decode-uri-component provides a more robust alternative to decodeURIComponent. Prior to 0.5.1, decodeUriComponent in index.js falls back to customDecodeURIComponent after native decoding throws, and the fallback collects every distinct percent-encoded run before performing a full-string regular-expression replacement for each entry. Malformed input containing many distinct runs can therefore make both the number of replacements and the scanned input length grow together, causing quadratic CPU consumption and blocking the Node.js event loop; request-body inputs can reach the demonstrated size, while ordinary URL header limits reduce the practical delay. This issue is fixed in version 0.5.1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| SamVerschueren | decode-uri-component | < 0.5.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | js-jquery | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | kubeflow-pipelines-frontend | 2.18.0-r7 | — |
| Wolfi rolling | nextcloud-server-33 | 33.0.10-r5 | — |
| Wolfi rolling | opensearch-dashboards-3 +1 | 3.9.0-r10 | — |
| Wolfi rolling | vitess-23 | 23.0.8-r3 | — |
| Wolfi rolling | vitess-24 | 24.0.5-r8 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | decode-uri-component | < 0.5.1 | 0.5.1 | GHSA-qr28-fpjm-wq7f |