CVE-2021-23648Paypal 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
- 1.4% probability of exploitation in 30 days · percentile 73
- Auth required
- No
- Published
- Mar 16, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.
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.0 |
6.0.0 |
npm install @braintree/sanitize-url@6.0.0 |
Per OSV / GitHub Advisories (GHSA-hqq7-2q2v-82xq). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| paypal | braintree/sanitize-url | < 6.0.0 |
| fedoraproject | fedora | 34 |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
Official advisories
- Red Hat Security Advisory: grafana security, bug fix, and enhancement update · Red Hat · RHSA-2022:7519 · Sep 30, 2024 Medium
- Red Hat Security Advisory: grafana security, bug fix, and enhancement update · Red Hat · RHSA-2022:8057 · Sep 30, 2024 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link
- github.com Issue Tracking Patch Third Party Advisory
- github.com Patch Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- snyk.io Exploit Patch Third Party Advisory