CVE-2022-0613: Urijs Authorization Bypass Through User-Controlled Key Vulnerability
MODERATECVE-2022-0613 is a MODERATE (CVSS 6.5) authorization bypass through user-controlled key vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Urijs libraries in the npm ecosystem. The issue involves authorization bypass through user-controlled key in urijs. Remediation is available by upgrading affected packages to version 1.19.8.
CVE-2022-0613 at a Glance
Security Impact
CVSS: 6.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:L/I:L/A:N).
How to Fix CVE-2022-0613
To remediate this vulnerability, upgrade all affected Urijs 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 urijs@1.19.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls urijs
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-0613, inspect your project dependencies using npm:
npm ls urijs
Analyze the terminal output to locate any version of Urijs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.19.8), your application is affected.
Note: The npm ls urijs 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-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Urijs, 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-0613 Affected Urijs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
urijs
|
npm |
< 1.19.8
|
1.19.8
|
References
Frequently Asked Questions
What is CVE-2022-0613?
Which Urijs versions are affected?
What version fixes CVE-2022-0613?
Is urijs affected?
What is the CVSS score of CVE-2022-0613?
What CWE is associated with CVE-2022-0613?
How can I check npm dependencies for CVE-2022-0613?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gcv8-gh4r-25x6",
"modified" : "2022-04-01T18:06:53Z",
"published" : "2022-02-17T00:00:35Z",
"aliases" : [ "CVE-2022-0613" ],
"summary" : "Authorization Bypass Through User-Controlled Key in urijs",
"details" : "Attacker can use case-insensitive protocol schemes like HTTP, htTP, HTtp etc. in order to bypass the patch for CVE-2021-3647.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "urijs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.19.8"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-0613"
}, {
"type" : "WEB",
"url" : "https://github.com/medialize/uri.js/commit/6ea641cc8648b025ed5f30b090c2abd4d1a5249f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/medialize/uri.js"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/f53d5c42-c108-40b8-917d-9dad51535083"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MXSSATHALUSXXD2KT6UFZAX7EG4GR332"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-639" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-02-17T23:36:53Z",
"nvd_published_at" : "2022-02-16T09:15:00Z"
}
}