← Back to search

CVE-2026-104073

7.6 HIGHpublic exploit available

Published 2026-10-06 · Updated 2026-10-07

AI risk analysis

Summary
A server-side template injection vulnerability in NetBox allows low-privileged users to craft custom links that can steal session cookies and API tokens from other users by embedding request data directly into Jinja2 templates. This enables attackers to hijack user sessions and gain full access to their accounts.
Exploitability
Moderately difficult to exploit as it requires a user with 'Can add custom links' permission to create a malicious template, but once created, the attack automatically triggers when a privileged user views the affected object.
Blast radius
The vulnerability could lead to widespread account takeovers across the NetBox instance, especially if multiple users have elevated privileges or API access, as the attack can exfiltrate credentials without requiring user interaction beyond viewing an object.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade to NetBox 4.7.0 or later to remediate this vulnerability.
template-injectionsession-hijackingweb

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD description

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N

Weaknesses

CWE-79, CWE-668

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.