Session token theft via unsafe iframe sandbox
Published May 8, 2026 · Updated May 8, 2026
Stored XSS in Grimmory's browser-based EPUB reader before 2.3.1 allows attackers to steal session tokens through a crafted EPUB file. Grimmory embeds foliate-js in a same-origin iframe with both allow-scripts and allow-same-origin, letting EPUB JavaScript reach the parent DOM and localStorage. Exploitation requires a victim to open the book; an uploader needs library access, while a third-party EPUB can be imported by the victim, and stolen tokens grant the victim's account permissions.
Summary
What happened
Stored XSS in Grimmory's browser-based EPUB reader before 2.3.1 allows attackers to steal session tokens through a crafted EPUB file. Grimmory embeds foliate-js in a same-origin iframe with both allow-scripts and allow-same-origin, letting EPUB JavaScript reach the parent DOM and localStorage. Exploitation requires a victim to open the book; an uploader needs library access, while a third-party EPUB can be imported by the victim, and stolen tokens grant the victim's account permissions.
The record
- CVE
- CVE-2026-42451
- Published
- May 8, 2026
- Updated
- May 8, 2026
- Vendor
- Grimmory
- Product
- Grimmory
- Classifications
- CWE-80, CWE-79, T1204.002
- Attack vector
- Unavailable
- Privileges
- Unavailable
Timeline
How it unfolded
- May 8, 2026CVE publishedPublication date reported by the CVE source.
- May 8, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 2.3.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo