CVE-2022-38900: Decode uri component Denial of Service Vulnerability
HIGHCVE-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
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).
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.
npm install decode-uri-component@0.2.1
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
CVE-2022-38900 Affected Decode uri component Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
decode-uri-component
|
npm |
< 0.2.1
|
0.2.1
|
References
Frequently Asked Questions
What is CVE-2022-38900?
Which Decode uri component versions are affected?
What version fixes CVE-2022-38900?
Is decode-uri-component affected?
What is the CVSS score of CVE-2022-38900?
What CWE is associated with CVE-2022-38900?
How can I check npm dependencies for CVE-2022-38900?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}