{
    "data_type": "CVE",
    "data_format": "MITRE",
    "data_version": "4.0",
    "CVE_data_meta": {
        "ASSIGNER": "report@snyk.io",
        "DATE_PUBLIC": "2022-03-16T15:41:27.827225Z",
        "ID": "CVE-2021-23648",
        "STATE": "PUBLIC",
        "TITLE": "Cross-site Scripting (XSS)"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "@braintree/sanitize-url",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_value": "6.0.0"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "n/a"
                }
            ]
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "Cross-site Scripting (XSS)"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "refsource": "MISC",
                "url": "https://snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882",
                "name": "https://snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/braintree/sanitize-url/blob/main/src/index.ts%23L11",
                "name": "https://github.com/braintree/sanitize-url/blob/main/src/index.ts%23L11"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/braintree/sanitize-url/pull/40",
                "name": "https://github.com/braintree/sanitize-url/pull/40"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/braintree/sanitize-url/pull/40/commits/e5afda45d9833682b705f73fc2c1265d34832183",
                "name": "https://github.com/braintree/sanitize-url/pull/40/commits/e5afda45d9833682b705f73fc2c1265d34832183"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2022-83405f9d5b",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ/"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2022-9dd03cab55",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D/"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2022-c5383675d9",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH/"
            }
        ]
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function."
            }
        ]
    },
    "impact": {
        "cvss": {
            "version": "3.1",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P",
            "baseScore": 5.4,
            "baseSeverity": "MEDIUM",
            "attackVector": "NETWORK",
            "attackComplexity": "LOW",
            "privilegesRequired": "NONE",
            "userInteraction": "REQUIRED",
            "scope": "UNCHANGED",
            "confidentialityImpact": "LOW",
            "integrityImpact": "LOW",
            "availabilityImpact": "NONE"
        }
    },
    "credit": [
        {
            "lang": "eng",
            "value": "Bob \"Wombat\" Hogg"
        }
    ]
}