Read the docs
TI-2021-12338 Aliases CVE-2021-32670GHSA-xw7c-jx9m-xh5g

Reflected cross-site scripting issue in Datasette

Priority LOW 34CWE-79Published · Updated

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

EPSS 0.0096 61st percentileScored 2026-11-07
Fix Fixed datasette (simonw): 0.56.1datasette (PyPI): 0.56.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
simonwdatasettebefore 0.56.10.56.1Patch availableCNA
—datasette (PyPI)before 0.56.10.56.1Patch availableGHSA-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

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:datasette:datasette:*:*:*:*:*:*:*:*before 0.56.1VulnerableDatasette
  • cpe:2.3:a:datasette:datasette:*:*:*:*:*:*:*:* Versions before 0.56.1 Vulnerable ·Datasette

Remediation

  • Fix · CNA datasette (simonw) Fixed in 0.56.1
  • Fix · GHSA-xw7c-jx9m-xh5g datasette (PyPI) Fixed in 0.56.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-32670
  2. 2026-10-03 Alias added: GHSA-xw7c-jx9m-xh5g

References

  • TI-2025-39873 Open redirect endpoint in Datasette CVSS 4.0LOW 2.7

Sources