CVE-2021-32670

Reflected cross-site scripting issue in Datasette

MEDIUM
6.1
CVSS Score
Published: June 7, 2021 at 09:20 PM UTC
Updated: June 17, 2026 at 03:53 AM UTC
2 products affected across 2 vendorsDatasetteDatasette

Using datasette by simonw?

Get instant alerts when new vulnerabilities affect datasette - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.1
Exploit prediction
EPSS 1.0%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.56.1
Affected range stops below 0.56.1, so it looks safe — our inference, not a vendor statement
v < 0.56.1
Affected range stops below 0.56.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (5)

x_refsource_MISCIssue TrackingPatchThird Party Advisory
https://github.com/simonw/datasette/issues/1360
x_refsource_MISCRelease NotesThird Party Advisory
https://pypi.org/project/datasette/

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card