CVE-2026-104073 NetBox 2.9.5 < 4.7.0 Session Hijacking via Custom Links

Medium 6.9 Published Updated

Low-privileged users can steal session cookies and API tokens via template injection in custom links, leading to account takeover.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-104073?

CVE-2026-104073 is a medium-severity cross-site scripting vulnerability in netbox-community netbox, published on 6 Oct 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-79, CWE-668

Which versions are affected by CVE-2026-104073?

How do I fix CVE-2026-104073?

No fix has been published for CVE-2026-104073 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-104073 being exploited?

There is no known exploitation of CVE-2026-104073 in the wild and no public exploit code.

Sources

Also known as GHSA-hwq6-cq8c-9m9m.

Is CVE-2026-104073 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free