GHSA-WVMC-79X2-M97W
Vulnerability from github – Published: 2026-08-30 15:30 – Updated: 2026-08-30 15:30Readest 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 tag (FORBID_TAGS: ['script']) in apps/readest-app/src/services/transformers/sanitizer.ts. DOMPurify does not parse the contents of the srcdoc attribute on elements, treating it as an opaque string attribute, so an attacker who can get an element to survive sanitization can embed a complete HTML document containing a 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": [],
"aliases": [
"CVE-2026-82642"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-08-30T14:17:04Z",
"severity": "HIGH"
},
"details": "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 \u003cscript\u003e tag (FORBID_TAGS: [\u0027script\u0027]) in apps/readest-app/src/services/transformers/sanitizer.ts. DOMPurify does not parse the contents of the srcdoc attribute on \u003ciframe\u003e elements, treating it as an opaque string attribute, so an attacker who can get an \u003ciframe\u003e element to survive sanitization can embed a complete HTML document containing a \u003cscript\u003e 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 \u0027iframe\u0027, \u0027object\u0027 and \u0027embed\u0027 to FORBID_TAGS and adding \u0027srcdoc\u0027 to FORBID_ATTR.",
"id": "GHSA-wvmc-79x2-m97w",
"modified": "2026-08-30T15:30:27Z",
"published": "2026-08-30T15:30:27Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/readest/readest/security/advisories/GHSA-p4x7-pf2c-xrvj"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-82642"
},
{
"type": "WEB",
"url": "https://github.com/readest/readest/pull/4762"
},
{
"type": "WEB",
"url": "https://github.com/readest/readest/commit/005aa2d6157a34049bf45641c06861d606a85edb"
},
{
"type": "WEB",
"url": "https://github.com/readest/readest/releases/tag/v0.11.16"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.