CVE-2026-82642: Readest: unsanitized iframe srcdoc attribute in the EPUB sanitizer can lead to arbitrary code execution

Published Aug 30, 2026
·
Updated

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 (FORBIDTAGS: ['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.TAURIINTERNALS.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 FORBIDTAGS and adding 'srcdoc' to FORBIDATTR.

Affected Software

1 affected component
Readest Readest (e-book reader built on Tauri)<0.11.16

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Readest to a version that resolves this vulnerability.

    Fixed in 0.11.16
  2. Configuration

    Add 'srcdoc' to the DOMPurify FORBID_ATTR list to prevent sanitization bypass via <iframe srcdoc>.

    apps/readest-app/src/services/transformers/sanitizer.ts (DOMPurify configuration) FORBID_ATTR = ['srcdoc']
  3. Configuration

    Harden EPUB chapter HTML sanitization by adding 'iframe', 'object', and 'embed' to the DOMPurify FORBID_TAGS list (the config already forbade only <script> in versions prior to 0.11.16).

    apps/readest-app/src/services/transformers/sanitizer.ts (DOMPurify configuration) FORBID_TAGS = ['script','iframe','object','embed']

Event History

Aug 30, 2026
CVE Published
via MITRE·01:44 PM
Data Sourced
via MITRE·01:44 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·02:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which Readest versions are affected?

Readest versions prior to 0.11.16 are affected. Version 0.11.16 blocks iframe, object, and embed elements and the srcdoc attribute in the EPUB sanitizer.

2

What must an attacker do to exploit this?

An attacker must cause a user to open EPUB content containing an iframe that survives sanitization and carries malicious HTML in its srcdoc attribute. User interaction is required according to the supplied CVSS vector.

3

Are users exposed when reading a malicious EPUB?

Yes. The malicious iframe can be made zero-size and transparent, allowing its script to execute while the user sees normal-looking book text. The iframe sandbox permits scripts and same-origin access, enabling access to Tauri IPC commands available to the application.

4

What is the impact of successful exploitation?

Script in the EPUB iframe can access parent.parent.__TAURI_INTERNALS__.invoke(...) and invoke Tauri IPC commands permitted to Readest. This can escalate to arbitrary code execution.

5

What can be done if upgrading is not immediately possible?

The provided information identifies the issue as being triggered by opening attacker-controlled EPUB content. Avoid opening untrusted EPUB files until Readest can be updated to 0.11.16 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203