CVE-2026-118664

Source
https://cve.org/CVERecord?id=CVE-2026-118664
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-118664.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-118664
Aliases
Downstream
AZL (1)
CGA (118)
CLEANSTART (1)
CLSA (2)
MINI (2)
ROOT (1)
Published
2026-10-28T20:37:19Z
Modified
2026-10-31T02:30:28Z
Severity
  • 8.2 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
decode-uri-component: Denial of service via quadratic replacement of percent-encoded runs
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-400",
        "CWE-407"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118664.json"
}
References

Affected packages

Git / github.com/samverschueren/decode-uri-component

Affected ranges

Type
GIT
Repo
https://github.com/samverschueren/decode-uri-component
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "fixed": "0.5.1"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StringRangeExpression"
        },
        {
            "range": [
                {
                    "fixed": "fad01d65b93bd3f2f0dc32dfd8d57a38b57bc608"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "original_tag": "v0.5.1",
            "range": [
                {
                    "fixed": "58ed85f5adc7cfaee5e49e4d52b067f172d0bcb6"
                }
            ],
            "source": "REFERENCES_TAG"
        }
    ]
}

Affected versions

v0.*
v0.1.0
v0.2.0
v0.2.1
v0.2.2
v0.3.0
v0.4.0
v0.4.1
v0.5.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-118664.json"