CVE-2021-32670
MEDIUM 6.1CVSS 3.1Duplicate Advisory: Reflected cross-site scripting issue in Datasette
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 vulnerability. This vulnerability is particularly relevant if your Datasette installation includes authenticated features using plugins such as 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.
- Published
- 7 Jun 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-gff3-739c-gxfqGHSA-xw7c-jx9m-xh5gPYSEC-2021-89
- Sources
- NVDJSONOSV GHSA-gff3-739c-gxfqJSONOSV GHSA-xw7c-jx9m-xh5gJSONOSV PYSEC-2021-89JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | datasette | datasettecpe:2.3:a:datasette:datasette:*:*:*:*:*:*:*:* |
< 0.56.1 | 0.56.1 |
| OSV | PyPI | datasette | < 0.56.1 | 0.56.1 |
References
- https://datasette.io/plugins/datasette-auth-passwords · Vendor Advisory, WEB
- https://github.com/simonw/datasette/issues/1360 · Issue Tracking, Patch, Third Party Advisory, WEB, REPORT
- https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g · Third Party Advisory, WEB, ADVISORY
- https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks · Third Party Advisory, WEB
- https://pypi.org/project/datasette/ · Release Notes, Third Party Advisory, WEB, PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2021-32670 · ADVISORY
- https://github.com/advisories/GHSA-gff3-739c-gxfq · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/datasette/PYSEC-2021-89.yaml · WEB
- https://github.com/simonw/datasette · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 7 Jun 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jun 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jun 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Jun 2021)