CVE-2021-32670 json
Reflected cross-site scripting issue in Datasette
published 2021-06-07 5 y ago modified 2026-07-08 4 mo ago also GHSA-gff3-739c-gxfq , GHSA-xw7c-jx9m-xh5g , PYSEC-2021-89 , EUVD-2021-0051
- cvss
- 7.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 61%
- public exploits
- 0
- none known
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.
Patch / fix
Exploit prediction
0.96% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | datasette | <0.56.1 |
0.56.1 |
Affected products
- simonw datasette
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/simonw/datasette/issues/1360
web, issue-tracking, patch, third-party-advisory, report
-
datasette.io
/plugins/datasette-auth-passwords
web, vendor-advisory
-
github.com
/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g
web, third-party-advisory, advisory
-
owasp.org
/www-community/attacks/xss/#reflected-xss-attacks
web, third-party-advisory
-
pypi.org
/project/datasette/
release-notes, third-party-advisory, package
-
nvd.nist.gov
/vuln/detail/CVE-2021-32670
advisory
-
pypi.org
/project/datasette
web
-
github.com
/advisories/GHSA-gff3-739c-gxfq
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/datasette/PYSEC-2021-89.yaml
web
-
github.com
/simonw/datasette
package
Sources
- CVE List CVE-2021-32670
- GitHub Advisory GHSA-gff3-739c-gxfq
- GitHub Advisory GHSA-xw7c-jx9m-xh5g
- NVD CVE-2021-32670
- OSV PYSEC-2021-89
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.