CVE-2009-3985 Cross-site scripting in n/a

Medium 6.8 Published Updated

Remote attackers can execute arbitrary web script or HTML in the context of a spoofed URL by manipulating document location, affecting Firefox and SeaMonkey users.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2009-3985?

CVE-2009-3985 is a medium-severity cross-site scripting vulnerability in Mozilla Firefox, published on 17 Dec 2009. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Mozilla Firefox before 3.0.16 and 3.5.x before 3.5.6, and SeaMonkey before 2.0.1, allows remote attackers to associate spoofed content with an invalid URL by setting document.location to this URL, and then writing arbitrary web script or HTML to the associated blank document, a related issue to CVE-2009-2654.

Which versions are affected by CVE-2009-3985?

It affects 2 products.

Products include Mozilla Firefox, Mozilla Seamonkey.

How do I fix CVE-2009-3985?

Upgrade to a fixed version.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2009-3985 being exploited?

There is no known exploitation of CVE-2009-3985 in the wild and no public exploit code.

All Mozilla Firefox vulnerabilities

Sources

Also known as GHSA-gfvv-6f6j-f63q.

Is CVE-2009-3985 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free