CVE Catalog

CVE-2026-104073

HighCVSS 7.6
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.28%

19th percentile - higher than 19% of all known CVEs

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, bypassing the clean_html sanitizer and auto-exfiltrating the victim's credentials. This enables full account takeover.

Risk Assessment

A low-privileged attacker can take over privileged user accounts by stealing their sessions and API tokens. This leads to privilege escalation and full compromise of the NetBox system.

Recommendation

Upgrade NetBox to version 4.7.0 or later. Restrict the "Can add custom links" permission to trusted users and review existing custom links for suspicious templates.

Other vulnerabilities in NetBox

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS