Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
readest readest
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Readest是Readest社区开源的一款免费的 EPUB 和 PDF 电子书阅读器。 Readest 0.11.16之前版本存在跨站脚本漏洞,该漏洞源于EPUB章节HTML清理不当,DOMPurify配置仅禁止script标签且未解析iframe的srcdoc属性,攻击者可利用iframe嵌入恶意脚本,导致任意代码执行。

CVSS 8.8 · High EPSS 0.66% · P52

Affected Version Matrix 1

VendorProduct Version RangeStatus
readest readest < 0.11.16 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-82642

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Readest: unsanitized iframe srcdoc attribute in the EPUB sanitizer can lead to arbitrary code execution
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
Readest 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Readest是Readest社区开源的一款免费的 EPUB 和 PDF 电子书阅读器。 Readest 0.11.16之前版本存在跨站脚本漏洞,该漏洞源于EPUB章节HTML清理不当,DOMPurify配置仅禁止script标签且未解析iframe的srcdoc属性,攻击者可利用iframe嵌入恶意脚本,导致任意代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
readest readest 0 ~ 0.11.16 -

II. Public POCs for CVE-2026-82642

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-82642

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-82642 (2)

Vendor Advisories for CVE-2026-82642 (1)

Vendor Pages for CVE-2026-82642 (1)

IV. Related Vulnerabilities