What is Mozilla Firefox?
Mozilla Firefox is an open-source web browser used by hundreds of millions of people. Firefox implements XMLHttpRequest (XHR) — the JavaScript API for asynchronous HTTP requests — and fires readystatechange events as XHR responses are received. These events are handled in the browser's event loop, which also manages DOM operations including page navigation and reloading.
Overview
CVE-2013-1690 is a memory corruption vulnerability (CWE-119) in how Mozilla Firefox and Thunderbird handle onreadystatechange events in conjunction with page reloading. When a JavaScript onreadystatechange handler triggers a page reload while an XHR request is in-flight, a use-after-free condition can occur as the browser accesses the in-flight XHR object after its underlying memory has been released during the navigation. This can result in exploitable memory corruption allowing arbitrary code execution.
Mozilla patched this in Firefox 22 and Thunderbird 17.0.7 via security advisory MFSA 2013-53.
Affected Versions
| Product | Vulnerable Versions | Fixed Version |
|---|---|---|
| Mozilla Firefox | Firefox 21 and earlier | Firefox 22 |
| Mozilla Firefox ESR | 17.0.6 and earlier | 17.0.7 |
| Mozilla Thunderbird | 17.0.6 and earlier | 17.0.7 |
| Mozilla Thunderbird ESR | 17.0.6 and earlier | 17.0.7 |
| Mozilla SeaMonkey | 2.18 and earlier | 2.19 |
Technical Details
Firefox's XHR implementation fires readystatechange events as an HTTP request progresses through states (OPENED, HEADERS_RECEIVED, LOADING, DONE). The vulnerability occurs at the interaction between XHR event dispatch and page navigation:
- A page initiates an XHR request with an
onreadystatechangehandler - In the
onreadystatechangehandler, JavaScript triggers a page reload or navigation - The navigation begins tearing down the current page context — including XHR objects — while the XHR event dispatch is still in progress
- Firefox subsequently accesses the freed XHR object when completing the event dispatch sequence, triggering memory corruption (CWE-119)
The resulting crash can be exploitable: an attacker who controls the heap layout (via JavaScript heap spray) may redirect execution into attacker-controlled data when the freed pointer is dereferenced. The CVSS score of 8.8 (full C/I/A) reflects the full RCE potential.
Thunderbird exposure: The vulnerability also affects Thunderbird because Thunderbird uses the Gecko rendering engine (shared with Firefox) to render HTML email. A malicious HTML email with embedded JavaScript performing XHR could trigger the vulnerability in Thunderbird — though Thunderbird applies stricter JavaScript restrictions than Firefox for remote content.
Discovery
Discovered through internal Mozilla security research and fuzzing. Fixed as part of the June 2013 Firefox 22 release cycle in MFSA 2013-53.
Exploitation Context
CISA confirmed in-the-wild exploitation. Browser XHR race-condition vulnerabilities of this type are attractive to exploit kit authors because the trigger is pure JavaScript with no plugins required. The vulnerability was relevant to the 2013 timeframe when exploit kits like Blackhole actively incorporated Mozilla Firefox vulnerabilities alongside Internet Explorer and Java flaws.
Remediation
- Update Firefox to version 22 or later — MFSA 2013-53 patches this vulnerability
- Update Thunderbird to 17.0.7 or later
- Enable automatic updates for Firefox and Thunderbird
- For organizations running older Firefox ESR branches, prioritize upgrading to current ESR
- Consider Content Security Policy (CSP) deployment on internal web applications to restrict XHR origins and reduce attack surface
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2013-1690 |
| Vendor / Product | Mozilla — Firefox and Thunderbird |
| NVD Published | 2013-06-26 |
| NVD Last Modified | 2025-10-22 |
| CVSS 3.1 Score | 8.8 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Severity | HIGH |
| CWE | CWE-119 find similar ↗ |
| CISA KEV Added | 2022-03-28 |
| CISA KEV Deadline | 2022-04-18 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2013-06-25 | Mozilla releases Firefox 22 and Thunderbird 17.0.7 patching CVE-2013-1690 (MFSA 2013-53) |
| 2013-06-26 | CVE-2013-1690 published |
| 2022-03-28 | Added to CISA Known Exploited Vulnerabilities catalog |
| 2022-04-18 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| NVD — CVE-2013-1690 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |
| Mozilla Security Advisory MFSA 2013-53 | Vendor Advisory |