ZeroHour

CVE-2026-84695

moderate

Stored Cross-Site Scripting in BookStack Drawing Upload (before 26.05.4)

CVSS 4.0
9.3 critical
EPSS
<1%p17
Published
()
Modified
AI analysis

BookStack before 26.05.4 fails to validate base64 content accepted by its drawing upload endpoint, storing attacker-supplied files without any content inspection. An attacker who already holds editor-level permissions can upload a malicious SVG containing embedded script. When an administrator later views that drawing through the image gallery API, the file is served without content-type validation or CSP headers, causing the script to execute in the administrator's browser. Successful exploitation could let the attacker act as the admin in that session, with high confidentiality and integrity impact per the CVSS 4.0 score of 9.3. Any self-hosted BookStack instance that grants editor rights to untrusted users is exposed; there are currently no known public proofs of concept, no KEV listing, and EPSS puts 30-day exploitation probability at just 0.3%.

What to do: Upgrade BookStack to version 26.05.4 or later. As interim mitigation, restrict drawing/upload permissions to fully trusted users and consider adding restrictive Content-Security-Policy headers or content-type enforcement for user-uploaded SVG and image files; check whether any editors on your instance have uploaded drawing files recently.

Affected
BookStack Project (bookstackapp.com) BookStackall versions prior to 26.05.4
Estimated exposure
moderate≈10,000–50,000 self-hosted instances (widespread open-source wiki deployments) — BookStack is a popular self-hosted open-source wiki/documentation platform with a deployment footprint inferred from its large public download and Docker pull volumes, which suggests tens of thousands of active instances; no authoritative…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Weakness
CWE-79
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.