Cross-site Scripting (XSS)Weakness · CWE-79

CVE-2026-42451

MEDIUM · 6.3 CVSS v3.1 Published 2026-05-08
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
63/100
Remediation priority · Elevated

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Grimmory is a self-hosted digital library. Prior to version 2.3.1, a stored cross-site scripting (XSS) vulnerability in Grimmory's browser-based EPUB reader allows an attacker to embed arbitrary JavaScript in a crafted EPUB file. When a victim opens the book, the script executes in their browser with full access to the Grimmory application's session context. This can enable session token theft and account takeover, including administrative access if an administrator opens the affected book. This issue has been patched in version 2.3.1.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Grimmory's browser-based EPUB reader fails to sanitize content from uploaded EPUB files, allowing attackers to embed malicious JavaScript. When users open crafted EPUB files, the embedded script executes within their browser session, granting attackers access to session tokens and cookies. This enables complete account takeover, including administrative accounts if an admin opens the malicious book.

MitigationUpgrade Grimmory to version 2.3.1 or later. If immediate upgrade is not possible, restrict EPUB file uploads and disable the browser-based reader until patching is feasible.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Local
Complexity
High
Privileges
Low
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify installed Grimmory version
    Locate the Grimmory application and check its version number in the software manifest, about page, or installation directory metadata
    Affected if The version is lower than 2.3.1 (e.g., 2.3.0, 2.2.x, or earlier)
  2. Verify EPUB reader feature is active
    Confirm that the browser-based EPUB reader module is enabled and accessible within the application
    Affected if The EPUB reader feature is enabled and users can open EPUB files through the application interface
  3. Confirm user-facing EPUB file handling
    Determine whether the application allows users to upload, import, or open EPUB files through the web interface
    Affected if Users can load custom EPUB files into the reader, providing an attack vector for crafted malicious files
  4. Check for content security policy enforcement
    Inspect HTTP response headers from the application for Content-Security-Policy directives that restrict script execution
    Affected if CSP headers are missing or permissive, allowing inline scripts to execute within the session context

You are affected if Grimmory version is below 2.3.1 AND the browser-based EPUB reader feature is enabled and accessible to users who can load custom EPUB files.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade Grimmory to version 2.3.1 or later. If immediate upgrade is not possible, restrict EPUB file uploads and disable the browser-based reader until patching is feasible.

Recommended fix High confidence

Grimmory version 2.3.1

  1. Upgrade Grimmory to version 2.3.1 or later to remediate the stored XSS vulnerability in the EPUB reader

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation8.0 h
  • Testing4.0 h
  • Review / QA2.0 h
17.0 hours of engineering $3,000
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,800.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-42451 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-42451 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data