CVE-2022-34474
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-34474 is a security vulnerability discovered in Mozilla Firefox that affects sandboxed iframes. The vulnerability was reported by the Amazon Malvertising Team and was fixed in Firefox 102, released on June 28, 2022. The issue affected Firefox on macOS and Android platforms, allowing sandboxed iframes to redirect to external schemes even when restricted (Mozilla Advisory).

Technical details

The vulnerability occurs when an iframe is sandboxed with allow-top-navigation-by-user-activation. Even with this restriction in place, if the iframe received a redirect header to an external protocol, the browser would process the redirect and prompt the user accordingly. This behavior bypassed the intended sandbox restrictions that should have prevented such redirections (Mozilla Advisory, Mozilla Bugzilla).

Impact

The vulnerability was rated as having moderate impact. It could allow malicious websites to trigger unauthorized protocol handlers and potentially redirect users to external applications or schemes, bypassing intended security restrictions. This could be exploited in malvertising campaigns to redirect users to unwanted destinations (Mozilla Advisory).

Mitigation and workarounds

The vulnerability was fixed in Firefox 102. The fix involved implementing proper enforcement of sandbox restrictions for custom protocol navigation. Mozilla also added a new sandbox flag 'allow-top-navigation-to-custom-protocols' to properly control such redirections. Users were advised to upgrade to Firefox 102 or later versions to receive the security fix (Mozilla Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-20777MEDIUM6.7
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • apptainer
NoYesDec 02, 2025
CVE-2025-20789MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-20788MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management