# CVE-2026-45822: decode-uri-component: Denial of service via exponential decoding of malformed percent-encoded input

> An attacker can cause denial of service via CPU exhaustion and event-loop blocking by sending crafted input to the decode-uri-component library.

- **Severity:** Medium 6.6 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 30 Jun 2026
- **Updated:** 30 Jun 2026
- **Also known as:** AZL-92075, CLSA-2026-1788255041, ECHO-d9f5-fce4-21d3, GHSA-vcc3-ghjq-m6fr, MINI-2h9j-78gp-5343, MINI-2mgg-m3w7-8gh6, MINI-5crg-g382-3xrw, MINI-6646-xf57-9mpx, MINI-7c86-jv8r-86vj, MINI-7j2x-fp37-wmmm, MINI-8558-wjfh-54pw, MINI-8mph-hv7x-8v7m, MINI-g76g-mjcr-fpqq, MINI-hp69-7rvq-vvjq, MINI-hr3h-4585-6pg4, MINI-hvxj-g4h3-hh4w, MINI-j6g6-37mg-82j2, MINI-j6wx-m5xv-g3g2, MINI-jr5h-786x-mh2g, MINI-r9jw-6hc6-2h9v, MINI-v9cq-4vqq-32pc, UBUNTU-CVE-2026-45822

## What is CVE-2026-45822?

CVE-2026-45822 is a medium-severity denial of service vulnerability in SamVerschueren decode-uri-component, published on 30 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

decode-uri-component through 0.4.1 is vulnerable to denial of service. The decode() function splits input on '%' producing N tokens and calls decodeComponents(), exhibiting super-linear parsing time: 200 '%ab' tokens takes approximately 0.7s, 700 tokens approximately 6s, and 1400 tokens approximately 33s. An attacker can cause significant CPU consumption and event-loop blocking via crafted input.

Weakness: CWE-407 (Inefficient Algorithmic Complexity), CWE-400 (Uncontrolled Resource Consumption)

## Which versions are affected by CVE-2026-45822?

2 open source packages ship an affected version, including decode-uri-component.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `decode-uri-component` | npm | All versions | 0.5.0 |
| `decode-uri-component` | npm | All versions | 0.5.0 |

## How do I fix CVE-2026-45822?

Upgrade decode-uri-component to 0.5.0 or later.

## Is CVE-2026-45822 being exploited?

There is no known exploitation of CVE-2026-45822 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-45822 and fix it if it is affected.

What it is: CVE-2026-45822 is a medium-severity denial of service vulnerability in SamVerschueren decode-uri-component, published on 30 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-45822 in the wild and no public exploit code.

Affected packages and fixed versions:
- decode-uri-component (npm): affected all versions; fixed in 0.5.0
- decode-uri-component (npm): affected all versions; fixed in 0.5.0

Task:
1. 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.
2. 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.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-45822/ (Markdown: https://insights.sbomify.com/CVE-2026-45822/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-45822
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-45822
- OSV: https://osv.dev/vulnerability/CVE-2026-45822

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-45822/
Summaries are generated and may contain mistakes; the official description above is the record.
