{"id":"UBUNTU-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.","modified":"2026-11-24T14:52:38.123169708Z","published":"2022-03-16T16:15:00Z","upstream":["CVE-2021-23648"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-23648"},{"type":"REPORT","url":"https://github.com/braintree/sanitize-url/pull/40"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-23648"}],"affected":[{"package":{"name":"node-mermaid","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-mermaid?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.7.0+ds+~cs27.17.17-3","8.13.3+ds+~cs26.13.21-1","8.13.3+ds+~cs26.13.21-2","8.13.8+~cs10.4.16-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-mermaid","binary_version":"8.13.8+~cs10.4.16-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23648.json"}},{"package":{"name":"node-mermaid","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/node-mermaid?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.2.2+~2.0.0-1","9.2.2+~2.0.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"node-mermaid","binary_version":"9.2.2+~2.0.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23648.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","source":"CNA"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"NVD"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}