Monitor vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.8
CVE-2026-82642: Readest e‑book app could run any code via hidden iframe
CVE-2026-82642 · published 4 days ago
Summary
Older versions of the Readest e‑book reader did not fully filter content inside an iframe's srcdoc attribute. This lets a malicious e‑book embed hidden code that can run and control the application. Upgrade to version 0.11.16 or later, which blocks these iframe elements and attributes.
What to do
- Update readest readest to version 0.11.16 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| readest | readest | < 0.11.16 |
Original advisory text
Readest: unsanitized iframe srcdoc attribute in the EPUB sanitizer can lead to arbitrary code execution
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.
References
- https://github.com/readest/readest/security/advisories/GHSA-p4x7-pf2c-xrvj vendor-advisory
- https://github.com/readest/readest/pull/4762 patch
- https://github.com/readest/readest/commit/005aa2d6157a34049bf45641c06861d606a85e... patch
- https://github.com/readest/readest/releases/tag/v0.11.16 release-notes
Severity
8.8
High
CVSS 3.1: 8.8 (MITRE)
Exploitation
EPSS <1%
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published30 Aug 2026
Updated2 Sep 2026
First seen30 Aug 2026
Monitor software like this
Free during beta