LiveActive security incident?Get immediate response
CVE Record

CVE-2021-32670: 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](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.

HighCVSS 7.2Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Datasette versions before 0.56.1 can reflect attacker-controlled script through its trace debugging output. The main business risk is unauthorized access to data in deployments that expose Datasette, especially where authentication plugins protect private datasets.

Executive priority

Treat as high priority for any public or authenticated Datasette deployment. The fix is available, and the issue can affect confidentiality and integrity of protected data without requiring attacker credentials.

Technical view

CVE-2021-32670 is a CWE-79 reflected XSS flaw in Datasette's ?_trace=1 debugging feature. Generated HTML is not escaped correctly. The vendor patched it in Datasette 0.56.1 and 0.57, and documented a proxy-level query-string block as a workaround.

Likely exposure

Exposure is likely limited to organizations running Datasette earlier than 0.56.1. Internet-facing instances and installations using authenticated features, including datasette-auth-passwords, carry higher risk because protected data could be targeted.

Exploitation context

The source bundle does not show CISA KEV listing or cited active exploitation. The advisory describes network-reachable, unauthenticated reflected XSS with low complexity. Evidence is sufficient for remediation priority, but not for claiming exploitation in the wild.

Researcher notes

The vulnerability is specifically tied to trace debugging HTML escaping. Do not generalize it to all Datasette pages without testing. Focus validation on version state, trace exposure, authentication plugins, and whether proxy filtering is active.

Mitigation direction

  • Upgrade Datasette to 0.56.1, 0.57, or a later release.
  • If behind a proxy, reject requests containing ?_trace= or &_trace=.
  • Prioritize instances using authentication plugins or publishing sensitive datasets.
  • Review vendor guidance before applying any additional workaround.

Validation and detection

  • Inventory Datasette versions across production, staging, and public hosts.
  • Confirm no deployed instance runs a version earlier than 0.56.1.
  • Check proxy or application logs for requests containing _trace parameters.
  • Identify deployments using datasette-auth-passwords or other authenticated features.
  • Verify any proxy block handles both ?_trace= and &_trace= forms.
Prepared
Confidence
high
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-32670 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.2 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
6Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.2CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N3.92.7Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.2High
CVSS 3.1 vector shape for CVE-2021-32670Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
simonwdatasette< 0.56.1Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.