Submit #1079569: BookStackApp BookStack 26.09.1 Improper Access Controlinfo

TitleBookStackApp BookStack 26.09.1 Improper Access Control
DescriptionBookStack keeps deleted pages in a recycle bin and exposes page comments through the REST API. The API comment endpoints validated the requested page id but did not exclude pages that are currently soft-deleted, and the permission check for reading comments resolved against the page's current state without treating recycle-bin pages as inaccessible. As a result an API user who has no permission on a deleted page - including a user whose access was revoked by deleting the page - can still read every comment attached to that page for as long as it stays in the recycle bin, which contradicts the expectation that deleting a page removes its discussion from view. The issue survives the page being hidden from all listings, so a reviewer who checks the UI concludes the content is gone while the API still returns it. Verified against a local BookStack instance: after a page with comments was deleted, GET /api/pages/{id}/comments returned the full comment list for a token that received 404/403 on the page itself, while the same request against a non-deleted restricted page correctly returned 403. The vendor was notified by email on 2026-10-04, confirmed the issue on 2026-10-13, prepared a patch and shipped it in the security release v26.09.2 (commit 6265d56), whose public release notes state: "Fixed comments incorrectly showing in the API when their related pages are in the recycle bin" and credit the reporter as "Nicol (cqliuke)". No advisory or CVE was published for this issue by the project. CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N (4.3), CWE-639 / CWE-200.
Source⚠️ https://github.com/BookStackApp/BookStack/releases/tag/v26.09.2
User
 waterhunter (UID 101889)
Submission11/07/2026 09:25 (23 days ago)
Moderation11/29/2026 20:47 (22 days later)
StatusAccepted
VulDB entry445235 [BookStackApp BookStack up to 26.09.1 Comments API PermissionApplicator.php restrictEntityRelationQuery authorization]
Points20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!