search menu icon-carat-right cmu-wordmark

CERT Coordination Center

Mozilla Firefox fails to properly handle JavaScript onUnload events

Vulnerability Note VU#393921

Original Release Date: 2007-02-23 | Last Revised: 2007-03-07


Mozilla Firefox does not properly handle JavaScript onUnload events. This vulnerability may lead to memory corruption that could allow a remote, unauthenticated attacker to execute arbitrary code on a vulnerable system.


The JavaScript onUnload event is executed when the browser exits a web page. An event handler can be installed via JavaScript to trap and process this event.

Mozilla Firefox fails to properly handle JavaScript onUnload events. Specifically, Firefox may not correctly handle freed data structures modified in the onUnload event handler, which could cause memory corruption.


By convincing a user to view a specially crafted HTML document (e.g., a web page or an HTML email message or attachment), an attacker may be able to execute arbitrary code with the privileges of the user.


Firefox has addressed this issue in Firefox version as well as Firefox See Mozilla Foundation Security Advisory 2007-08 for more information

Disable JavaScript

Disabling JavaScript will prevent exploitation of this vulnerability. For instructions on disabling JavaScript in Mozilla Firefox, refer to the Mozilla Firefox section the Securing Your Web Browser document.

Vendor Information

Affected   Unknown   Unaffected


Updated:  February 26, 2007



Vendor Statement

No statement is currently available from the vendor regarding this vulnerability.

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.


Refer to

If you have feedback, comments, or additional information about this vulnerability, please send us email.

CVSS Metrics

Group Score Vector
Base N/A N/A
Temporal N/A N/A
Environmental N/A



This vulnerability was publicly disclosed by Michal Zalewski.

This document was written by Jeff Gennari.

Other Information

CVE IDs: CVE-2007-1092
Severity Metric: 18.36
Date Public: 2007-02-22
Date First Published: 2007-02-23
Date Last Updated: 2007-03-07 15:35 UTC
Document Revision: 27

Sponsored by the Department of Homeland Security Office of Cybersecurity and Communications.