CVE-2021-32670 Details
Description
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://datasette.io/plugins/datasette-auth-passwords | CVE | Vendor Advisory |
| https://github.com/simonw/datasette/issues/1360 | CVE | Issue TrackingPatchThird Party Advisory |
| https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g | CVE | Third Party Advisory |
| https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks | CVE | Third Party Advisory |
| https://pypi.org/project/datasette/ | CVE | Release NotesThird Party Advisory |
| https://datasette.io/plugins/datasette-auth-passwords | [email protected] | Vendor Advisory |
| https://github.com/simonw/datasette/issues/1360 | [email protected] | Issue TrackingPatchThird Party Advisory |
| https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g | [email protected] | Third Party Advisory |
| https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks | [email protected] | Third Party Advisory |
| https://pypi.org/project/datasette/ | [email protected] | Release NotesThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| datasette datasette | < 0.56.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Jun 14, 2021 | Initial Analysis | [email protected] |