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.
Published: 2026-06-30
Score: 6.6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

decode-uri-component through 0.4.1 is vulnerable to denial of service. The decode() function splits input on the percent sign, producing many tokens, and calls decodeComponents(), showing super‑linear parsing time: 200 '%ab' tokens take about 0.7s, 700 tokens about 6s, and 1400 tokens about 33s. An attacker can cause significant CPU consumption and event‑loop blocking by submitting crafted input. The primary impact is server resources and stall legitimate requests, affecting availability. The weakness is character‑based input handling leading to resource exhaustion (CWE‑400), poorly bounded loop conditions (CWE‑407), consumption (CWE‑1050).

Affected Systems

The vulnerability affects the npm package decode‑uri‑component maintained by SamVerschueren, versions up to and including 0.4.1. Any application that invokes decode() with user‑supplied data inside this range is susceptible.

Risk and Exploitability

With a CVSS score of 6.6, the vulnerability is considered moderate severity. The EPSS score of < 1% indicates a very low but non‑zero likelihood of exploitation. The lack of listing in CISA KEV suggests no widespread exploitation yet. The attack vector is likely remote, through web requests or any input channel that the application exposes to untrusted data. An attacker simply needs to send a URI containing an excessive number of percent‑encoded tokens; no authentication or privileged access is required. Because the denial of service can directly impact availability, remediation is critical.

Generated by OpenCVE AI on July 1, 2026 at 12:42 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade decode‑uri‑component to the latest released version that incorporates the vendor’s fix
  • Limit the length or quantity of percent‑encoded tokens in URI inputs before decoding, and reject requests that exceed safe thresholds
  • Implement input validation and rate‑limiting or isolate the decoding process to mitigate CPU exhaustion

Generated by OpenCVE AI on July 1, 2026 at 12:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 01 Jul 2026 10:30:00 +0000

Type Values Removed Values Added
First Time appeared Samverschueren
Samverschueren decode-uri-component
Vendors & Products Samverschueren
Samverschueren decode-uri-component

Wed, 01 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Title Denial of Service via Exponential Parsing Time in decode‑uri‑component decode-uri-component: decode-uri-component: Denial of Service via crafted input
Weaknesses CWE-1050
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important


Tue, 30 Jun 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 30 Jun 2026 10:45:00 +0000

Type Values Removed Values Added
Title Denial of Service via Exponential Parsing Time in decode‑uri‑component

Tue, 30 Jun 2026 08:30:00 +0000

Type Values Removed Values Added
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.
Weaknesses CWE-400
CWE-407
References
Metrics cvssV4_0

{'score': 6.6, 'vector': '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'}


Subscriptions

Samverschueren Decode-uri-component
cve-icon MITRE

Status: PUBLISHED

Assigner: seal

Published:

Updated: 2026-06-30T12:49:30.364Z

Reserved: 2026-05-13T12:03:13.545Z

Link: CVE-2026-45822

cve-icon Vulnrichment

Updated: 2026-06-30T12:49:26.577Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Important

Publid Date: 2026-06-30T08:05:36Z

Links: CVE-2026-45822 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-01T12:45:16Z

Weaknesses
  • CWE-1050

    Excessive Platform Resource Consumption within a Loop

  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-407

    Inefficient Algorithmic Complexity