External risk intelligence

BookStack Stored Cross-Site Scripting via Drawing Upload

CVE advisorySeverity: CRITICAL (CVSS 9.3)

CVE-2026-84695

BookStack is commonly deployed as a public-facing web application for documentation. This vulnerability affects an upload endpoint accessed via the web interface, making it reachable in typical internet-facing deployments of the product.

Cross-site Scripting

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory details a vulnerability in BookStack that could allow an attacker with editor privileges to inject malicious scripts. When an administrator views certain uploaded images, these scripts could execute within their browser. The main concern is confirming if this specific technology is in use within your environment.

  • A scripting flaw exists in image uploads.
  • Attackers can execute code in admin browsers.
  • Confirm relevance and exposure for BookStack.

Attack Path

How an attacker could exploit the issue

An attacker with editor permissions can upload malicious SVG files through the drawing upload feature. If these files are viewed through the image gallery API, embedded scripts can execute in the browsers of users with administrator privileges.

  • Requires editor permissions.
  • Uploading malicious SVG via drawing endpoint.
  • Executing scripts in admin browsers.

Live Threat

Current exploitation, exposure, and threat context

When an attacker with editor permissions uploads a malicious SVG file, scripts embedded within it could execute within administrator browsers when the image gallery API is accessed without proper validation. This could impact sensitive information displayed in the administrator's browser.

  • Administrator browser sessions could be compromised.
  • Malicious scripts execute when gallery is viewed.
  • Sensitive data in browser may be exposed.

Operational Fix

Recommended remediation, mitigation, and detection steps

BookStack administrators are likely responsible for addressing this stored cross-site scripting vulnerability. The first practical step is to identify all BookStack instances, confirm their reachability and criticality, and then coordinate with the application or platform owners for remediation planning.

  • Application or platform owners should own.
  • Verify all BookStack instances are identified.
  • Plan remediation based on exposure risk.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is BookStack?

BookStack is a popular open-source platform used for creating documentation, wikis, and knowledge bases. It provides a structured way for teams to organize and share information. The software relies on features like image uploads to support its visual documentation capabilities, which is the specific component involved in this vulnerability.

How does CVE-2026-84695 work?

This vulnerability is a Stored Cross-Site Scripting (XSS) issue, identified as CWE-79. It occurs because the software's drawing upload feature accepts base64-encoded content without verifying it or stripping out potentially malicious instructions. When a malicious SVG file is uploaded, the browser may treat the embedded script as trusted code rather than a simple image.

What triggers this stored XSS flaw?

An attacker needs editor-level permissions within the application to use the drawing upload endpoint. Simply visiting the site or viewing public pages does not trigger the bug; the malicious script only executes when an administrator later views the compromised file through the image gallery API. Files uploaded without malicious scripts are not affected.

How do I know if my BookStack is at risk?

Halo Surface Signal indicates that BookStack is frequently deployed as a public-facing web application. Since the vulnerable endpoint is accessible through the standard web interface, any instance reachable via the internet is considered higher risk. You should verify your deployment's visibility and determine if your instance is accessible to external or unauthorized users.

What should I do if I run BookStack?

Your first step is to locate all active BookStack instances within your infrastructure to assess their reachability. Once identified, coordinate with your platform owners to plan for an update to version 26.05.4 or later. This release addresses the upload validation concerns and is the recommended way to secure the drawing upload endpoint against script injection.

References