{"slug": "datasette-1-0a43-private-stored-query-leak-fixed-streaming-exports-ship", "title": "Datasette 1.0a43: Private Stored-Query Leak Fixed, Streaming Exports Ship", "summary": "Datasette 1.0a43 shipped on November 15, 2026, fixing a private stored-query metadata exposure that let unauthorized actors read the title and SQL text of private queries, alongside a database download ACL bug fixed in both 1.0a43 and the 0.65.6 stable line. Simon Willison, Datasette's creator, said the stored-query flaw was worthy of a published GitHub advisory, and the release also adds a Response.stream() feature flag so built-in CSV and TSV exporters stream row batches instead of buffering whole tables in memory. Willison put the 1.0 milestone at 53% complete, with heavy use of Claude Fable 5.2, and companion plugins datasette-agent 0.6.0, datasette-apps 0.4.0 and datasette-maplibre 0.1a0 shipped the same weekend.", "body_md": "**Datasette 1.0a43 arrived on November 15, 2026 with a security fix for private stored queries**, streaming CSV and TSV exports, and a pile of 1.0 milestone polish—while companion plugins **`datasette-agent` 0.6.0**, **`datasette-apps` 0.4.0**, and **`datasette-maplibre` 0.1a0** shipped the same weekend. [Datasette.io's news post](https://datasette.io/news/2026-11-15?ref=explainx) is the authoritative changelog; [Simon Willison's release write-up](https://simonwillison.net/2026/Nov/15/datasette/?ref=explainx) adds context on Claude Fable 5.2 assisting the 1.0 push.\n\nIf you publish SQLite to the web for newsrooms, NGOs, or internal ops dashboards, this release is both **patch Tuesday** and **feature Friday**: close ACL leaks before agents get wider [`store-query` permissions](https://explainx.ai/blog/llm-0-37-simon-willison-gpt-6-1-sol-terra-openai-compatible-endpoint-add-guide-2026), then turn on **streaming exports** so million-row tables do not OOM your workers.\n\n## TL;DR\n\n| Item | Detail | \n|---|---|\n| Versions | **1.0a43** (1.0 alpha) and**0.65.6** (0.6 stable) | \n| Security | **Private stored-query metadata exposure** fixed in 1.0a43;**database download ACL** fix in both lines | \n| Advisory | Willison deemed the stored-query issue **GitHub advisory–worthy** (see the[Datasette security advisories page](https://github.com/simonw/datasette/security/advisories?ref=explainx) ) | \n| Feature flag | **`Response.stream()`** for output renderers; core CSV/TSV use it | \n| Agent UX | **datasette-agent 0.6** homepage prompt + table hash-mentions | \n| Apps | **datasette-apps 0.4** URL fragments for cross-app linking | \n| Maps | **datasette-maplibre 0.1a0** MapLibre + OpenFreeMap plugin | \n| 1.0 progress | Willison: milestone **53%** complete, heavy**Claude Fable 5.2** use | \n\n## Security: private stored queries and database downloads\n\n[Datasette.io](https://datasette.io/news/2026-11-15?ref=explainx) summarizes two classes of bugs:\n\n1. **Private stored queries** — actors who should not see a private query could still read**title and SQL text** , even if they could not execute it. That is a**confidentiality** breach for teams using stored queries as saved investigation playbooks.\n2. **Database downloads** — when a database is registered under a**route different from its filename** , download ACLs could let denied actors fetch the file anyway.\n\nWillison's [personal release notes](https://simonwillison.net/2026/Nov/15/datasette/?ref=explainx) say one flaw deserved a **published GitHub advisory**. Multi-tenant instances—common in data journalism circles that adopted Datasette during COVID dashboards—should treat this as **patch-now**, not next sprint.\n\nA protected key in a capsule evoking private stored-query metadata patched in Datasette 1.0a43\n\n### Upgrade matrix\n\n| Track | Version | Action | \n|---|---|---|\n| Running 1.0 alphas | **→ 1.0a43** | `pip install datasette==1.0a43` | \n| Running 0.6x stable | **→ 0.65.6** | Same pin on 0.65.6 | \n| Private queries unused | Still upgrade | Download ACL bug may still apply | \n| Air-gapped single-user | Lower urgency | Metadata leak risk minimal | \n\nAfter upgrading, audit **`view-query`**, **` store-query`**, and **` download-database`** permissions on each published database. The stored-query redesign from [1.0a31](https://explainx.ai/blog/mcp-2026-07-28-stateless-spec-july-2026) made queries first-class rows; this patch closes a hole in that model.\n\nAdapter pipes meeting through a junction evoking Datasette streaming CSV and TSV export renderers\n\n## Streaming exports and the 1.0 finishing list\n\nThe headline feature is **`Response.stream()`** for **output renderers**. Built-in **TSV and CSV** exporters now stream row batches instead of buffering entire tables in memory—critical when reporters dump multi-gigabyte public-records tables.\n\nPlugins can register as **stream-capable**, which matters for bespoke redacted exports in legal-tech stacks. Willison also shipped:\n\n- **Row JSON** layout deemed ready for 1.0 freeze.\n- **`<datasette-copy-schema>`** web component for schema snippets.\n- **Pretty-printed JSON columns** on row pages.\n- **`DatasetteModal.confirm()`** JS helper.\n- **View transitions CSS** for smoother multi-page navigation (Safari/Chrome today; Firefox 162 in December 2026 per Willison).\n\nHe explicitly credits **Claude Fable 5.2** for accelerating the 1.0 backlog—consistent with [Fable-assisted creative coding posts](https://explainx.ai/blog/claude-fable-5-2-simulated-brushstroke-painting-code-engine-2026) elsewhere on explainx.ai.\n\n## Companion plugins from the same release train\n\nWillison bundled four ecosystem updates on November 15:\n\n### datasette-agent 0.6.0\n\nAdds an **agent prompt on the Datasette homepage** with **hash-mentions** for tables and saved queries—basically steering [LLM CLI tools](https://explainx.ai/blog/what-are-agent-skills-complete-guide) toward live schema context. This pairs with the [stateless MCP interest](https://explainx.ai/blog/mcp-2026-07-28-stateless-spec-july-2026) Willison flagged after **`mcp-explorer`** experiments.\n\n### datasette-apps 0.4.0\n\n**Sandboxed HTML/JS apps** inside Datasette (Artifact-like, but SQL-aware) now read **URL fragments**, enabling one app to link another with structured state. Datasette Agent learns supported schemes so prompts can generate cross-app navigation.\n\n### datasette-maplibre 0.1a0\n\nFirst new geospatial plugin in a while: **MapLibre GL** plus **OpenFreeMap** vector tiles, merging ideas from `datasette-cluster-map` and `datasette-leaflet-geojson`. Willison says **Fable 5.2** scaffolded much of the repo in one prompt—a useful data point for **[geospatial agent demos](https://explainx.ai/blog/google-earth-ai-geospatial-reasoning-agent-geoktools-geoexpertqueries-ebola-who-2026)** teams comparing MapLibre to Google stacks.\n\n### datasette 1.0a43 proper\n\nTreat the plugin releases as **dependent features** on the core security and streaming work—do not upgrade plugins without bumping core.\n\n## What developers should do this week\n\n1. **Pin versions** in`requirements.txt` or Docker images; rerun CI against 1.0a43.\n2. **Re-scan stored queries** for sensitive SQL comments you assumed were private.\n3. **Test streaming exports** on your widest table; tune reverse-proxy timeouts.\n4. If you expose Datasette via **MCP** , re-run permission audits—agents amplifying metadata leaks is worse than browsers doing so.\n5. Read Willison's **view transitions** commit if you skin custom templates; animations respect`prefers-reduced-motion` .\n\n### Concrete upgrade and test checklist\n\n| Step | Why it matters | \n|---|---|\n| Snapshot **`datasette.yaml`** and plugin pins | Roll back if streaming plugins misbehave | \n| Run **`datasette --version`** in each environment | Staging often lags production on SQLite publishers | \n| Hit **`/-/queries`** as a low-privilege test user | Confirm private titles no longer visible cross-account | \n| Attempt **database download** on renamed routes | Reproduces the ACL bug class patched in 0.65.6 | \n| Export widest table to **CSV/TSV** while watching RSS | Validates streaming path under load | \n| grep logs for **agent plugins** listing queries | Agents cache schema; flush after ACL changes | \n\nDocker deployers should rebuild images rather than `pip install` inside running containers—Datasette's plugin ecosystem loads at process start, and orphaned workers are a common reason newsrooms think they patched when one pod did not.\n\n### Who gets hurt if you delay?\n\n| Persona | Risk if you skip 1.0a43 | \n|---|---|\n| **Investigative desk** | Saved SQL in private queries leaks story angles | \n| **Multi-tenant SaaS** | Customer A sees Customer B's named investigations | \n| **Agent automation** | LLM tools exfiltrate query titles into thread logs | \n| **Public civic site** | Lower risk on read-only single-tenant, but download bug may still apply | \n\n## Stored queries in the 1.0 permission model (context)\n\nDatasette's **stored query** overhaul landed in **`1.0a31`**: canned queries became database rows with **private defaults**, **trusted YAML imports**, and granular **`store-query` / `execute-write-sql`** permissions. That design is why the November 2026 bug stung—private queries are first-class secrets, not ephemeral browser state.\n\nIf you migrated from 0.64.x, revisit:\n\n- Which queries are **`is_trusted: true`** in YAML imports.\n- Whether **`execute-write-sql`** should be narrower after agent plugins arrive.\n- How **`datasette-agent` homepage prompts** expose table names via hash-mentions (feature in 0.6.0).\n\nWillison's stack is a reference architecture for **[small-team AI publishing](https://explainx.ai/blog/claude-fable-5-2-simulated-brushstroke-painting-code-engine-2026)**: Fable drafts plugins, Datasette enforces ACLs, agents read only what permissions allow. A metadata leak breaks that chain even when execution stays blocked.\n\n## Streaming architecture notes for operators\n\nBefore `Response.stream()`, exporters often materialized whole tables—fine for thousand-row demos, fatal for **FOIA dumps**. Streaming shifts failure modes:\n\n- **Reverse proxies** may buffer unless chunked encoding is honored.\n- **Plugins** registering renderers must declare stream capability explicitly.\n- **Downstream notebooks** that assumed finite JSON payloads need pagination updates.\n\nIf you previously cron-exported CSV to S3, measure **time-to-first-byte** after upgrading; it should drop on wide tables. If it does not, check for plugins still using non-streaming render paths.\n\n## Map plugin and apps: should you install them now?\n\n**datasette-maplibre 0.1a0** is alpha—fine for newsroom maps mirroring **[MapLibre geospatial demos](https://explainx.ai/blog/google-maps-platform-ai-studio-demo-key-geospatial-apps-2026)** you already run in static HTML, but expect breaking URL schema changes.\n\n**datasette-apps 0.4.0** matters when you want **Artifact-like** internal tools without shipping a second React app. Fragment linking is the enabling detail for multi-app newsroom kits (overview app → record app).\n\nNeither plugin fixes security; upgrade **core first**, then bump plugins in a second deploy so you can separate regression signals.\n\n## Willison's 1.0 milestone cadence\n\nWillison wrote that the **1.0 milestone** is **53% complete**, with **Claude Fable 5.2** accelerating UI polish and bug-backlog burns. That matters for dependency planning: alpha releases will keep shipping quickly, and security patches may land **between** feature blog posts you bookmarked weeks ago.\n\nTeams standardizing on Datasette for **election or investigative dashboards** should subscribe to [Datasette.io news](https://datasette.io/news/?ref=explainx) and Simon Willison's feed, not only GitHub releases—advisories sometimes appear in narrative posts before release tags propagate to PyPI mirrors.\n\nIf you maintain a fork, diff not only Python but also **default templates and static assets**; view-transition CSS arrived as a small commit with outsized UX impact.\n\n### Relationship to the LLM CLI and MCP experiments\n\nWillison's **llm** CLI and **mcp-explorer** tooling sit adjacent to Datasette in his stack. When **datasette-agent** puts prompts on the homepage, you are looking at the same philosophy as **[stateless MCP](https://explainx.ai/blog/mcp-2026-07-28-stateless-spec-july-2026)**: constrain what agents can touch, log the surface, and keep humans one click away from raw SQL.\n\nThat is why ACL patches belong in the same incident ticket as agent upgrades—your threat model is now **curious journalist + curious model**, not only malicious outsider.\n\n## FAQ-style gaps people search\n\n### Does the stored-query bug let attackers run SQL?\n\nWillison's note: exposure covered **title and SQL text**, not execution rights. Still toxic if queries encode **PII filters**, **law-enforcement joins**, or **unreleased story angles**.\n\n### Is 1.0 finally stable?\n\nNo—this is **`1.0a43`**, alpha. Production teams on 0.6x should stay on **0.65.6** until Willison tags 1.0 stable.\n\n### How does this compare to chaining MCP + SQLite elsewhere?\n\nDatasette's value is **opinionated read-only publishing** with ACLs. The patch shows why **hand-rolled FastAPI + SQLite** tools need the same **query-catalog ACL tests** Datasette just learned.\n\n### Should I pause agent demos during the upgrade?\n\nYes, if agents can **list stored queries** or echo **schema metadata** in threads. Bring agents back only after you complete the **private-query visibility test** and confirm logs did not already capture leaked titles during the vulnerable window. If you demoed a sensitive investigation this week, rotate any **named query** that lived in a private catalog.\n\nFor public demos, pin **`datasette==1.0a43`** in the Dockerfile you ship to conferences; unpinned `pip install datasette` pulled vulnerable alphas for anyone who cloned your repo after **`1.0a42`**.\n\n## Related reading\n\n*Version numbers and security scope match Datasette.io and Willison's posts as of November 16, 2026 UTC.*", "url": "https://wpnews.pro/news/datasette-1-0a43-private-stored-query-leak-fixed-streaming-exports-ship", "canonical_source": "https://explainx.ai/blog/datasette-1-0a43-stored-query-advisory-streaming-2026?utm_source=rss&utm_medium=feed&utm_campaign=blog", "published_at": "2026-11-16 00:00:00+00:00", "updated_at": "2026-11-16 03:22:06.024347+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents"], "entities": ["Datasette", "Simon Willison", "datasette-agent", "datasette-apps", "datasette-maplibre", "Claude Fable 5.2", "GitHub", "SQLite"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/datasette-1-0a43-private-stored-query-leak-fixed-streaming-exports-ship", "markdown": "https://wpnews.pro/news/datasette-1-0a43-private-stored-query-leak-fixed-streaming-exports-ship.md", "text": "https://wpnews.pro/news/datasette-1-0a43-private-stored-query-leak-fixed-streaming-exports-ship.txt", "jsonld": "https://wpnews.pro/news/datasette-1-0a43-private-stored-query-leak-fixed-streaming-exports-ship.jsonld"}}