# CVE-2021-23648: Cross-site Scripting (XSS)

- Severity: Medium 5.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.43%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-16T15:45:19.074Z
- Modified: 2026-09-10T03:49:17.446Z
- Also known as: GHSA-hqq7-2q2v-82xq, SNYK-JS-BRAINTREESANITIZEURL-2339882
- Weaknesses: CWE-79
- Assigned by: snyk

## Description

The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.

(As written by CVE List.)

## Affected

- @braintree/sanitize-url: from unspecified before 6.0.0
- @braintree/sanitize-url (npm): before 6.0.0
- paypal braintree/sanitize-url: before 6.0.0
- fedoraproject fedora: 34; 35; 36

## Every score

- snyk: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882> (exploit, patch, third-party-advisory, web)
- <https://github.com/braintree/sanitize-url/blob/main/src/index.ts%23L11> (broken-link, web)
- <https://github.com/braintree/sanitize-url/pull/40> (issue-tracking, patch, third-party-advisory, web)
- <https://github.com/braintree/sanitize-url/pull/40/commits/e5afda45d9833682b705f73fc2c1265d34832183> (patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23648> (advisory)
- <https://github.com/braintree/sanitize-url> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ> (web)

## Sources

- CVE List: [CVE-2021-23648](https://www.cve.org/CVERecord?id=CVE-2021-23648), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-hqq7-2q2v-82xq](https://github.com/advisories/GHSA-hqq7-2q2v-82xq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-23648](https://nvd.nist.gov/vuln/detail/CVE-2021-23648), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23648 · Whole record: https://cve.day/CVE-2021-23648.json · Rebuilt by cve.day 2026-11-25T22:58:07.227Z
