CVE-2022-24723
MEDIUM 5.3CVSS 3.1Leading white space bypasses protocol validation
URI.js is a Javascript URL mutation library. Before version 1.19.9, whitespace characters are not removed from the beginning of the protocol, so URLs are not parsed properly. This issue has been patched in version 1.19.9. Removing leading whitespace from values before passing them to URI.parse can be used as a workaround.
- Published
- 3 Mar 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-gmv4-r438-p67f
- Sources
- NVDJSONOSV GHSA-gmv4-r438-p67fJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | uri.js_project | uri.jscpe:2.3:a:uri.js_project:uri.js:*:*:*:*:*:*:*:* |
< 1.19.9 | 1.19.9 |
| OSV | npm | urijs | < 1.19.9 | 1.19.9 |
References
- https://github.com/medialize/URI.js/releases/tag/v1.19.9 · Release Notes, Third Party Advisory, WEB
- https://github.com/medialize/URI.js/security/advisories/GHSA-gmv4-r438-p67f · Mitigation, Third Party Advisory, WEB
- https://github.com/medialize/uri.js/commit/86d10523a6f6e8dc4300d99d671335ee362ad316 · Patch, Third Party Advisory, WEB
- https://huntr.dev/bounties/82ef23b8-7025-49c9-b5fc-1bb9885788e5/ · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-24723 · ADVISORY
- https://github.com/medialize/URI.js · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 3 Mar 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Mar 2022)