{"answers":{"affected":"2 open source packages ship an affected version, including decode-uri-component.","exploited":"There is no known exploitation of CVE-2026-118664 in the wild and no public exploit code.","fix":"Upgrade decode-uri-component to 0.5.1 or later.","what":"CVE-2026-118664 is a high-severity vulnerability in SamVerschueren decode-uri-component, published on 28 Oct 2026."},"fix_prompt":"Check this codebase for CVE-2026-118664 and fix it if it is affected.\n\nWhat it is: CVE-2026-118664 is a high-severity vulnerability in SamVerschueren decode-uri-component, published on 28 Oct 2026. \nExploitation: There is no known exploitation of CVE-2026-118664 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- decode-uri-component (npm): affected all versions; fixed in 0.5.1\n- decode-uri-component (npm): affected all versions; fixed in 0.5.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-118664/ (Markdown: https://insights.sbomify.com/CVE-2026-118664/index.md)","id":"CVE-2026-118664","markdown":"https://insights.sbomify.com/CVE-2026-118664/index.md","name":"CVE-2026-118664","record":{"aliases":["GHSA-qr28-fpjm-wq7f"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"decode-uri-component: Denial of service via quadratic replacement of percent-encoded runs","id":"CVE-2026-118664","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"GraphQL Tools: Per-request connection parameters persist into later users' WebSocket authentications","id":"CVE-2026-118665"},"packages":[{"ecosystem":"npm","fixed":["0.5.1"],"introduced":["0"],"last_affected":[],"package":"decode-uri-component","purl":null,"source":"GHSA-qr28-fpjm-wq7f"},{"ecosystem":"npm","fixed":["0.5.1"],"introduced":["0"],"last_affected":[],"package":"decode-uri-component","purl":"pkg:npm/decode-uri-component","source":"GHSA-qr28-fpjm-wq7f"}],"prev":{"headline":"@hono/node-server: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths","id":"CVE-2026-118663"},"products":["decode-uri-component"],"published":"2026-10-28","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-29","vendors":["SamVerschueren"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-118664/"}