CVE-2022-48345:
@braintree/sanitize-url Cross-site Scripting vulnerability
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.62905%
CWE
Published
2/24/2023
Updated
3/3/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
@braintree/sanitize-url | npm | < 6.0.1 | 6.0.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The patch modified 1) decodeHtmlCharacters to handle entities and 2) updated the urlSchemeRegex
to detect :. The vulnerability manifests in these two areas: failure to normalize tab entities before decoding, and inability to detect HTML-encoded colons in protocol schemes. Both functions directly process
attacker-controlled input and were missing critical entity handling pre-patch.