CVE-2026-84695
moderateStored Cross-Site Scripting in BookStack Drawing Upload (before 26.05.4)
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.
| BookStack Project (bookstackapp.com) BookStack | all versions prior to 26.05.4 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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 news0 stories
No ingested article mentions this CVE yet.