CVE-2022-38900: Decode uri component Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-w573-4hg7-7wgq
CVSS 7.5
CWE-20
Published
Advisory Summary

CVE-2022-38900 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-20: Improper Input Validation) affecting Decode uri component libraries in the npm ecosystem. The issue involves decode-uri-component vulnerable to denial of service (dos). Remediation is available by upgrading affected packages to version 0.2.1.

CVE-2022-38900 at a Glance

CVE Identifier CVE-2022-38900
GHSA Identifier GHSA-w573-4hg7-7wgq
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Decode uri component
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2022-38900

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.2.1
npm install decode-uri-component@0.2.1
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-2022-38900, 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.2.1), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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

decode-uri-component 0.2.0 is vulnerable to Improper Input Validation resulting in DoS.

CVE-2022-38900 Affected Decode uri component Versions

1 component(s)
Fixed Versions:
0.2.1
Product / Package Ecosystem Affected Versions Fixed Version
decode-uri-component
npm
< 0.2.1
0.2.1

References

NVD — CVE-2022-38900 NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-38900
Decode uri component Source Repository REPOSITORY
https://github.com/SamVerschueren/decode-uri-component/issues/5
Decode uri component Source Repository REPOSITORY
https://github.com/sindresorhus/query-string/issues/345
Security Fix Commit FIX COMMIT
https://github.com/SamVerschueren/decode-uri-component/commit/746ca5dcb6667c5d364e782d53c542830e4c10b9
Decode uri component Source Repository REPOSITORY
https://github.com/SamVerschueren/decode-uri-component
Decode uri component Release RELEASE
https://github.com/SamVerschueren/decode-uri-component/releases/tag/v0.2.1
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ERN6YE3DS7NBW7UH44SCJBMNC2NWQ7SM
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KAC5KQ2SEWAMQ6UZAUBZ5KXKEOESH375
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QABOUA2I542UTANVZIVFKWMRYVHLV32D
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UW4SCMT3SEUFVIL7YIADQ5K36GJEO6I5
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VNV2GNZXOTEDAJRFH3ZYWRUBGIVL7BSU

Frequently Asked Questions

What is CVE-2022-38900?
CVE-2022-38900 is a security vulnerability in Decode uri component involving decode-uri-component vulnerable to Denial of Service (DoS) under CWE-20: Improper Input Validation.
Which Decode uri component versions are affected?
Affected versions include releases prior to 0.2.1 across affected packages: decode-uri-component.
What version fixes CVE-2022-38900?
Upgrading to 0.2.1 (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.2.1. Upgrade your dependency to 0.2.1 or later.
What is the CVSS score of CVE-2022-38900?
CVE-2022-38900 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2022-38900?
CVE-2022-38900 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check npm dependencies for CVE-2022-38900?
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-w573-4hg7-7wgq",
  "modified" : "2023-03-31T16:05:14Z",
  "published" : "2022-11-28T15:30:24Z",
  "aliases" : [ "CVE-2022-38900" ],
  "summary" : "decode-uri-component vulnerable to Denial of Service (DoS)",
  "details" : "decode-uri-component 0.2.0 is vulnerable to Improper Input Validation resulting in DoS.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "decode-uri-component"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-38900"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/SamVerschueren/decode-uri-component/issues/5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sindresorhus/query-string/issues/345"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/SamVerschueren/decode-uri-component/commit/746ca5dcb6667c5d364e782d53c542830e4c10b9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/SamVerschueren/decode-uri-component"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/SamVerschueren/decode-uri-component/releases/tag/v0.2.1"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ERN6YE3DS7NBW7UH44SCJBMNC2NWQ7SM"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KAC5KQ2SEWAMQ6UZAUBZ5KXKEOESH375"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QABOUA2I542UTANVZIVFKWMRYVHLV32D"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UW4SCMT3SEUFVIL7YIADQ5K36GJEO6I5"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VNV2GNZXOTEDAJRFH3ZYWRUBGIVL7BSU"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-28T23:35:59Z",
    "nvd_published_at" : "2022-11-28T13:15:00Z"
  }
}