{"id":"CVE-2021-23648","published":"2022-03-16T15:45:19Z","modified":"2024-09-16T16:22:58Z","title":"Cross-site Scripting (XSS)","vendor":null,"product":null,"tier":"tail","description":{"text":"The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0143,"percentile":0.73667,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882","tags":["x_refsource_MISC"]},{"url":"https://github.com/braintree/sanitize-url/blob/main/src/index.ts%23L11","tags":["x_refsource_MISC"]},{"url":"https://github.com/braintree/sanitize-url/pull/40","tags":["x_refsource_MISC"]},{"url":"https://github.com/braintree/sanitize-url/pull/40/commits/e5afda45d9833682b705f73fc2c1265d34832183","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":18.5,"factors":[{"name":"EPSS percentile","points":14.73},{"name":"CVSS severity","points":3.78}]},"affectedVersions":[{"vendor":"n/a","product":"@braintree/sanitize-url","versions":[">= unspecified, < 6.0.0"]}],"affected":[{"ecosystem":"npm","package":"@braintree/sanitize-url","vulnerableRanges":["<6.0.0"],"patched":["6.0.0"],"from":["GHSA-hqq7-2q2v-82xq"],"provenance":"source"}],"summary":{"text":"The flaw is improper sanitization in the sanitizeUrl function of the @braintree/sanitize-url package, which is vulnerable to Cross-site Scripting (XSS) in versions before 6.0.0. An unauthenticated remote attacker can trigger it over the network with low complexity, but exploitation requires a user to interact with a crafted link or page, and it can lead to limited confidentiality and integrity impact.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:47Z"},"euvd":{"id":"EUVD-2022-1445","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-braintree-sanitize-url-cve-2021-23648","children":[{"from":"CVE-2021-23648","to":"CVE-2022-48345","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@braintree/sanitize-url","fromFixed":"6.0.0","toFixed":"6.0.1","daysApart":345},{"kind":"same-code","provenance":"machine","files":["src/index.ts"],"commits":["https://github.com/braintree/sanitize-url/commit/e5afda45d9833682b705f73fc2c1265d34832183","https://github.com/braintree/sanitize-url/commit/d4bdc89f1743fe3cdb7c3f24b06e4c875f349b0c"],"basis":"shared function","functions":["isRelativeUrlWithoutProtocol"]},{"kind":"similar","provenance":"machine","score":0.6,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2021-23648","published":"2022-03-16","fixed":"6.0.0","kev":false},{"cve":"CVE-2022-48345","published":"2023-02-24","fixed":"6.0.1","kev":false}],"package":"npm:@braintree/sanitize-url"}}