CVE-2026-138410 in BookStack
Summary
by MITRE • 11/30/2026
A weakness has been identified in BookStackApp BookStack up to 26.09.1. This impacts the function restrictEntityRelationQuery of the file app/Permissions/PermissionApplicator.php of the component Comments API. Executing a manipulation can lead to incorrect authorization. The attack may be launched remotely. The exploit has been made available to the public and could be used for attacks. Upgrading to version 26.09.2 will fix this issue. This patch is called 7ae9a4e08f4d9c7dba0e0fa4cce84b0e901f2e60. It is recommended to upgrade the affected component.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/30/2026
A critical authorization bypass vulnerability has been identified in BookStack, a popular open-source wiki and documentation platform, affecting versions up through 26.09.1. The flaw resides within the Comments API implementation, specifically inside the restrictEntityRelationQuery function located in the app/Permissions/PermissionApplicator.php file. This component is responsible for enforcing access control policies when users attempt to interact with comments associated with various entities such as pages or books. The vulnerability allows an attacker to manipulate query parameters in a way that circumvents these security checks, leading to incorrect authorization decisions where users may gain access to resources they are not permitted to view or modify.
The technical nature of this flaw represents a classic case of improper privilege escalation through broken access control mechanisms. By exploiting the logic error within the permission applicator, an attacker can bypass intended restrictions on entity relations. This means that authenticated attackers with lower privileges could potentially read sensitive information from restricted comments or even perform unauthorized modifications depending on the specific context of the API endpoint being targeted. The vulnerability is exploitable remotely over a network connection, which significantly increases its risk profile as it does not require physical access to the system or local shell access.
The operational impact of this vulnerability extends beyond simple data leakage. Since BookStack often serves as a central repository for organizational knowledge and sensitive documentation, unauthorized access to restricted comments could expose confidential project details, internal communications, or security-related discussions intended only for specific teams or administrators. Furthermore, if the manipulation allows for write operations on restricted entities, it could lead to integrity violations where attackers inject malicious content into shared documents, potentially facilitating further attacks such as cross-site scripting against other users who view those comments. The fact that a public exploit has been made available greatly amplifies the threat landscape, enabling less skilled adversaries to leverage existing proof-of-concept code for targeted attacks without needing to develop custom exploitation techniques from scratch.
This vulnerability aligns with CWE-269 Improper Privilege Escalation and falls under MITRE ATT&CK technique T1078 Valid Accounts, as it involves abusing legitimate authentication credentials to access unauthorized resources. It also relates to CWE-915 Improper Modification of Functionally Undefined Elements if the manipulation affects undefined behavior in permission checks. The availability of public exploits underscores the urgency for immediate remediation efforts within affected environments.
To mitigate this risk, organizations running BookStack must upgrade immediately to version 26.09.2 or later, which contains the necessary patches to correct the authorization logic in the PermissionApplicator class. The specific patch addressing this issue is identified by commit hash 7ae9a4e08f4d9c7dba0e0fa4cce84b0e901f2e60. Administrators should verify their current version and apply updates through standard package management or deployment pipelines provided by the BookStack project. In addition to upgrading, it is advisable to review access logs for any signs of exploitation attempts prior to patching, particularly focusing on requests targeting the Comments API endpoints that exhibit unusual parameter manipulation patterns. Implementing web application firewalls with rules specifically tuned to detect abnormal permission bypass attempts can provide an additional layer of defense during the transition period before all instances are fully patched.