CVE-2025-14330 Overview
CVE-2025-14330 is a just-in-time (JIT) miscompilation vulnerability in the JavaScript engine shared by Mozilla Firefox and Mozilla Thunderbird. The flaw resides in the JIT component responsible for compiling JavaScript to native machine code at runtime. Incorrect compilation produces unsafe machine code that can corrupt memory state during execution. Mozilla fixed the issue in Firefox 146, Firefox ESR 140.6, Thunderbird 146, and Thunderbird 140.6. The vulnerability is mapped to [CWE-119] (Improper Restriction of Operations within the Bounds of a Memory Buffer).
Critical Impact
A remote attacker can deliver crafted JavaScript through a web page or HTML email content to trigger JIT miscompilation, resulting in memory corruption that can lead to arbitrary code execution in the browser or mail client process.
Affected Products
- Mozilla Firefox versions prior to 146
- Mozilla Firefox ESR versions prior to 140.6
- Mozilla Thunderbird versions prior to 146 and prior to 140.6
Discovery Timeline
- 2025-12-09 - CVE-2025-14330 published to NVD
- 2026-04-13 - Last updated in NVD database
Technical Details for CVE-2025-14330
Vulnerability Analysis
The vulnerability is a miscompilation defect in the SpiderMonkey JIT compiler used across Firefox and Thunderbird. Modern JavaScript engines speculatively compile hot code paths to optimized native code based on type and value assumptions. When the compiler emits incorrect code for a specific input pattern, the resulting machine instructions can read or write memory outside the bounds intended by the source-level operation. This class of defect aligns with [CWE-119] and typically yields type confusion or out-of-bounds memory access at runtime.
Because the JIT-emitted code runs in the same address space as the renderer or mail content process, successful exploitation gives the attacker control over a content-process worker. Thunderbird inherits the same risk because it renders HTML messages using the Gecko engine, even with remote content disabled in certain edge cases.
Root Cause
The root cause is incorrect code generation in the JIT optimizer. Detailed root-cause information is restricted in Mozilla Bug Report #1997503 pending broader patch deployment. Refer to Mozilla Security Advisory MFSA-2025-92 and Mozilla Security Advisory MFSA-2025-94 for vendor-supplied detail.
Attack Vector
The attack vector is network-based and requires no authentication or user interaction beyond loading attacker-controlled content. An attacker hosts crafted JavaScript on a web page; when a victim visits the page, the JIT tier compiles the malicious pattern and triggers the unsafe native code. For Thunderbird, the same engine can be reached through HTML message content. Verified proof-of-concept code is not currently public, and no exploit examples are referenced in the advisories.
Detection Methods for CVE-2025-14330
Indicators of Compromise
- Firefox or Thunderbird content processes crashing with access violations or segmentation faults shortly after browsing untrusted JavaScript-heavy pages.
- Unexpected child processes spawned by firefox.exe, firefox, or thunderbird binaries.
- Outbound network connections from browser processes to unfamiliar command-and-control endpoints following a crash event.
Detection Strategies
- Inventory installed Firefox and Thunderbird versions across managed endpoints and flag any instance below the fixed releases (146 / ESR 140.6).
- Monitor endpoint telemetry for browser process anomalies such as code execution from non-standard memory regions or shellcode-like behavior in JIT pages.
- Correlate browser crash dumps with subsequent process creation or persistence events to identify post-exploitation activity.
Monitoring Recommendations
- Enable centralized crash reporting for Firefox and Thunderbird and alert on repeated JIT-related crashes (js::jit::* frames).
- Track web filtering and proxy logs for users visiting newly registered domains hosting heavy JavaScript payloads.
- Audit Thunderbird configurations to confirm HTML rendering and JavaScript controls match policy.
How to Mitigate CVE-2025-14330
Immediate Actions Required
- Upgrade Firefox to version 146 or later, and Firefox ESR to 140.6 or later, on all managed endpoints.
- Upgrade Thunderbird to version 146 or later, or to 140.6 ESR or later, including build servers and shared workstations.
- Restart browser and mail client processes after patching to ensure the vulnerable JIT code is fully unloaded.
Patch Information
Mozilla shipped fixes in Firefox 146, Firefox ESR 140.6, Thunderbird 146, and Thunderbird 140.6. Patch details are published in Mozilla Security Advisory MFSA-2025-92, Mozilla Security Advisory MFSA-2025-94, Mozilla Security Advisory MFSA-2025-95, and Mozilla Security Advisory MFSA-2025-96. Administrators should validate auto-update is enabled or deploy fixed builds through enterprise software distribution.
Workarounds
- If patching cannot be completed immediately, restrict browsing to trusted sites using web filtering or enterprise policy.
- Configure Thunderbird to display messages as plain text to reduce HTML and JavaScript exposure where workflows allow.
- Apply application allow-listing or browser isolation for high-risk users until updates are deployed.
# Verify installed Firefox version on Linux/macOS
firefox --version
# Verify installed Thunderbird version
thunderbird --version
# Windows: query installed version via registry
reg query "HKLM\SOFTWARE\Mozilla\Mozilla Firefox" /v CurrentVersion
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

