{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2021-32855",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "dateUpdated": "2024-08-03T23:33:56.029Z",
        "dateReserved": "2021-05-12T00:00:00",
        "datePublished": "2023-02-20T00:00:00"
    },
    "containers": {
        "cna": {
            "title": "vditor vulnerable to Cross-site Scripting",
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2023-02-20T00:00:00"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Vditor is a browser-side Markdown editor. Versions prior to 3.8.7 are vulnerable to copy-paste cross-site scripting (XSS). For this particular type of XSS, the victim needs to be fooled into copying a malicious payload into the text editor. Version 3.8.7 contains a patch for this issue."
                }
            ],
            "affected": [
                {
                    "vendor": "npm",
                    "product": "vditor",
                    "versions": [
                        {
                            "version": "3.8.7",
                            "status": "affected",
                            "lessThan": "3.8.7",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://securitylab.github.com/advisories/GHSL-2021-1006-vditor/"
                },
                {
                    "url": "https://github.com/Vanessa219/vditor/issues/1085"
                },
                {
                    "url": "https://github.com/Vanessa219/vditor/commit/1b2382d7f8a4ee509d9245db4450d926a0b24146"
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "privilegesRequired": "NONE",
                        "userInteraction": "REQUIRED",
                        "scope": "CHANGED",
                        "confidentialityImpact": "LOW",
                        "integrityImpact": "LOW",
                        "availabilityImpact": "NONE",
                        "baseScore": 6.1,
                        "baseSeverity": "MEDIUM"
                    }
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "lang": "en",
                            "description": "CWE-79 Cross-site Scripting (XSS)",
                            "cweId": "CWE-79"
                        }
                    ]
                }
            ],
            "x_generator": {
                "engine": "Vulnogram 0.0.9"
            },
            "source": {
                "advisory": "GHSL-2021-1006",
                "defect": [
                    "GHSL-2021-1006"
                ],
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T23:33:56.029Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://securitylab.github.com/advisories/GHSL-2021-1006-vditor/",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/Vanessa219/vditor/issues/1085",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/Vanessa219/vditor/commit/1b2382d7f8a4ee509d9245db4450d926a0b24146",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}