{"id":"CVE-2022-48345","published":"2023-02-24T00:00:00Z","modified":"2025-03-12T15:36:20Z","title":"sanitize-url (aka @braintree/sanitize-url) before 6.0.2 allows XSS via HTML entities","vendor":null,"product":null,"tier":"tail","description":{"text":"sanitize-url (aka @braintree/sanitize-url) before 6.0.2 allows XSS via HTML entities.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.0056,"percentile":0.47494,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/braintree/sanitize-url/commit/d4bdc89f1743fe3cdb7c3f24b06e4c875f349b0c","tags":[]},{"url":"https://github.com/braintree/sanitize-url/compare/v6.0.1...v6.0.2","tags":[]}],"priority":{"score":13.8,"factors":[{"name":"EPSS percentile","points":9.5},{"name":"CVSS severity","points":4.27}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-12T15:35:16.963414Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@braintree/sanitize-url","vulnerableRanges":["<6.0.1"],"patched":["6.0.1"],"from":["GHSA-q8gg-vj6m-hgmj"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting (XSS) weakness in the sanitize-url library (also published as @braintree/sanitize-url) in versions before 6.0.2, where HTML entities are not properly neutralised in URL sanitisation. An attacker can inject script into a web page that uses the affected component, which requires user interaction and results in low confidentiality and integrity impact with no network-level or authentication prerequisites.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:28Z"},"euvd":{"id":"EUVD-2023-0773","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-braintree-sanitize-url-cve-2021-23648","parents":[{"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"}}