Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-32670

HIGH 7.2EPSS 60%

Reflected cross-site scripting issue in Datasette

Also known as GHSA-gff3-739c-gxfq, GHSA-xw7c-jx9m-xh5g, PYSEC-2021-89

Mitigation

  • Upgrade datasette to 0.56.1 or later.

Who should check

  • Projects that depend on PyPI package datasette (< 0.56.1)
  • Anyone running simonw datasette < 0.56.1

Vulnerability facts

Affected
datasette < 0.56.1
Fixed in
0.56.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: None
EPSS
0.96% chance of exploitation in 30 days (percentile 60, 2026-11-26)
CWE
CWE-79
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI datasette< 0.56.10.56.1osv
simonw datasette< 0.56.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-32670. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-32670.md
Affected: datasette < 0.56.1
Fixed in: 0.56.1

Steps:
1. Search this machine and project for datasette (PyPI), simonw datasette: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2021-32670 being exploited?

There is no confirmed exploitation: CVE-2021-32670 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.96% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-32670?

High: CVSS 7.2 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2021-32670?

datasette < 0.56.1.

Is there a fix for CVE-2021-32670?

Yes. Fixed in 0.56.1. Upgrade datasette to 0.56.1 or later.

How do I check if I'm affected by CVE-2021-32670?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors