CVE-2026-45822: decode-uri-component Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-vcc3-ghjq-m6fr
Advisory Summary

CVE-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

CVE Identifier CVE-2026-45822
GHSA Identifier GHSA-vcc3-ghjq-m6fr
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-405: Asymmetric Resource Consumption (Amplification)
Affected Product decode-uri-component
Package Ecosystem npm
Published Date
Last Updated

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.

decode-uri-component fixed: 0.5.0
npm install decode-uri-component@0.5.0
Verify Direct and Transitive Dependencies

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

### Impact An 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. ### Patches Upgrade to `decode-uri-component@0.5.0`. ### Workarounds Limit the size of the input.

CVE-2026-45822 Affected decode-uri-component Versions

1 component(s)
Fixed Versions:
0.5.0
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?
CVE-2026-45822 is a security vulnerability in decode-uri-component involving Denial of service via exponential decoding of malformed percent-encoded input under CWE-405: Asymmetric Resource Consumption (Amplification).
Which decode-uri-component versions are affected?
Affected versions include releases prior to 0.5.0 across affected packages: decode-uri-component.
What version fixes CVE-2026-45822?
Upgrading to 0.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is decode-uri-component affected?
Yes, decode-uri-component is affected in releases prior to 0.5.0. Upgrade your dependency to 0.5.0 or later.
What CWE is associated with CVE-2026-45822?
CVE-2026-45822 is classified under CWE-405: Asymmetric Resource Consumption (Amplification) (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.").
How can I check npm dependencies for CVE-2026-45822?
Run the dependency tree command: 'npm ls decode-uri-component'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}