CVE-2026-84695

BookStack before 26.05.4 Stored XSS via Drawing Upload

Published Sep 2, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 2, 2026, 4:01 PM
Reserved
Sep 1, 2026, 11:24 PM
Status
Deferred
Published
Sep 2, 2026, 1:17 AM
Modified
Sep 8, 2026, 8:18 PM