Miggo Logo

CVE-2022-24723:
Leading white space bypasses protocol validation

5.3

CVSS Score
3.1

Basic Information

EPSS Score
0.36263%
Published
3/3/2022
Updated
2/3/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
urijsnpm< 1.19.91.19.9

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Imp**t W*it*sp*** ***r**t*rs *r* not r*mov** *rom t** ***innin* o* t** proto*ol, so URLs *r* not p*rs** prop*rly *n* proto*ol v*li**tion m****nisms m*y **il. ### P*t***s P*t**** in *.**.* ### Work*roun*s R*mov* l***in* w*it*sp*** *rom v*lu*s **

Reasoning

T** vuln*r**ility st*ms *rom improp*r input s*nitiz*tion in t** URI p*rsin* m****nism. T** *ommit ******* s*ows t** *ix w*s impl*m*nt** *y ***in* * l***in* w*it*sp*** r*mov*l r***x r*pl***m*nt *ir**tly in t** p*rsin* *low. T** vuln*r**l* v*rsion l**k