Reflected cross-site scripting issue in Datasette
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| simonw | datasette | before 0.56.1 | 0.56.1 | Patch available | CNA |
| — | datasette (PyPI) | before 0.56.1 | 0.56.1 | Patch available | GHSA-xw7c-jx9m-xh5g |
- datasette Vendorsimonw Affected before 0.56.1 Fixed in 0.56.1 Patch available CNA
- datasette (PyPI) Vendor— Affected before 0.56.1 Fixed in 0.56.1 Patch available GHSA-xw7c-jx9m-xh5g
Remediation
- Fix · CNA datasette (simonw) Fixed in 0.56.1
- Fix · GHSA-xw7c-jx9m-xh5g datasette (PyPI) Fixed in 0.56.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-32670
- 2026-10-03 Alias added: GHSA-xw7c-jx9m-xh5g
References
Advisory 5
More simonw vulnerabilities
- TI-2025-39873 Open redirect endpoint in Datasette CVSS 4.0LOW 2.7
Sources
- CVE-2021-32670 · CVE Program
- CVE-2021-32670 · NVD
- FIRST EPSS
- GHSA-xw7c-jx9m-xh5g · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences