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

Medium 4.3 Published Updated

Remote attackers can execute arbitrary JavaScript via crafted HTTP Refresh headers, enabling cross-site scripting attacks against 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-1312?

CVE-2009-1312 is a medium-severity cross-site scripting vulnerability in Mozilla Firefox, published on 22 Apr 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.9 and SeaMonkey 1.1.17 do not block javascript: URIs in Refresh headers in HTTP responses, which allows remote attackers to conduct cross-site scripting (XSS) attacks via vectors related to (1) injecting a Refresh header or (2) specifying the content of a Refresh header. NOTE: it was later reported that Firefox 3.6 a1 pre and Mozilla 1.7.x and earlier are also affected.

Weakness: CWE-16

Which versions are affected by CVE-2009-1312?

It affects 2 products.

Products include Mozilla Firefox, Mozilla Seamonkey.

How do I fix CVE-2009-1312?

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-1312 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2009-1312 exists.

Public exploit code: 1 Exploit-DB entry.

All Mozilla Firefox vulnerabilities

Sources

Also known as GHSA-3mmx-h8fr-v7j4.

Is CVE-2009-1312 in your software?

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

Check your SBOMs for free