CVE-2022-24723:
Leading white space bypasses protocol validation
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.36263%
CWE
Published
3/3/2022
Updated
2/3/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
urijs | npm | < 1.19.9 | 1.19.9 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper input sanitization in the URI parsing mechanism. The commit 86d1052 shows the fix was implemented by adding a leading whitespace removal regex replacement directly in the parsing flow. The vulnerable version lacked this sanitization step, meaning any security checks relying on protocol validation (like blocking javascript: URLs) could be bypassed by prefixing the protocol with whitespace. The workaround documentation and CWE-20 classification confirm this is an input validation failure in the URL parsing routine.