{"schema_version":"1.7.5","id":"CVE-2021-23648","published":"2022-03-16T16:15:10.690Z","modified":"2026-07-08T06:26:55.270079459Z","aliases":["GHSA-hqq7-2q2v-82xq"],"related":["ALSA-2022:7519","ALSA-2022:8057"],"details":"The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/braintree/sanitize-url","events":[{"introduced":"0"},{"fixed":"34fc6435a6028a5a2a3d35b0dee2299e5a9a3580"}],"database_specific":{"cpe":"cpe:2.3:a:paypal:braintree\\/sanitize-url:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"6.0.0"}],"source":"CPE_RANGE"}}],"versions":["v5.0.2","v5.0.1","v5.0.0","v4.1.1","v4.1.0","v4.0.1","v4.0.0","v3.1.0","2.1.0","2.0.2","2.0.1","2.0.0","1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23648.json"}}],"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"}],"database_specific":{"unresolved_ranges":[{"cpes":["cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"34"},{"last_affected":"34"},{"introduced":"35"},{"last_affected":"35"},{"introduced":"36"},{"last_affected":"36"}],"source":"CPE_STRING","vendor_product":"fedoraproject:fedora"}]},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}