7.2
HIGH CVSS 3.1
CVE-2021-32670
Datasette Reflected Cross-Site Scripting (XSS) Vulnerability
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.

INFO

Published Date :

June 7, 2021, 10:15 p.m.

Last Modified :

Nov. 21, 2024, 6:07 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2021-32670 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Datasette datasette
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 MEDIUM [email protected]
CVSS 3.1 HIGH [email protected]
CVSS 3.1 MEDIUM [email protected]
Public PoC/Exploit Available at Github

CVE-2021-32670 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-32670.

URL Resource
https://datasette.io/plugins/datasette-auth-passwords Vendor Advisory
https://github.com/simonw/datasette/issues/1360 Issue Tracking Patch Third Party Advisory
https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g Third Party Advisory
https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks Third Party Advisory
https://pypi.org/project/datasette/ Release Notes Third Party Advisory
https://datasette.io/plugins/datasette-auth-passwords Vendor Advisory
https://github.com/simonw/datasette/issues/1360 Issue Tracking Patch Third Party Advisory
https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g Third Party Advisory
https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks Third Party Advisory
https://pypi.org/project/datasette/ Release Notes Third Party Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-32670 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-32670 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Automatic monitor github cve using Github Actions

Python

Updated: 5 months, 2 weeks ago
2 stars 55 fork 55 watcher
Born at : April 7, 2021, 11:16 a.m. This repo has been linked 1008 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-32670 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-32670 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://datasette.io/plugins/datasette-auth-passwords
    Added Reference https://github.com/simonw/datasette/issues/1360
    Added Reference https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g
    Added Reference https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks
    Added Reference https://pypi.org/project/datasette/
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Jun. 14, 2021

    Action Type Old Value New Value
    Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:N/I:P/A:N)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    Changed Reference Type https://datasette.io/plugins/datasette-auth-passwords No Types Assigned https://datasette.io/plugins/datasette-auth-passwords Vendor Advisory
    Changed Reference Type https://github.com/simonw/datasette/issues/1360 No Types Assigned https://github.com/simonw/datasette/issues/1360 Issue Tracking, Patch, Third Party Advisory
    Changed Reference Type https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g No Types Assigned https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g Third Party Advisory
    Changed Reference Type https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks No Types Assigned https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks Third Party Advisory
    Changed Reference Type https://pypi.org/project/datasette/ No Types Assigned https://pypi.org/project/datasette/ Release Notes, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:datasette:datasette:*:*:*:*:*:*:*:* versions up to (excluding) 0.56.1
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.2
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 4.3
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.59 }} -0.13%

score

0.68304

percentile