Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain editor-level BookStack account
-
DeliveryUpload malicious SVG via drawing endpoint
-
ExploitSVG stored without content inspection
-
ExecutionAdmin views image via gallery data API
-
PersistScript executes in admin session (no CSP)
-
ImpactAdmin account/actions compromised
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated account with editor permissions (drawing/image upload capability) - per CVSS PR:L this is not exploitable by fully unauthenticated users. The attacker uploads an SVG through the drawing upload endpoint, which stores unvalidated base64 content. Successful script execution requires a victim (an administrator or other privileged user) to access the file through the image gallery API 'data' endpoint (CVSS UI:P - passive user interaction), where the pre-26.05.4 server serves it without content-type validation and without CSP headers. Exploitation is limited to instances running BookStack before 26.05.4 and to environments where editors are not fully trusted; on fully-trusted single-admin deployments the practical attack surface is minimal. |
| Impact | The input provides only a CVSS 4.0 vector (9.3, AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/SC:H/SI:H) - no EPSS, no CISA KEV entry, and no weaponized exploit. The score is high because exploitation is network-reachable with low complexity and the payload persists, but two real limiting factors temper it: the attacker must already hold editor permissions (PR:L, i.e. an authenticated, semi-trusted insider or a compromised editor account), and a privileged victim (typically an administrator) must actually view the malicious image (UI:P/Passive). This is therefore not an unauthenticated internet-wide RCE-style emergency; it is a privilege-escalation/account-takeover path from editor to admin that is genuinely dangerous in multi-tenant or larger BookStack instances where editors are not fully trusted. On single-admin/small-team deployments where all editors are already trusted the practical urgency is lower. The 4.0 subsequent-system impacts (SC:H/SI:H) reflect that script execution in an admin browser reaches beyond the uploaded object into the admin's authenticated context. |
| Exploit ScenarioDerived | An attacker who has (or phishes/compromises) an editor account uses BookStack's drawing upload endpoint to store an SVG containing a JavaScript payload. The attacker then places or references the image so an administrator opens it via the image gallery; when the admin's browser fetches the image data, the SVG renders and the script executes in the admin's authenticated session, letting the attacker perform admin actions or exfiltrate the session. No public exploit is identified at time of analysis, though the fixing commit and its test case reveal the exact vulnerable endpoint. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 02, 2026
Stored cross-site scripting in BookStack before 26.05.4 lets a user with editor-level permissions upload a malicious SVG through the drawing upload endpoint, which accepts unvalidated base64 content and stores it without inspection. The image gallery API later streams the file with no content-type validation and no CSP headers, so the embedded script executes in the browser of any administrator who views it - enabling admin session/account takeover. No public exploit is identified at time of analysis, but the fixing commit and test case publicly document the vulnerable code path.
RemediationAI
Upgrade to BookStack 26.05.4 or later, which is the vendor-released patch (release https://github.com/BookStackApp/BookStack/releases/tag/v26.05.4, blog https://www.bookstackapp.com/blog/bookstack-release-v26-05-4/); the fix enforces an 'image/' Content-Type check in ImageService::streamImageFromStorageResponse() and rejects non-image files with HTTP 415 (commit ac0348a79f3ddd004ca87703948cb9c7d19a420a). If immediate patching is not possible, compensating controls include: tightening who holds editor/drawing-upload permissions to reduce the pool of potential uploaders (trade-off: restricts legitimate content authoring); placing BookStack behind a reverse proxy that forces a restrictive Content-Security-Policy and sets X-Content-Type-Options: nosniff plus Content-Disposition: attachment on the image data endpoint so SVGs download rather than render (trade-off: inline image previews may break); and blocking or stripping SVG uploads at the proxy/WAF (trade-off: legitimate SVG drawings become unusable). Rotating admin sessions/credentials after patching is prudent if untrusted editors had access before the upgrade.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
BookStack is a self-hosted, open-source documentation/wiki platform built on Laravel (PHP). The root cause is CWE-79 (improper neutralization of input during web page generation), specifically a stored/persistent XSS combined with a file-serving misconfiguration. The vulnerable logic lives in app/Uploads/ImageService.php: the streamImageFromStorageResponse() method previously returned the stored file directly via $disk->response($path) with no MIME enforcement. Because SVG is an XML document that browsers render and execute inline (scripts, event handlers, foreignObject), serving attacker-supplied SVG as an inline response with no Content-Type restriction and no Content-Security-Policy allows arbitrary JavaScript to run in the origin of the BookStack app. The fix (commit ac0348a) rewrites the method to stream the file inline via DownloadResponseFactory and reject any response whose Content-Type does not begin with 'image/', returning HTTP 415; a companion ImageStorageDisk::size() helper and an ImageGalleryApiTest case (test_read_data_endpoint_does_not_serve_non_image_files) confirm the intended behavior.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Editor auth required (PR:L) and an admin must view the payload (UI:R); XSS executes in a different user's context so S:C, yielding high confidentiality/integrity of the admin session and no availability impact.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
BookStack prior to v26.05.4 contains a stored cross-site scripting vulnerability allowing authenticated users with editor permissions to upload malicious SVG files that execute when administrators view the content, enabling account takeover of administrative users. Organizations running affected versions face immediate risk of unauthorized administrative access and complete platform compromise. Immediate upgrade to v26.05.4 or later is critical.
Apply vendor patch: upgrade to BookStack v26.05.4 or later. Interim mitigation if patching is delayed: restrict editor-level permissions to a minimal set of trusted personnel and consider disabling SVG drawing uploads until remediation is complete.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-69786
GHSA-r46q-wv4x-rj72
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB