{"id":"CVE-2021-32670","url":"https://www.cyber-defence.io/tools/cve/CVE-2021-32670","generatedAt":"2026-10-27T23:29:19.083Z","title":"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.","description":"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.","published":"2021-06-07T22:15:08.000Z","lastModified":"2026-06-17T03:53:23.000Z","status":"Modified","sourceIdentifier":"security-advisories@github.com","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"cwe":["CWE-79"],"affected":["datasette/datasette"],"epss":{"score":0.0096,"percentile":0.61289,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (0.96%). Track it; it rarely justifies an emergency change on its own."},"changes":[],"references":[{"url":"https://datasette.io/plugins/datasette-auth-passwords","tags":["Vendor Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/simonw/datasette/issues/1360","tags":["Issue Tracking","Patch","Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g","tags":["Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks","tags":["Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://pypi.org/project/datasette/","tags":["Release Notes","Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://datasette.io/plugins/datasette-auth-passwords","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/simonw/datasette/issues/1360","tags":["Issue Tracking","Patch","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://pypi.org/project/datasette/","tags":["Release Notes","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32670","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}