{
    "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2021-32670",
        "STATE": "PUBLIC",
        "TITLE": "Reflected cross-site scripting issue in Datasette"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "datasette",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "< 0.56.1"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "simonw"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "Datasette is an open source multi-tool for exploring and publishing data. The `?_trace=1` debugging feature in Datasette does not correctly escape generated HTML, resulting in a [reflected cross-site scripting](https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks) vulnerability. This vulnerability is particularly relevant if your Datasette installation includes authenticated features using plugins such as [datasette-auth-passwords](https://datasette.io/plugins/datasette-auth-passwords) as an attacker could use the vulnerability to access protected data. Datasette 0.57 and 0.56.1 both include patches for this issue. If you run Datasette behind a proxy you can workaround this issue by rejecting any incoming requests with `?_trace=` or `&_trace=` in their query string parameters."
            }
        ]
    },
    "impact": {
        "cvss": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 7.2,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "LOW",
            "integrityImpact": "LOW",
            "privilegesRequired": "NONE",
            "scope": "CHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N",
            "version": "3.1"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g",
                "refsource": "CONFIRM",
                "url": "https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g"
            },
            {
                "name": "https://github.com/simonw/datasette/issues/1360",
                "refsource": "MISC",
                "url": "https://github.com/simonw/datasette/issues/1360"
            },
            {
                "name": "https://datasette.io/plugins/datasette-auth-passwords",
                "refsource": "MISC",
                "url": "https://datasette.io/plugins/datasette-auth-passwords"
            },
            {
                "name": "https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks",
                "refsource": "MISC",
                "url": "https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks"
            },
            {
                "name": "https://pypi.org/project/datasette/",
                "refsource": "MISC",
                "url": "https://pypi.org/project/datasette/"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-xw7c-jx9m-xh5g",
        "discovery": "UNKNOWN"
    }
}