{"id":"GHSA-hqq7-2q2v-82xq","revision":"dcea3655ec064a82a12af8393e46f45d","records":[{"revision":"dcea3655ec064a82a12af8393e46f45d","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-hqq7-2q2v-82xq","aliases":["CVE-2021-23648","SNYK-JS-BRAINTREESANITIZEURL-2339882"],"title":"Cross-site Scripting in sanitize-url","description":"The package `@braintree/sanitize-url` before 6.0.0 is vulnerable to Cross-site Scripting (XSS) due to improper sanitization in the `sanitizeUrl` function.","state":0,"publishedAt":"2022-03-17T00:00:24+00:00","modifiedAt":"2026-09-10T03:49:17.4469847+00:00","affected":[{"ecosystem":"npm","name":"@braintree/sanitize-url","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"6.0.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-23648","https://github.com/braintree/sanitize-url/pull/40","https://github.com/braintree/sanitize-url/pull/40/commits/e5afda45d9833682b705f73fc2c1265d34832183","https://github.com/braintree/sanitize-url","https://github.com/braintree/sanitize-url/blob/main/src/index.ts%23L11","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ","https://snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882"],"sourceUrl":"https://github.com/advisories/GHSA-hqq7-2q2v-82xq","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-hqq7-2q2v-82xq","identifiers":["GHSA-hqq7-2q2v-82xq","CVE-2021-23648","SNYK-JS-BRAINTREESANITIZEURL-2339882"]},"retained":false,"historicalAffected":[]}],"coverage":[]}