CVE-2022-48345Paypal Braintree/sanitize-url
Medium 6.1 No auth needed
Follow: this CVE · Paypal · Paypal Braintree/sanitize-url We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 47
- Auth required
- No
- Published
- Feb 24, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
sanitize-url (aka @braintree/sanitize-url) before 6.0.2 allows XSS via HTML entities.
What to do
- Apply the vendor's security update for Braintree/sanitize-url.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @braintree/sanitize-url |
< 6.0.1 |
6.0.1 |
npm install @braintree/sanitize-url@6.0.1 |
Per OSV / GitHub Advisories (GHSA-q8gg-vj6m-hgmj). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| paypal | braintree/sanitize-url | < 6.0.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch Release Notes