Live threats

All CVEs / Datasette

CVE-2021-32670Datasette

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
1.0%
probability of exploitation in 30 days · percentile 60
Auth required
No
Published
Jun 7, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Datasette.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI datasette < 0.56.1 0.56.1 pip install "datasette>=0.56.1"
PyPI datasette < 0.56.1 0.56.1 pip install "datasette>=0.56.1"

Per OSV / GitHub Advisories (GHSA-xw7c-jx9m-xh5g, PYSEC-2021-89). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
datasettedatasette< 0.56.1

Official sources

References

Links published by the sources. Open them with care.