Skip to content

← Public intelligence

npm package

decode-uri-component

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

3 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 8.2npmAmendedPublished

    decode-uri-component vulnerable to denial of service via quadratic replacement of percent-encoded runs

    CVE-2026-118664 · GHSA-qr28-fpjm-wq7f

    Affected
    • npm decode-uri-component < 0.5.1
    Fixed in
    0.5.1· Vendor fix available
    Issue
    `decodeUriComponent()` takes quadratic time on malformed input that has many distinct percent-encoded runs. A single unauthenticated request of about 224 KB can block the Node.js event loop for about 20 seconds. Version 0.5.0, the release that fixed CVE-2026-45822, is affected. Details When native decodeURIComponent throws, `decodeUriComponent()` falls back to `customDecodeURIComponent` (`index.js:122`). That function: 1. Scans the input for every run of percent-encoded bytes (e.g. `%C3%A5`) and stores each distinct run, with its decoded value, in a lookup table (`index.js:130-144`). 2. Runs one full-string `input.replace(new RegExp(key, 'g'), …)` per table entry (`index.js:154`). With K distinct runs in an input of length L, that's K regex compilations and K full scans of the string, so O(K·L). An attacker controls both K and L, and K grows with L. One malformed sequence such as a trailing `%zz` is enough to force the fallback path. The 0.5.0 fix for CVE-2026-45822…

    Recommended action: Upgrade to 0.5.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.com (1)osv.dev (2)Source checked Evidence →
  2. Medium, CVSS 6.6npmPublished

    decode-uri-component: Denial of service via exponential decoding of malformed percent-encoded input

    CVE-2026-45822 · GHSA-vcc3-ghjq-m6fr

    Affected
    • npm decode-uri-component <= 0.4.2
    Fixed in
    0.5.0· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 0.5.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  3. High, CVSS 7.5npmAmendedPublished

    decode-uri-component vulnerable to Denial of Service (DoS)

    CVE-2022-38900 · GHSA-w573-4hg7-7wgq

    Affected
    • npm decode-uri-component < 0.2.1
    Fixed in
    0.2.1· Vendor fix available
    Issue
    decode-uri-component 0.2.0 is vulnerable to Improper Input Validation resulting in DoS.

    Recommended action: Upgrade to 0.2.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →