Skip to main content
← All vulnerabilities
CVE-2026-104073

NetBox 2.9.5 < 4.7.0 Session Hijacking via Custom Links

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.7.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

NetBox versions 2.9.5 before 4.7.0 contain a server-side template injection vulnerability that allows a low-privileged user with the "Can add custom links" permission to steal session cookies and API tokens of other users by exposing the raw Django HttpRequest object to the Jinja2 template context. Attackers can craft a custom link template embedding request.COOKIES['sessionid'] or a user's API token into an img src URL, which bypasses the clean_html sanitizer and auto-exfiltrates the victim's credentials to an attacker-controlled host when a privileged user views the object, enabling full account takeover.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • netbox-community netbox

    From 2.9.5 · fixed in 4.7.0

References 4

GitHub · netbox-community/netbox

vulncheck.com