Vulnerability · Published Aug 25, 2023 · Assigned by GitHub_M

CVE-2023-40570Datasette 1.0 alpha series leaks names of databases and tables to unauthenticated users

Medium 5.3

In plain English

A medium-severity security flaw in datasette from simonw. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.6%top 53.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Datasette is an open source multi-tool for exploring and publishing data. This bug affects Datasette instances running a Datasette 1.0 alpha - 1.0a0, 1.0a1, 1.0a2 or 1.0a3 - in an online accessible location but with authentication enabled using a plugin such as datasette-auth-passwords. The `/-/api` API explorer endpoint could reveal the names of both databases and tables - but not their contents - to an unauthenticated user. Datasette 1.0a4 has a fix for this issue. This will block access to the API explorer but will still allow access to the Datasette read or write JSON APIs, as those use different URL patterns within the Datasette `/database` hierarchy. This issue is patched in version 1.0a4.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIdatasette1.0a4GHSA-7ch3-7pp7-7cpq
PyPIdatasetteno fix listedPYSEC-2023-154

Affected products (as reported)

VendorProductVersions
simonw datasette >= 1.0a0, < 1.0a4

Weakness: CWE-213 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

References