Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts EPUB with hidden srcdoc iframe
-
DeliveryVictim opens EPUB in Readest
-
ExploitDOMPurify passes iframe unsanitized
-
Executioniframe srcdoc script executes with parent origin
-
PersistScript calls Tauri IPC bridge
-
ImpactArbitrary OS-level command execution
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 | The target must be running Readest in any version prior to 0.11.16 and must open an attacker-controlled EPUB file using the application. The vulnerable code path is the standard EPUB rendering pipeline - no special application configuration or non-default mode is required; the sanitizer misconfiguration and the iframe sandbox setting (sandbox="allow-same-origin allow-scripts") are present in all default builds of the affected versions. No network service exposure, authentication bypass, or pre-existing system access is required on the attacker's part. The single limiting factor is user interaction (CVSS UI:R): the victim must actively choose to open the malicious EPUB file with Readest, which is the application's primary use case and therefore a weak constraint. The payload requires no visible interaction beyond file opening, as the exploiting iframe can be rendered at zero size and fully transparent. |
| Impact | The CVSS 8.8 base score with AV:N/AC:L/PR:N/UI:R reflects a realistic and low-complexity attack: the attacker's only requirement is delivering a malicious EPUB file that the victim opens, a routine activity for Readest's user base. The provided CVSS vector assigns S:U (Unchanged scope), but the actual exploitation chain crosses a meaningful security boundary - from the EPUB renderer context into the host operating system via the Tauri IPC bridge - which is characteristic of a scope change (S:C) and suggests the real-world impact may exceed what the S:U vector represents. EPSS data is absent from the provided intelligence, preventing probabilistic exploitation forecasting; this gap should be noted by defenders relying on EPSS-based prioritization. The vulnerability is not listed in the CISA KEV catalog, and no public proof-of-concept exploit code has been identified, meaning exploitation remains theoretical at time of analysis - however, the attack technique is fully described in the vendor advisory and is within reach of moderately skilled threat actors given the straightforward DOMPurify/srcdoc interaction and well-documented Tauri IPC surface. The invisibility of the payload (zero-size transparent iframe) removes any opportunity for end-user detection. The primary mitigating factor is UI:R - the victim must actively open the malicious EPUB - but for an application whose core function is opening e-book files, this is a weak constraint. Any individual or organization using Readest for document workflows should treat upgrading to 0.11.16 as urgent. |
| Exploit ScenarioDerived | An attacker creates a malicious EPUB file in which a chapter's HTML body contains a zero-size, transparent iframe with a srcdoc attribute holding a complete HTML document that includes JavaScript code targeting the Tauri IPC bridge. When a user running Readest prior to 0.11.16 opens the EPUB, the iframe survives DOMPurify sanitization, the embedded script executes with the parent application's origin, and the script invokes parent.parent.__TAURI_INTERNALS__.invoke() to issue native commands - such as reading sensitive files from disk or executing arbitrary OS commands - while the reader perceives only normal book content. No public proof-of-concept exploit code has been identified at time of analysis, though the complete attack technique is described in vendor advisory GHSA-p4x7-pf2c-xrvj. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAI
Arbitrary code execution is achievable in Readest versions prior to 0.11.16 by embedding a malicious EPUB file that bypasses the application's DOMPurify-based HTML sanitizer via a crafted srcdoc attribute on an iframe element. DOMPurify treats srcdoc as an opaque string and does not sanitize its contents, allowing a complete HTML document containing JavaScript to survive sanitization and execute inside an iframe configured with sandbox="allow-same-origin allow-scripts"; the executing script can then call parent.parent.__TAURI_INTERNALS__.invoke() to access the full Tauri IPC command surface and achieve OS-level arbitrary code execution. The attack requires only that a victim open a specially crafted EPUB file, and the payload can be rendered invisibly as a zero-size transparent iframe. No public exploit code has been identified at time of analysis; vendor-released patch version 0.11.16 is available.
RemediationAI
Upgrade to Readest version 0.11.16 or later; this is the vendor-confirmed patched release available at https://github.com/readest/readest/releases/tag/v0.11.16. The fix, applied via commit 005aa2d6157a34049bf45641c06861d606a85edb (PR #4762), hardens the DOMPurify configuration in apps/readest-app/src/services/transformers/sanitizer.ts by adding 'iframe', 'object', and 'embed' to FORBID_TAGS and adding 'srcdoc' to FORBID_ATTR, eliminating the sanitizer bypass vector. If immediate upgrade is not feasible, the most effective compensating control is to restrict ingestion of EPUB files from untrusted or external sources at the organizational or endpoint level; however, this is impractical for individual users and does not protect against socially engineered delivery of malicious files through legitimate-seeming channels. Rebuilding the application from source with a manually hardened sanitizer configuration (applying the PR #4762 diff) is an alternative for those who maintain their own builds, though this introduces maintenance overhead and should not substitute for upgrading to the official patched release.
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
Readest is a cross-platform open-source e-book reader application (CPE: cpe:2.3:a:readest:readest:*:*:*:*:*:*:*:*) built on Tauri, a Rust-based framework that wraps web content in a native application shell with access to OS-level APIs via an IPC bridge. EPUB files are composed of HTML chapters, which Readest sanitizes using DOMPurify before rendering in a web view. The root cause (CWE-79: Improper Neutralization of Input During Web Page Generation) is a DOMPurify misconfiguration in apps/readest-app/src/services/transformers/sanitizer.ts: FORBID_TAGS contained only ['script'], blocking direct inline script injection but leaving iframe elements permissible. A design characteristic of DOMPurify is that it does not parse or sanitize the contents of the srcdoc attribute on iframe elements - it treats the attribute value as an opaque string - so an iframe carrying srcdoc with embedded script content passes sanitization intact. The Tauri application renders EPUB content in a frame with sandbox="allow-same-origin allow-scripts", which grants the srcdoc document the same origin as the parent page and the ability to execute scripts. From that position, script code can traverse the frame hierarchy to reach parent.parent.__TAURI_INTERNALS__.invoke(), the Tauri IPC bridge, providing unrestricted access to all native capabilities registered by the application.
Know when Readest gets its next vulnerability
- 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
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
S:C selected over the provided S:U because script execution escapes the EPUB renderer into the host OS via Tauri IPC, crossing a meaningful security boundary beyond the vulnerable component.
Primary rating from Vendor (JFROG).
CVSS VectorVendor: JFROG
DescriptionCVE.org
Readest is an open-source e-book reader built on Tauri. In versions prior to 0.11.16, EPUB chapter HTML is sanitized with DOMPurify using a configuration that forbade only the <script> tag (FORBID_TAGS: ['script']) in apps/readest-app/src/services/transformers/sanitizer.ts. DOMPurify does not parse the contents of the srcdoc attribute on <iframe> elements, treating it as an opaque string attribute, so an attacker who can get an <iframe> element to survive sanitization can embed a complete HTML document containing a <script> tag inside srcdoc and have it execute when the browser renders the iframe. The content iframe is configured with sandbox="allow-same-origin allow-scripts", so script executing inside it shares the parent origin and can reach parent.parent.__TAURI_INTERNALS__.invoke(...), giving access to every Tauri IPC command the application is permitted to use, which escalates to arbitrary code execution. The payload can be made invisible (zero-size, transparent iframe) so the reader sees only normal book text. Version 0.11.16 hardened the sanitizer configuration by adding 'iframe', 'object' and 'embed' to FORBID_TAGS and adding 'srcdoc' to FORBID_ATTR.
Technical POC Analysis
CWE-79 (Improper Neutralization of Input During Web Page Generation / cross-site scripting), escalating to arbitrary code execution via the Tauri IPC bridge.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
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.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Unauthenticated server-side request forgery in Readest's /api/opds/proxy route (all versions before 0.11.10) lets remote
Desktop Tauri builds of Readest before 0.11.10 register the custom IPC commands download_file and upload_file globally f
Cross-tenant object write in Readest (versions prior to 0.11.10, including 0.11.4) lets an authenticated user overwrite
Subscription and entitlement bypass in Readest before 0.11.10 lets any authenticated free user replay a paid Stripe Chec
EUVD-2026-68218
GHSA-wvmc-79x2-m97w
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB