Vulnerability · Published Mar 16, 2022 · Assigned by snyk
CVE-2021-23648Cross-site Scripting (XSS)
Medium 5.4
In plain English
A medium-severity security flaw in @braintree/sanitize-url. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)1.4%top 26.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | grafana | 7.5.15-3.el8 | ALSA-2022:7519 |
| AlmaLinux:9 | grafana | 7.5.15-3.el9 | ALSA-2022:8057 |
| Debian:14 | node-mermaid | 8.14.0+~cs11.4.14-1 | DEBIAN-CVE-2021-23648 |
| Rocky Linux:8 | grafana | 0:7.5.15-3.el8 | RLSA-2022:7519 |
| Rocky Linux:9 | grafana | 0:7.5.15-3.el9 | RLSA-2022:8057 |
| Ubuntu:22.04:LTS | node-mermaid | no fix listed | UBUNTU-CVE-2021-23648 |
| Ubuntu:26.10 | node-mermaid | no fix listed | UBUNTU-CVE-2021-23648 |
| npm | @braintree/sanitize-url | 6.0.0 | GHSA-hqq7-2q2v-82xq |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | @braintree/sanitize-url | unspecified – before 6.0.0 |
References
- https://snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882 x_refsource_MISC
- https://github.com/braintree/sanitize-url/blob/main/src/index.ts%23L11 x_refsource_MISC
- https://github.com/braintree/sanitize-url/pull/40 x_refsource_MISC
- https://github.com/braintree/sanitize-url/pull/40/commits/e5afda45d9833682b705f73fc2c1265d34832183 x_refsource_MISC
- FEDORA-2022-83405f9d5b vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-9dd03cab55 vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-c5383675d9 vendor-advisory, x_refsource_FEDORA