{"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-11T12:36:10.827674Z","published":"2022-03-16T16:15:10.690Z","related":["ALSA-2022:7519","ALSA-2022:8057","SNYK-JS-BRAINTREESANITIZEURL-2339882"],"database_specific":{"unresolved_ranges":[{"source":"CPE_FIELD","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","extracted_events":[{"last_affected":"34"}]},{"source":"CPE_FIELD","cpe":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","extracted_events":[{"last_affected":"35"}]},{"source":"CPE_FIELD","cpe":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","extracted_events":[{"last_affected":"36"}]}]},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/braintree/sanitize-url","events":[{"introduced":"0"},{"fixed":"34fc6435a6028a5a2a3d35b0dee2299e5a9a3580"}],"database_specific":{"source":"CPE_FIELD","cpe":"cpe:2.3:a:paypal:braintree\\/sanitize-url:*:*:*:*:*:node.js:*:*","extracted_events":[{"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":{"source":"https://storage.googleapis.com/osv-test-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"}]}