CVE-2021-32670Datasette
Medium 6.1 No auth needed
Follow: this CVE · Datasette · Datasette We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Datasette.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| datasette | datasette | < 0.56.1 |
Official sources
References
Links published by the sources. Open them with care.
- datasette.io Vendor Advisory
- github.com Issue Tracking Patch Third Party Advisory
- github.com Third Party Advisory
- owasp.org Third Party Advisory
- pypi.org Release Notes Third Party Advisory