VYPR
Unrated severityNVD Advisory· Published Aug 31, 2009· Updated Apr 23, 2026

CVE-2009-3016

CVE-2009-3016

Description

Apple Safari 4.0.3 does not properly block javascript: and data: 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 that contains a javascript: URI, (2) entering a javascript: URI when specifying the content of a Refresh header, (3) injecting a Refresh header that contains JavaScript sequences in a data:text/html URI, or (4) entering a data:text/html URI with JavaScript sequences when specifying the content of a Refresh header.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Apple Safari 4.0.3 fails to block javascript: and data: URIs in HTTP Refresh headers, enabling cross-site scripting attacks.

Vulnerability

Apple Safari 4.0.3 fails to properly block javascript: and data: URIs when they appear in the Refresh header of an HTTP response. This allows an attacker to inject a Refresh header containing a javascript: URI or a data:text/html URI with embedded JavaScript. The vulnerability affects Safari 4.0.3 and potentially earlier versions, as described in the reference [1].

Exploitation

An attacker can exploit this by crafting an HTTP response that includes a Refresh header with a malicious URI. For example, a redirector script on a website could be tricked into returning a Refresh header pointing to javascript:alert(1) or a data:text/html URI containing JavaScript. When the user's browser processes the response, it executes the JavaScript in the context of the original site's origin. No authentication or user interaction beyond visiting the malicious page is required [1].

Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the security context of the vulnerable website. This can lead to theft of cookies, session tokens, or other sensitive data, as well as performing actions on behalf of the user. The attack is a classic cross-site scripting (XSS) scenario, with the attacker gaining the same privileges as the victim user on the target site.

Mitigation

The provided reference does not specify a fixed version. Users should upgrade to a later version of Safari that addresses this issue. As a workaround, users can disable JavaScript or use a different browser until a patch is applied. No official advisory from Apple is included in the available references [1].

AI Insight generated on May 24, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2
  • Apple Inc./Safari2 versions
    cpe:2.3:a:apple:safari:4.0.3:*:*:*:*:*:*:*+ 1 more
    • cpe:2.3:a:apple:safari:4.0.3:*:*:*:*:*:*:*
    • (no CPE)range: =4.0.3

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.