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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.66% (percentile 47, 2026-11-28)
- **CWE:** CWE-79
- **Published:** 2026-08-30T13:44:34.109Z
- **Modified:** 2026-08-31T19:27:23.020Z

## Who should check

- Anyone running readest \< 0.11.16

## Description

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.

## Affected and fixed versions

- readest: \< 0.11.16 (cvelist)

## Mitigation

- Upgrade readest to 0.11.16 or later.
- Vendor workaround: Only open EPUB files from trusted sources. Ensure the 'allow script' view setting remains disabled, as enabling it bypasses sanitization entirely.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-82642. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-82642.md
Affected: readest < 0.11.16
Fixed in: readest 0.11.16

Steps:
1. Search this machine and project for readest: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-82642 being exploited?

There is no confirmed exploitation: CVE-2026-82642 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.66% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-82642?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-82642?

readest \< 0.11.16.

### Is there a fix for CVE-2026-82642?

Yes. Fixed in readest 0.11.16. Upgrade readest to 0.11.16 or later. Vendor workaround: Only open EPUB files from trusted sources. Ensure the 'allow script' view setting remains disabled, as enabling it bypasses sanitization entirely.

### How do I check if I'm affected by CVE-2026-82642?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/readest/readest/security/advisories/GHSA-p4x7-pf2c-xrvj>
- patch: <https://github.com/readest/readest/pull/4762>
- patch: <https://github.com/readest/readest/commit/005aa2d6157a34049bf45641c06861d606a85edb>
- other: <https://github.com/readest/readest/releases/tag/v0.11.16>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-82642>

HTML: <https://flawdb.com/CVE-2026-82642> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-82642>
