CVE-2026-138410

BookStackApp BookStack Comments API PermissionApplicator.php restrictEntityRelationQuery authorization

Published Nov 30, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

BookStackApp's Comments API contains a weakness in the PermissionApplicator's restrictEntityRelationQuery function that allows attackers to manipulate input and bypass authorization checks. Because the function incorrectly evaluates permissions for entity relationships, an attacker who can send crafted requests to the API endpoint can potentially access or modify content they are not supposed to see. The flaw is mitigated by the public patch that adds proper authorization logic. The weakness is categorized under CWE‑285 and CWE‑863.

Affected Systems

The vulnerability affects installations of BookStackApp BookStack version 26.09.1 and earlier. The fix is available in release 26.09.2 (commit 7ae9a4e08f4d9c7dba0e0fa4cce84b0e901f2e60). Thus any environment running BookStackApp BookStack with the exposed Comments API and without the upgrade should be considered vulnerable.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate impact; the condition of remote execution and publicly available exploit raise concern for attackers. Although the EPSS score is not disclosed and the vulnerability is not listed in CISA's KEV catalog, the possibility of remote abuse makes it advisable to remediate quickly. The attack can generally be launched by sending crafted HTTP requests to the Comments API and does not require privileged privileges on the host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade BookStackApp BookStack to version 26.09.2 or later, which contains the fixed PermissionApplicator logic.
  • Verify that the Comments API endpoint is accessible only to authenticated users with appropriate roles and reconfigure any custom permission rules to enforce strict checks.
  • Audit and adjust any system-wide roles that may grant inadvertently broad permissions to view or modify entity relationships, ensuring they align with the principle of least privilege.

Generated by OpenCVE AI on November 30, 2026 at 14:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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.
Title BookStackApp BookStack Comments API PermissionApplicator.php restrictEntityRelationQuery authorization
First Time appeared Bookstackapp
Bookstackapp bookstack
Weaknesses CWE-285
CWE-863
CPEs cpe:2.3:a:bookstackapp:bookstack:*:*:*:*:*:*:*:*
Vendors & Products Bookstackapp
Bookstackapp bookstack
References
Metrics cvssV2_0

{'score': 4, 'vector': 'AV:N/AC:L/Au:S/C:P/I:N/A:N/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 4.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:O/RC:C'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Dec 1, 2026, 12:43 PM
Reserved
Nov 29, 2026, 7:46 PM
Status
Awaiting Analysis
Published
Nov 30, 2026, 10:16 AM
Modified
Dec 1, 2026, 1:17 PM