You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Store: showOwner on an ungated projected readers mount gives every signed-in user every owner's principal id #972
Security-sensitive (information disclosure), severity: medium. Found in an adversarial review of #943/#966.
Runtime revision and environment
origin/main ba9f3204, Node 26.10, macOS; store package tests via packages/store/test/direct.ts.
What happens
A projected readers mount may omit members (#929). Activation does not refuse showOwner: true on such a mount, so every principal its route admits receives _owner (the owner's principal id, e.g. the Better Auth user id) for every owner's record.
This contradicts packages/store/SECURITY.md ("Requester visibility"): "Only members of the declared membership collection receive it", and the showOwner schema description, which speaks of "a member".
packages/store/src/collection.ts readers normalization (around line 567) refuses members and properties both missing, but never checks showOwner === true && members === undefined.
Suggested fix
Refuse showOwner: true without members at activation, with a test; keep the SECURITY.md sentence true.
Activity
fix(store): owner ids only to members; transfers independent of the r…