{"id":"CVE-2021-23648","aliases":["GHSA-hqq7-2q2v-82xq"],"url":"https://o3.security/vulnerability/CVE-2021-23648","summary":"Cross-site Scripting in sanitize-url","details":"The package `@braintree/sanitize-url` before 6.0.0 is vulnerable to Cross-site Scripting (XSS) due to improper sanitization in the `sanitizeUrl` function.","published":"2022-03-16T16:15:10.690Z","modified":"2026-07-08T06:26:55.270079459Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"@braintree/sanitize-url","fixedVersion":"6.0.0"}],"fix":{"url":"https://github.com/braintree/sanitize-url/pull/40","label":"braintree/sanitize-url#40"},"references":[{"type":"WEB","url":"https://github.com/braintree/sanitize-url/blob/main/src/index.ts%23L11"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ/"},{"type":"FIX","url":"https://github.com/braintree/sanitize-url/pull/40"},{"type":"FIX","url":"https://github.com/braintree/sanitize-url/pull/40/commits/e5afda45d9833682b705f73fc2c1265d34832183"},{"type":"FIX","url":"https://snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23648"},{"type":"PACKAGE","url":"https://github.com/braintree/sanitize-url"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T06:26:55.270079459Z"}}