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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 47% of CVEs (2026-12-01)
- Published: 2023-08-22T18:06:46.000Z
- Modified: 2026-06-17T06:18:30.550Z
- Also known as: GHSA-7ch3-7pp7-7cpq, PYSEC-2023-154
- Weaknesses: CWE-200, CWE-213
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- simonw datasette: >= 1.0a0, < 1.0a4
- datasette (PyPI): from 1.0a0 before 1.0a4; before 01e0558825b8f7ec17d3b691aa072daf122fcc74; all versions
- datasette datasette: 1.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/simonw/datasette/security/advisories/GHSA-7ch3-7pp7-7cpq> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/simonw/datasette/commit/01e0558825b8f7ec17d3b691aa072daf122fcc74> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-40570> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/datasette/PYSEC-2023-154.yaml> (web)
- <https://github.com/simonw/datasette> (package)

## Sources

- CVE List: [CVE-2023-40570](https://www.cve.org/CVERecord?id=CVE-2023-40570), CVE Terms of Use, modified 2024-10-02
- GitHub Advisory Database: [GHSA-7ch3-7pp7-7cpq](https://github.com/advisories/GHSA-7ch3-7pp7-7cpq), CC-BY-4.0, modified 2026-06-09
- NVD: [CVE-2023-40570](https://nvd.nist.gov/vuln/detail/CVE-2023-40570), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-154](https://osv.dev/vulnerability/PYSEC-2023-154), CC-BY-4.0, modified 2025-10-09

---

Page: https://cve.day/CVE-2023-40570 · Whole record: https://cve.day/CVE-2023-40570.json · Rebuilt by cve.day 2026-11-25T22:58:27.349Z
