{"id":"CVE-2021-23648","details":"The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.","aliases":["GHSA-hqq7-2q2v-82xq"],"modified":"2026-04-02T06:47:31.537134Z","published":"2022-03-16T16:15:10.690Z","related":["ALSA-2022:7519","ALSA-2022:8057","SNYK-JS-BRAINTREESANITIZEURL-2339882"],"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ/"},{"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":"FIX","url":"https://snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882"},{"type":"FIX","url":"https://github.com/braintree/sanitize-url/pull/40"},{"type":"FIX","url":"https://github.com/braintree/sanitize-url/pull/40/commits/e5afda45d9833682b705f73fc2c1265d34832183"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/braintree/sanitize-url","events":[{"introduced":"0"},{"fixed":"34fc6435a6028a5a2a3d35b0dee2299e5a9a3580"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"6.0.0"}]}}],"versions":["1.0.0","2.0.0","2.0.1","2.0.2","2.1.0","v3.1.0","v4.0.0","v4.0.1","v4.1.0","v4.1.1","v5.0.0","v5.0.1","v5.0.2"],"database_specific":{"unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"34"}]},{"events":[{"introduced":"0"},{"last_affected":"35"}]},{"events":[{"introduced":"0"},{"last_affected":"36"}]}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23648.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}