Skip to main content

BookStack EUVDEUVD-2026-69786

| CVE-2026-84695 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-09-02 disclosure@vulncheck.com GHSA-r46q-wv4x-rj72
9.3
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain editor-level BookStack account
  2. Delivery
    Upload malicious SVG via drawing endpoint
  3. Exploit
    SVG stored without content inspection
  4. Execution
    Admin views image via gallery data API
  5. Persist
    Script executes in admin session (no CSP)
  6. Impact
    Admin 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

BookStack 0 <26.05.4

Affected Packages

euvd bookstack fix: 26.05.4

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

Vendor (vulncheck) PRIMARY 9.3 CRITICAL
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
vuln.today AI 8.7 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Sep 02, 2026 - 03:01 EUVD
CVE Published
Sep 02, 2026 - 01:17 cve.org
CRITICAL 9.3

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Medium
popular self-hosted open-source wiki/documentation platform, common but not ubiquitous
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy