CVE-2021-23648
MEDIUM5.4EPSS 0.13%Cross-site Scripting in sanitize-url
Published: 3/17/2022Modified: 3/13/2026
Also known as:GHSA-hqq7-2q2v-82xq
Description
The package `@braintree/sanitize-url` before 6.0.0 is vulnerable to Cross-site Scripting (XSS) due to improper sanitization in the `sanitizeUrl` function.
Affected packages (2)
- Debian/node-mermaidfrom 0, < 8.7.0+ds+~cs27.17.17-3+deb11u1
- npm/@braintree/sanitize-urlfrom 0, < 6.0.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
References (10)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-23648
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-23648
- PATCHhttps://github.com/braintree/sanitize-url
- WEBhttps://github.com/braintree/sanitize-url/blob/main/src/index.ts%23L11
- WEBhttps://github.com/braintree/sanitize-url/pull/40
- WEBhttps://github.com/braintree/sanitize-url/pull/40/commits/e5afda45d9833682b705f73fc2c1265d34832183
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ
- WEBhttps://snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882