{"id":"CVE-2026-82642","aliases":["CVE-2026-82642"],"related":[],"kind":"vulnerability","state":"published","title":"Readest: unsanitized iframe srcdoc attribute in the EPUB sanitizer can lead to arbitrary code execution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"}],"published":"2026-08-30T13:44:34.109Z","modified":"2026-08-31T19:27:23.020Z","severity":{"scorer":"JFROG","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"JFROG","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.11.16","status":"affected"}],"vendor":"readest","product":"readest","repo":"https://github.com/readest/readest","platforms":["Windows","macOS","Linux"],"source":"cvelist"}],"references":[{"url":"https://github.com/readest/readest/security/advisories/GHSA-p4x7-pf2c-xrvj","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/readest/readest/pull/4762","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/readest/readest/commit/005aa2d6157a34049bf45641c06861d606a85edb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/readest/readest/releases/tag/v0.11.16","tags":["release-notes"],"sources":["cvelist","nvd"]}],"credits":["Yuval Moravchick, JFrog Security Research"],"assigner":"JFROG","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-08-31T16:45:50.271Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-82642","url":"https://www.cve.org/CVERecord?id=CVE-2026-82642","licence":"CVE Terms of Use","modified":"2026-08-31T16:45:59.286Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-82642","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-82642","licence":"Public domain","modified":"2026-08-31T19:27:23.020Z"}],"updatedAt":"2026-11-25T22:59:35.767Z","epss":{"score":0.00382,"percentile":0.34375,"date":"2026-12-01T12:00:22.000Z"}}