# CVE-2022-48345: @braintree/sanitize-url Cross-site Scripting vulnerability

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- 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): 0.56%, higher than 47% of CVEs (2026-12-01)
- Published: 2023-02-24T00:00:00.000Z
- Modified: 2026-06-17T05:15:12.383Z
- Also known as: GHSA-q8gg-vj6m-hgmj
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

sanitize-url (aka @braintree/sanitize-url) before 6.0.2 allows XSS via HTML entities.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- @braintree/sanitize-url (npm): before 6.0.1
- paypal braintree/sanitize-url: before 6.0.2

## Every score

- CISA-ADP: 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`
- GitHub: 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:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/braintree/sanitize-url/commit/d4bdc89f1743fe3cdb7c3f24b06e4c875f349b0c> (patch, web)
- <https://github.com/braintree/sanitize-url/compare/v6.0.1...v6.0.2> (patch, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-48345> (advisory)
- <https://github.com/braintree/sanitize-url> (package)
- <https://github.com/braintree/sanitize-url/compare/v6.0.0...v6.0.1> (web)

## Sources

- CVE List: [CVE-2022-48345](https://www.cve.org/CVERecord?id=CVE-2022-48345), CVE Terms of Use, modified 2025-03-12
- GitHub Advisory Database: [GHSA-q8gg-vj6m-hgmj](https://github.com/advisories/GHSA-q8gg-vj6m-hgmj), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-48345](https://nvd.nist.gov/vuln/detail/CVE-2022-48345), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-48345 · Whole record: https://cve.day/CVE-2022-48345.json · Rebuilt by cve.day 2026-11-25T22:58:18.741Z
