CVE-2021-23648 json
Cross-site Scripting (XSS)
published 2022-03-16 4 y ago modified 2026-09-10 1 mo ago also GHSA-hqq7-2q2v-82xq , EUVD-2022-1445
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.
Patch / fix
- npm @braintree/sanitize-url 6.0.0
- n/a @braintree/sanitize-url 6.0.0
- node-mermaid Debian 14 8.14.0+~cs11.4.14-1
debian advisories DEBIAN-CVE-2021-23648
- grafana RHEL 8 7.5.15-3.el8
- grafana RHEL 9 7.5.15-3.el9
red hat advisories RHSA-2022:7519RHSA-2022:8057
- grafana AlmaLinux 9 7.5.15-3.el9
- grafana AlmaLinux 8 7.5.15-3.el8
almalinux advisories ALSA-2022:8057ALSA-2022:7519
- grafana Rocky Linux 9 7.5.15-3.el9
- grafana Rocky Linux 8 7.5.15-3.el8
rocky linux advisories RLSA-2022:8057RLSA-2022:7519
- github.com/braintree/sanitize-url#40 commit
- github.com/braintree/sanitize-url#40 pull request
- snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-23648 updated cvss 5.4
sanitize-url: XSS due to improper sanitization in sanitizeUrl function
-
Red Hat OpenShift Service Mesh 2.1 servicemesh-grafanaaffected: no fix planned “Will not fix”
-
Red Hat 3scale API Management Platform 2 3scale-amp2/apicast-rhel7-operator, 3scale-amp2/apicast-rhel7-operator-metadataaffected: no fix available
-
Red Hat Ceph Storage 5 rhceph/rhceph-5-dashboard-rhel8affected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux AppStream (v. 8) grafana 7.5.15-3.el8fixed: vendor fix RHSA-2022:7519
-
Red Hat Enterprise Linux AppStream (v. 9) grafana 7.5.15-3.el9fixed: vendor fix RHSA-2022:8057
-
Red Hat OpenShift Container Platform 4.11 openshift4/ose-grafana v4.11.0-202208020235.p0.g6773185.assembly.streamfixed: vendor fix RHSA-2022:5069
-
Red Hat OpenShift Container Platform 4.11 openshift4/ose-cli v4.11.0-202208020706.p0.g7075089.assembly.stream, openshift4/ose-pod v4.11.0-202208020235.p0.g9546431.assembly.stream, openshift4/ose-etcd v4.11.0-202208020235.p0.g80cc14e.assembly.stream, openshift4/ose-tests v4.11.0-202208020706.p0.gb860532.assembly.stream, openshift4/ose-console v4.11.0-202208021257.p0.ge0d49a2.assembly.stream, openshift4/ose-coredns v4.11.0-202208020235.p0.g7fe212f.assembly.stream, +175 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.43% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P |
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @braintree/sanitize-url | <6.0.0 |
6.0.0 |
Affected products
- n/a @braintree/sanitize-url
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/braintree/sanitize-url/pull/40
web, issue-tracking, patch, third-party-advisory
-
github.com
/braintree/sanitize-url/pull/40/commits/e5afda45d9833682b705f73fc2c1265d34832183
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882
web, exploit, patch, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH/
vendor-advisory
-
github.com
/braintree/sanitize-url/blob/main/src/index.ts%23L11
web, broken-link
-
nvd.nist.gov
/vuln/detail/CVE-2021-23648
advisory
-
github.com
/braintree/sanitize-url
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ
web
Sources
- CVE List CVE-2021-23648
- GitHub Advisory GHSA-hqq7-2q2v-82xq
- NVD CVE-2021-23648
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.