Cross-site scripting (XSS) in @braintree/sanitize-url
Priority LOW 30CWE-79Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 3 fixed, 3 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
Summary
The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.
Why it matters now
EPSS 0.0143 73rd percentileScored 2026-11-07
Fix Partial @braintree/sanitize-url: 6.0.0@braintree/sanitize-url (npm): 6.0.0Red Hat: 3 advisoriesRed Hat: 3 fixed, 3 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | @braintree/sanitize-url | before 6.0.0 | 6.0.0 | Patch available | CNA |
| — | @braintree/sanitize-url (npm) | before 6.0.0 | 6.0.0 | Patch available | GHSA-hqq7-2q2v-82xq |
- @braintree/sanitize-url Vendor— Affected before 6.0.0 Fixed in 6.0.0 Patch available CNA
- @braintree/sanitize-url (npm) Vendor— Affected before 6.0.0 Fixed in 6.0.0 Patch available GHSA-hqq7-2q2v-82xq
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:paypal:braintree\/sanitize-url:*:*:*:*:*:node.js:*:* | before 6.0.0 | Vulnerable | PayPal |
| cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | 34 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
- cpe:2.3:a:paypal:braintree\/sanitize-url:*:*:*:*:*:node.js:*:* Versions before 6.0.0 Vulnerable ·PayPal
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
Remediation
- Fix · CNA @braintree/sanitize-url Fixed in 6.0.0
- Fix · GHSA-hqq7-2q2v-82xq @braintree/sanitize-url (npm) Fixed in 6.0.0 Advisory →
Red Hat 3 advisories
- RHSA-2022:8057 Released 2022-11-15 · Red Hat rating Importantgrafana security, bug fix, and enhancement update
- Red Hat Enterprise Linux AppStream (v. 9) grafana-7.5.15-3.el9
- RHSA-2022:7519 Released 2022-11-08 · Red Hat rating Moderategrafana security, bug fix, and enhancement update
- Red Hat Enterprise Linux AppStream (v. 8) grafana-7.5.15-3.el8
- RHSA-2022:5069 Released 2022-08-10 · Red Hat rating ImportantOpenShift Container Platform 4.11.0 bug fix and security update
- Red Hat OpenShift Container Platform 4.11 openshift4/ose-alibaba-disk-csi-driver-operator-container-rhel8, openshift4/ose-alibaba-machine-controllers-rhel8, openshift4/ose-aws-ebs-csi-driver-rhel8 +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Service Mesh 2.1 | Affected | No fix planned: Will not fix |
| Red Hat 3scale API Management Platform 2 | Affected | No fix yet |
| Red Hat Ceph Storage 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2022:7519 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2022:8057 |
| Red Hat OpenShift Container Platform 4.11 | Fixed | RHSA-2022:5069 |
Not affected: 1 product
- Red Hat OpenShift Container Platform 4.11
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23648
- 2026-10-03 Alias added: GHSA-hqq7-2q2v-82xq
References
Patch 2
Advisory 4
Other 5
- https://github.com/braintree/sanitize-url/blob/main/src/index.ts%23L11
- https://github.com/braintree/sanitize-url
- https://lists.fedoraproject.org/archives/list/[email protected]/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D
- https://lists.fedoraproject.org/archives/list/[email protected]/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH
- https://lists.fedoraproject.org/archives/list/[email protected]/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ
Sources
- CVE-2021-23648 · CVE Program
- CVE-2021-23648 · NVD
- FIRST EPSS
- GHSA-hqq7-2q2v-82xq · GitHub Advisory Database · CC BY 4.0
- CVE-2021-23648 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences