CVE-2026-9308

Arbitrary JavaScript execution in Reader View due to wrong HTML replacement order

Published Jun 1, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Firefox for iOS Reader View replaces page content in an HTML template before substituting other internal placeholders. A malicious page can embed a placeholder string that later receives JSON‑LD data, causing arbitrary JavaScript execution within the Reader View context. The flaw falls under the Cross‑Site Scripting (CWE‑79) family, enabling code execution that could lead to data exfiltration or session hijacking if a user activates Reader View on a compromised site.

Affected Systems

The vulnerability affects Mozilla’s Firefox for iOS. Users running Firefox for iOS prior to version 151.2 are impacted; the issue was addressed in Firefox for iOS 151.2 and later editions.

Risk and Exploitability

The CVSS score of 5.4 indicates a medium severity, reflecting the potential for remote code execution. The EPSS score is not available, and the flaw is not listed in the CISA KEV catalog, suggesting it is a newly identified issue with no known public exploits yet. The likely attack vector is a crafted web page that a user opens in Reader View, with the incorrect placeholder replacement triggering the payload. Because the flaw resides in browser rendering logic, it can be exploited by any user visiting a malicious site while enabling Reader View.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Firefox for iOS to version 151.2 or later to receive the fix for placeholder replacement order.
  • If upgrading immediately is not feasible, disable Reader View in the browser settings to prevent the vulnerable rendering path from executing.
  • Subscribe to Mozilla security advisories and monitor release notes for future updates.

Generated by OpenCVE AI on June 1, 2026 at 16:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Mozilla firefox
CPEs cpe:2.3:a:mozilla:firefox:*:*:*:*:*:iphone_os:*:*
Vendors & Products Mozilla firefox
Type Values Removed Values Added
First Time appeared Mozilla
Mozilla firefox For Ios
Vendors & Products Mozilla
Mozilla firefox For Ios
Type Values Removed Values Added
Weaknesses CWE-79
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Arbitrary JavaScript execution in Reader View due to wrong HTML replacement order
References
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
mozilla
Published
Updated
Jun 1, 2026, 1:52 PM
Reserved
May 22, 2026, 6:16 PM
Status
Analyzed
Published
Jun 1, 2026, 1:16 PM
Modified
Jul 22, 2026, 7:10 AM