CVE-2026-9308 Arbitrary JavaScript execution in Reader View due to wrong HTML replacement order
A malicious page can execute arbitrary JavaScript in Firefox for iOS Reader View due to incorrect HTML replacement order.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-9308?
CVE-2026-9308 is a medium-severity cross-site scripting vulnerability in Mozilla Firefox, published on 1 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Firefox for iOS Reader View replaced page content in its HTML template before replacing other internal placeholders. A malicious page could include a placeholder string that was later substituted with JSON-LD data, potentially resulting in arbitrary JavaScript execution. This vulnerability was fixed in Firefox for iOS 151.2.
Weakness: CWE-79
Which versions are affected by CVE-2026-9308?
It affects 1 product.
Products include Mozilla Firefox.
How do I fix CVE-2026-9308?
No fix has been published for CVE-2026-9308 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-9308 being exploited?
There is no known exploitation of CVE-2026-9308 in the wild and no public exploit code.
Other vulnerabilities in Mozilla Firefox
Sources
Also known as GHSA-h55j-6jm9-f8vp.