{"cve":"CVE-2021-32670","nvd":{"published":"2021-06-07T22:15:07.650","modified":"2026-06-17T03:53:23.290","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://datasette.io/plugins/datasette-auth-passwords","https://github.com/simonw/datasette/issues/1360","https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g","https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks","https://pypi.org/project/datasette/"],"products":["datasette:datasette"],"source":"nvd","synced_at":"2026-10-19T21:20:07.141963181+00:00"},"epss":{"cve":"CVE-2021-32670","score":0.0096,"percentile":0.61546,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-xw7c-jx9m-xh5g","url":"https://osv.dev/vulnerability/GHSA-xw7c-jx9m-xh5g","summary":"Reflected cross-site scripting issue in Datasette","modified":"2026-07-08T06:28:56.693631657Z","packages":[{"ecosystem":"PyPI","name":"datasette","purl":"pkg:pypi/datasette","ranges":["<0.56.1"],"fixed":["0.56.1"]}]},{"id":"PYSEC-2021-89","url":"https://osv.dev/vulnerability/PYSEC-2021-89","summary":"","modified":"2023-11-08T04:05:56.311414Z","packages":[{"ecosystem":"PyPI","name":"datasette","purl":"pkg:pypi/datasette","ranges":["<0.56.1"],"fixed":["0.56.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}