{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-82642","id":"CVE-2026-82642","title":"Readest: unsanitized iframe srcdoc attribute in the EPUB sanitizer can lead to arbitrary code execution","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","descriptionLong":"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.","published":"2026-08-30T13:44:34.109Z","updated":"2026-10-28T02:31:06.890858166Z","reserved":"2026-08-30T13:32:39.506Z","status":"Awaiting Analysis","rejected":false,"assigner":"JFROG","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"JFROG"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"JFROG"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"jfrog.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["readest"],"affectedProducts":[{"vendor":"readest","product":"readest","defaultStatus":"unaffected","versions":[{"status":"affected","version":"0","lessThan":"0.11.16","versionType":"semver"}],"platforms":["Windows","macOS","Linux"]}],"packages":[],"cwes":["CWE-79"],"aliases":["GHSA-p4x7-pf2c-xrvj"],"references":[{"url":"https://github.com/readest/readest/security/advisories/GHSA-p4x7-pf2c-xrvj","tags":["vendor-advisory","advisory"]},{"url":"https://github.com/readest/readest/pull/4762","tags":["patch","fix"]},{"url":"https://github.com/readest/readest/commit/005aa2d6157a34049bf45641c06861d606a85edb","tags":["patch","fix"]},{"url":"https://github.com/readest/readest/releases/tag/v0.11.16","tags":["release-notes","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/82xxx/CVE-2026-82642.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-82642","tags":["advisory"]},{"url":"https://github.com/readest/readest","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00665,"epssPercentile":0.52746,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-82642","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-82642","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-82642","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-82642","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}