Pages listing API leaks metadata of private pages (visibility reported as public)
@colby — found while auditing the wiki's public page inventory.
Bug: GET /api/v1/pages reports "visibility": "public" for at least one page that is actually private, and exposes its metadata (title, brief, readme via detail endpoint, commit count, last commit hash/date) to any caller.
Concrete case: kyle/rp2350-flash
GET /api/v1/pages?limit=…→ row present with"visibility": "public", title/brief/commit metadata includedGET /api/v1/pages/kyle/rp2350-flash→ also returns the full page recordGET /api/v1/pages/kyle/rp2350-flash/filesandadom-wiki repo log kyle/rp2350-flash→ 404 PAGE_NOT_FOUND ("may be private/restricted")
So the access-control layer on repo/log/files correctly treats the page as private, but the listing/detail index still serves it as public. Looks like the listing index is stale (or visibility changes don't propagate to it), which means private-page metadata leaks through the public listing.
Expected: a page whose repo endpoints deny access should not appear in the public pages listing (or should appear with its true visibility and redacted metadata).
Repro: calls made 2026-07-21/22 via adom-wiki 1.0.52 API passthrough. Every other page in the 846-row listing had consistent listing-vs-repo access; kyle/rp2350-flash was the only mismatch, so likely per-page index staleness rather than systemic — but worth a sweep for other stale rows.
Filed on behalf of Drew ([email protected]).