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.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
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-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 lookupCVE-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- 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
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.
CVSS vector scores
1 official scoreWe 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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N3.92.7Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
7.2HighVector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Source materials
- CVE List V5 sourceCVE List V5
- https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5gCVE reference · x_refsource_CONFIRM
- https://github.com/simonw/datasette/issues/1360CVE reference · x_refsource_MISC
- https://datasette.io/plugins/datasette-auth-passwordsCVE reference · x_refsource_MISC
- https://owasp.org/www-community/attacks/xss/#reflected-xss-attacksCVE reference · x_refsource_MISC
- https://pypi.org/project/datasette/CVE reference · x_refsource_MISC
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
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.
