Description
BookStack before 26.05.4 contains a stored cross-site scripting vulnerability in the drawing upload endpoint that accepts unvalidated base64 content and stores it without content inspection. Attackers with editor permissions can upload SVG files containing scripts that execute in administrator browsers when accessed through the image gallery API without content-type validation or CSP headers.
Published: 2026-09-02
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

BookStack before version 26.05.4 holds a stored cross‑site scripting flaw in the drawing upload endpoint. The flaw accepts base64 encoded content from editor‑level users and writes it to storage without inspecting its content or validating its type. SVG files containing embedded JavaScript can therefore be uploaded and later served from the image gallery API, where they execute in the browsers of users with administrator privileges. The vulnerability is a classic example of unvalidated input that leads to user‑controlled script execution, categorized as CWE‑79.

Affected Systems

The affected product is BookStack, managed by the bookstackapp vendor. All releases prior to the 26.05.4 tag are vulnerable.

Risk and Exploitability

The weakness has a CVSS score of 9.3, marking it as critical. EPSS is not available, but the lack of detection information combined with an exploit strategy that only requires editor permissions – a common role – suggests a high likelihood of exploitation in environments where administrators are present. The vulnerability is not listed in the CISA KEV catalog, but its severity and the ease of payload upload make it a serious security concern.

Generated by OpenCVE AI on September 2, 2026 at 04:16 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade BookStack to version 26.05.4 or later, which removes the unvalidated drawing upload flaw.
  • If an upgrade cannot be performed immediately, limit drawing uploads to trusted administrators or disable the upload capability users with editor rights.
  • Implement a Content Security Policy and enforce MIME‑type validation on file uploads to block embedded scripts in future SVG submissions.

Generated by OpenCVE AI on September 2, 2026 at 04:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 02 Sep 2026 01:15:00 +0000

Type Values Removed Values Added
Description BookStack before 26.05.4 contains a stored cross-site scripting vulnerability in the drawing upload endpoint that accepts unvalidated base64 content and stores it without content inspection. Attackers with editor permissions can upload SVG files containing scripts that execute in administrator browsers when accessed through the image gallery API without content-type validation or CSP headers.
Title BookStack before 26.05.4 Stored XSS via Drawing Upload
First Time appeared Bookstackapp
Bookstackapp bookstack
Weaknesses CWE-79
CPEs cpe:2.3:a:bookstackapp:bookstack:*:*:*:*:*:*:*:*
Vendors & Products Bookstackapp
Bookstackapp bookstack
References
Metrics cvssV3_1

{'score': 8.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N'}

cvssV4_0

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


Subscriptions

Bookstackapp Bookstack
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-02T00:37:51.655Z

Reserved: 2026-09-01T23:24:15.911Z

Link: CVE-2026-84695

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-02T01:17:24.400

Modified: 2026-09-02T01:17:24.400

Link: CVE-2026-84695

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-02T04:30:04Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')