{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/13400?format=json","vulnerability_id":"VCID-x4cs-g2jz-eqb5","summary":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\nThe package @braintree/sanitize-url before 6.0.0 is vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.","aliases":[{"alias":"CVE-2021-23648"},{"alias":"GHSA-hqq7-2q2v-82xq"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/932400?format=json","purl":"pkg:deb/debian/node-mermaid@8.7.0%2Bds%2B~cs27.17.17-3%2Bdeb11u1?distro=bullseye","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-mermaid@8.7.0%252Bds%252B~cs27.17.17-3%252Bdeb11u1%3Fdistro=bullseye"},{"url":"http://public2.vulnerablecode.io/api/packages/932399?format=json","purl":"pkg:deb/debian/node-mermaid@8.7.0%2Bds%2B~cs27.17.17-3%2Bdeb11u2?distro=bullseye","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-mermaid@8.7.0%252Bds%252B~cs27.17.17-3%252Bdeb11u2%3Fdistro=bullseye"},{"url":"http://public2.vulnerablecode.io/api/packages/47724?format=json","purl":"pkg:npm/%40braintree/sanitize-url@6.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dc7t-x6q7-uud3"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540braintree/sanitize-url@6.0.0"}],"affected_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/289563?format=json","purl":"pkg:npm/%40braintree/sanitize-url@1.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dc7t-x6q7-uud3"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540braintree/sanitize-url@1.0.0"},{"url":"http://public2.vulnerablecode.io/api/packages/289564?format=json","purl":"pkg:npm/%40braintree/sanitize-url@2.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dc7t-x6q7-uud3"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540braintree/sanitize-url@2.0.0"},{"url":"http://public2.vulnerablecode.io/api/packages/289565?format=json","purl":"pkg:npm/%40braintree/sanitize-url@2.0.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dc7t-x6q7-uud3"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540braintree/sanitize-url@2.0.1"},{"url":"http://public2.vulnerablecode.io/api/packages/289566?format=json","purl":"pkg:npm/%40braintree/sanitize-url@2.0.2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dc7t-x6q7-uud3"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540braintree/sanitize-url@2.0.2"},{"url":"http://public2.vulnerablecode.io/api/packages/289567?format=json","purl":"pkg:npm/%40braintree/sanitize-url@2.1.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dc7t-x6q7-uud3"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540braintree/sanitize-url@2.1.0"},{"url":"http://public2.vulnerablecode.io/api/packages/289568?format=json","purl":"pkg:npm/%40braintree/sanitize-url@3.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dc7t-x6q7-uud3"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540braintree/sanitize-url@3.0.0"},{"url":"http://public2.vulnerablecode.io/api/packages/289569?format=json","purl":"pkg:npm/%40braintree/sanitize-url@3.1.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dc7t-x6q7-uud3"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540braintree/sanitize-url@3.1.0"},{"url":"http://public2.vulnerablecode.io/api/packages/289570?format=json","purl":"pkg:npm/%40braintree/sanitize-url@4.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dc7t-x6q7-uud3"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540braintree/sanitize-url@4.0.0"},{"url":"http://public2.vulnerablecode.io/api/packages/289571?format=json","purl":"pkg:npm/%40braintree/sanitize-url@4.0.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dc7t-x6q7-uud3"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540braintree/sanitize-url@4.0.1"},{"url":"http://public2.vulnerablecode.io/api/packages/289572?format=json","purl":"pkg:npm/%40braintree/sanitize-url@4.1.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dc7t-x6q7-uud3"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540braintree/sanitize-url@4.1.0"},{"url":"http://public2.vulnerablecode.io/api/packages/289573?format=json","purl":"pkg:npm/%40braintree/sanitize-url@4.1.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dc7t-x6q7-uud3"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540braintree/sanitize-url@4.1.1"},{"url":"http://public2.vulnerablecode.io/api/packages/289574?format=json","purl":"pkg:npm/%40braintree/sanitize-url@5.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dc7t-x6q7-uud3"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540braintree/sanitize-url@5.0.0"},{"url":"http://public2.vulnerablecode.io/api/packages/289575?format=json","purl":"pkg:npm/%40braintree/sanitize-url@5.0.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dc7t-x6q7-uud3"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540braintree/sanitize-url@5.0.1"},{"url":"http://public2.vulnerablecode.io/api/packages/289576?format=json","purl":"pkg:npm/%40braintree/sanitize-url@5.0.2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dc7t-x6q7-uud3"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540braintree/sanitize-url@5.0.2"},{"url":"http://public2.vulnerablecode.io/api/packages/98147?format=json","purl":"pkg:rpm/redhat/grafana@7.5.15-3?arch=el9","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-29pd-1pjc-kuds"},{"vulnerability":"VCID-498g-zap2-vqag"},{"vulnerability":"VCID-5c67-zpsw-cyb2"},{"vulnerability":"VCID-6189-d1tw-bfcp"},{"vulnerability":"VCID-81aw-mk9s-eydd"},{"vulnerability":"VCID-86mk-kwg6-63h6"},{"vulnerability":"VCID-as38-uuy9-5qhu"},{"vulnerability":"VCID-f5qg-jth9-hycf"},{"vulnerability":"VCID-g45u-nf13-euee"},{"vulnerability":"VCID-g8y7-jdy7-afdh"},{"vulnerability":"VCID-kgdc-2fzk-1uc6"},{"vulnerability":"VCID-ps89-8u5a-kfc8"},{"vulnerability":"VCID-v8hn-wm59-kugt"},{"vulnerability":"VCID-vxks-1bkp-6bd5"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:rpm/redhat/grafana@7.5.15-3%3Farch=el9"},{"url":"http://public2.vulnerablecode.io/api/packages/98148?format=json","purl":"pkg:rpm/redhat/grafana@7.5.15-3?arch=el8","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-29pd-1pjc-kuds"},{"vulnerability":"VCID-498g-zap2-vqag"},{"vulnerability":"VCID-5c67-zpsw-cyb2"},{"vulnerability":"VCID-6189-d1tw-bfcp"},{"vulnerability":"VCID-81aw-mk9s-eydd"},{"vulnerability":"VCID-86mk-kwg6-63h6"},{"vulnerability":"VCID-as38-uuy9-5qhu"},{"vulnerability":"VCID-f5qg-jth9-hycf"},{"vulnerability":"VCID-g45u-nf13-euee"},{"vulnerability":"VCID-g8y7-jdy7-afdh"},{"vulnerability":"VCID-kgdc-2fzk-1uc6"},{"vulnerability":"VCID-ps89-8u5a-kfc8"},{"vulnerability":"VCID-v8hn-wm59-kugt"},{"vulnerability":"VCID-vxks-1bkp-6bd5"},{"vulnerability":"VCID-x4cs-g2jz-eqb5"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:rpm/redhat/grafana@7.5.15-3%3Farch=el8"}],"references":[{"reference_url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-23648.json","reference_id":"","reference_type":"","scores":[{"value":"5.4","scoring_system":"cvssv3","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"}],"url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-23648.json"},{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2021-23648","reference_id":"","reference_type":"","scores":[{"value":"0.00116","scoring_system":"epss","scoring_elements":"0.30299","published_at":"2026-04-18T12:55:00Z"},{"value":"0.00116","scoring_system":"epss","scoring_elements":"0.30317","published_at":"2026-04-16T12:55:00Z"},{"value":"0.00116","scoring_system":"epss","scoring_elements":"0.30301","published_at":"2026-04-13T12:55:00Z"},{"value":"0.00116","scoring_system":"epss","scoring_elements":"0.30348","published_at":"2026-04-12T12:55:00Z"},{"value":"0.00116","scoring_system":"epss","scoring_elements":"0.30392","published_at":"2026-04-11T12:55:00Z"},{"value":"0.00116","scoring_system":"epss","scoring_elements":"0.3039","published_at":"2026-04-09T12:55:00Z"},{"value":"0.00116","scoring_system":"epss","scoring_elements":"0.30356","published_at":"2026-04-08T12:55:00Z"},{"value":"0.00116","scoring_system":"epss","scoring_elements":"0.30297","published_at":"2026-04-07T12:55:00Z"},{"value":"0.00116","scoring_system":"epss","scoring_elements":"0.30486","published_at":"2026-04-04T12:55:00Z"},{"value":"0.00116","scoring_system":"epss","scoring_elements":"0.30441","published_at":"2026-04-02T12:55:00Z"},{"value":"0.00116","scoring_system":"epss","scoring_elements":"0.30412","published_at":"2026-04-01T12:55:00Z"},{"value":"0.00126","scoring_system":"epss","scoring_elements":"0.31348","published_at":"2026-05-12T12:55:00Z"},{"value":"0.00126","scoring_system":"epss","scoring_elements":"0.31917","published_at":"2026-04-21T12:55:00Z"},{"value":"0.00126","scoring_system":"epss","scoring_elements":"0.31747","published_at":"2026-04-24T12:55:00Z"},{"value":"0.00126","scoring_system":"epss","scoring_elements":"0.31621","published_at":"2026-04-26T12:55:00Z"},{"value":"0.00126","scoring_system":"epss","scoring_elements":"0.31538","published_at":"2026-04-29T12:55:00Z"},{"value":"0.00126","scoring_system":"epss","scoring_elements":"0.31338","published_at":"2026-05-05T12:55:00Z"},{"value":"0.00126","scoring_system":"epss","scoring_elements":"0.31408","published_at":"2026-05-07T12:55:00Z"},{"value":"0.00126","scoring_system":"epss","scoring_elements":"0.31417","published_at":"2026-05-09T12:55:00Z"},{"value":"0.00126","scoring_system":"epss","scoring_elements":"0.31325","published_at":"2026-05-11T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2021-23648"},{"reference_url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23648","reference_id":"","reference_type":"","scores":[],"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23648"},{"reference_url":"https://github.com/braintree/sanitize-url","reference_id":"","reference_type":"","scores":[{"value":"5.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/braintree/sanitize-url"},{"reference_url":"https://github.com/braintree/sanitize-url/blob/main/src/index.ts%23L11","reference_id":"","reference_type":"","scores":[{"value":"5.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/braintree/sanitize-url/blob/main/src/index.ts%23L11"},{"reference_url":"https://github.com/braintree/sanitize-url/pull/40","reference_id":"","reference_type":"","scores":[{"value":"5.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/braintree/sanitize-url/pull/40"},{"reference_url":"https://github.com/braintree/sanitize-url/pull/40/commits/e5afda45d9833682b705f73fc2c1265d34832183","reference_id":"","reference_type":"","scores":[{"value":"5.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/braintree/sanitize-url/pull/40/commits/e5afda45d9833682b705f73fc2c1265d34832183"},{"reference_url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D","reference_id":"","reference_type":"","scores":[{"value":"5.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D"},{"reference_url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D/","reference_id":"","reference_type":"","scores":[],"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D/"},{"reference_url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH","reference_id":"","reference_type":"","scores":[{"value":"5.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH"},{"reference_url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH/","reference_id":"","reference_type":"","scores":[],"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH/"},{"reference_url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ","reference_id":"","reference_type":"","scores":[{"value":"5.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ"},{"reference_url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ/","reference_id":"","reference_type":"","scores":[],"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ/"},{"reference_url":"https://snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882","reference_id":"","reference_type":"","scores":[{"value":"5.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882"},{"reference_url":"https://bugzilla.redhat.com/show_bug.cgi?id=2065290","reference_id":"2065290","reference_type":"","scores":[],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2065290"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23648","reference_id":"CVE-2021-23648","reference_type":"","scores":[{"value":"5.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23648"},{"reference_url":"https://github.com/advisories/GHSA-hqq7-2q2v-82xq","reference_id":"GHSA-hqq7-2q2v-82xq","reference_type":"","scores":[{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-hqq7-2q2v-82xq"},{"reference_url":"https://access.redhat.com/errata/RHSA-2022:5069","reference_id":"RHSA-2022:5069","reference_type":"","scores":[],"url":"https://access.redhat.com/errata/RHSA-2022:5069"},{"reference_url":"https://access.redhat.com/errata/RHSA-2022:7519","reference_id":"RHSA-2022:7519","reference_type":"","scores":[],"url":"https://access.redhat.com/errata/RHSA-2022:7519"},{"reference_url":"https://access.redhat.com/errata/RHSA-2022:8057","reference_id":"RHSA-2022:8057","reference_type":"","scores":[],"url":"https://access.redhat.com/errata/RHSA-2022:8057"}],"weaknesses":[{"cwe_id":1035,"name":"OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."},{"cwe_id":79,"name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users."},{"cwe_id":937,"name":"OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."}],"exploits":[],"severity_range_score":"4.0 - 6.9","exploitability":"0.5","weighted_severity":"6.2","risk_score":3.1,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-x4cs-g2jz-eqb5"}