Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-32670
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:48 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-32670
Complete source record
{
"id": "d9eefe3b43639eec31b3062f4b6f62f2705fbe5762d6b235dfcf9ab97c4cd878",
"url": "https://osv.dev/vulnerability/CVE-2021-32670",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-32670",
"summary": "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.",
"evidence": "osv:CVE-2021-32670",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-32670",
"aliases": [
"CVE-2021-32670",
"GHSA-gff3-739c-gxfq",
"GHSA-xw7c-jx9m-xh5g",
"PYSEC-2021-89"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/simonw/datasette",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "6536e02f7412591501eeda9b07ef7977246578f2"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:datasette:datasette:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.56.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"0.56",
"0.55",
"0.54",
"0.54a0",
"0.53",
"0.52.4",
"0.52.3",
"0.52.2",
"0.52.1",
"0.52",
"0.51.1",
"0.51",
"0.51a2",
"0.51a1",
"0.51a0",
"0.50.2",
"0.50.1",
"0.50",
"0.50a1",
"0.50a0",
"0.49.1",
"0.49",
"0.49a1",
"0.49a0",
"0.48",
"0.47.3",
"0.47.2",
"0.47.1",
"0.47",
"0.46",
"0.45",
"0.45a5",
"0.45a4",
"0.45a3",
"0.45a2",
"0.45a1",
"0.45a0",
"0.44",
"0.43",
"0.42",
"0.41",
"0.40",
"0.39",
"0.38",
"0.37.1",
"0.37",
"0.36",
"0.35",
"0.34",
"0.33",
"0.32",
"0.31.2",
"0.31.1",
"0.31",
"0.30.2",
"0.30.1",
"0.30",
"0.29.3",
"0.29.2",
"0.29.1",
"0.29",
"0.28",
"0.27",
"0.26.2",
"0.26.1",
"0.26",
"0.25.2",
"0.25.1",
"0.25",
"0.24",
"0.23.2",
"0.23.1",
"0.23",
"0.22.1",
"0.22",
"0.21",
"0.20",
"0.19",
"0.18",
"0.17",
"0.16",
"0.15",
"0.14",
"0.13",
"0.12",
"0.11",
"0.10",
"0.9",
"0.8",
"0.7"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32670.json"
}
}
],
"modified": "2026-10-20T10:54:45.308580172Z",
"provider": "osv",
"references": [
"https://datasette.io/plugins/datasette-auth-passwords",
"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/",
"https://github.com/simonw/datasette/issues/1360"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-32670",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 386091,
"published_at": "2021-06-07T22:15:07.65+00:00"
}