CVE-2026-45822: decode-uri-component Remote Code Execution Vulnerability
MODERATECVE-2026-45822 is a MODERATE remote code execution vulnerability (CWE-405: Asymmetric Resource Consumption (Amplification)) affecting decode-uri-component libraries in the npm ecosystem. The issue involves denial of service via exponential decoding of malformed percent-encoded input. Remediation is available by upgrading affected packages to version 0.5.0.
CVE-2026-45822 at a Glance
How to Fix CVE-2026-45822
To remediate this vulnerability, upgrade all affected decode-uri-component dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install decode-uri-component@0.5.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls decode-uri-component
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-45822, inspect your project dependencies using npm:
npm ls decode-uri-component
Analyze the terminal output to locate any version of decode-uri-component in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.0), your application is affected.
Note: The npm ls decode-uri-component command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-405: Asymmetric Resource Consumption (Amplification), where the product does not properly control situations in which an adversary can cause the product to consume or produce excessive resources without requiring the adversary to invest equivalent work or otherwise prove authorization, i.e., the adversary's influence is "asymmetric.". In decode-uri-component, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-45822 Affected decode-uri-component Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
decode-uri-component
|
npm |
< 0.5.0
|
0.5.0
|
References
Frequently Asked Questions
What is CVE-2026-45822?
Which decode-uri-component versions are affected?
What version fixes CVE-2026-45822?
Is decode-uri-component affected?
What CWE is associated with CVE-2026-45822?
How can I check npm dependencies for CVE-2026-45822?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vcc3-ghjq-m6fr",
"modified" : "2026-08-31T22:10:20Z",
"published" : "2026-08-31T22:10:20Z",
"aliases" : [ "CVE-2026-45822" ],
"summary" : "decode-uri-component: Denial of service via exponential decoding of malformed percent-encoded input",
"details" : "### Impact\nAn attacker who can supply input to `decodeUriComponent()` (directly or via a dependency that uses this package on URL/query/path data) can cause excessive CPU usage and application unresponsiveness. This is an availability issue; there is no known memory corruption, data disclosure, or remote code execution impact.\n\n### Patches\nUpgrade to `decode-uri-component@0.5.0`.\n\n### Workarounds\nLimit the size of the input.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "decode-uri-component"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.4.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/SamVerschueren/decode-uri-component/security/advisories/GHSA-vcc3-ghjq-m6fr"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-45822"
}, {
"type" : "WEB",
"url" : "https://github.com/SamVerschueren/decode-uri-component/commit/fa479dafeede7bedf04e5c89aa78f2a78c664005"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/SamVerschueren/decode-uri-component"
}, {
"type" : "WEB",
"url" : "https://github.com/SamVerschueren/decode-uri-component/blob/00662938dc7c6241547ae8abce7785cc13ffd3f6/index.js"
}, {
"type" : "WEB",
"url" : "https://github.com/SamVerschueren/decode-uri-component/releases/tag/v0.5.0"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/package/decode-uri-component"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1176", "CWE-400", "CWE-405", "CWE-407" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-31T22:10:20Z",
"nvd_published_at" : "2026-06-30T09:16:25Z"
}
}