Skip to content
Heist/ feed
Back to feed
High

NetBox 2.9.5 < 4.7.0 Session Hijacking via Custom Links

Type: advisorySources: Official CVE List

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.

Products
netbox
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-104073
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 08:05 UTC · Revision 2

Source evidence

NetBox 2.9.5 < 4.7.0 Session Hijacking via Custom Links

core-cve · Original source

Published 6 Oct 2026, 18:50 UTC

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.

cve:CVE-2026-104073

netbox

Fixed versions: Not specified

Complete source record
{
  "id": "62ed35792436c9f6be5010e312d52a8247938af38c6d07a12cb8a89452bd8d8f",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-104073",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "NetBox 2.9.5 < 4.7.0 Session Hijacking via Custom Links",
    "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.",
    "evidence": "cve:CVE-2026-104073",
    "products": [
      {
        "name": {
          "value": "netbox",
          "evidence": "/containers/cna/affected/0/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-104073",
      "aliases": [
        "CVE-2026-104073"
      ],
      "metrics": [
        {
          "format": "CVSS",
          "cvssV4_0": {
            "Safety": "NOT_DEFINED",
            "version": "4.0",
            "Recovery": "NOT_DEFINED",
            "baseScore": 6.9,
            "Automatable": "NOT_DEFINED",
            "attackVector": "NETWORK",
            "baseSeverity": "MEDIUM",
            "valueDensity": "NOT_DEFINED",
            "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:L/SI:L/SA:N",
            "exploitMaturity": "NOT_DEFINED",
            "providerUrgency": "NOT_DEFINED",
            "userInteraction": "PASSIVE",
            "attackComplexity": "LOW",
            "attackRequirements": "NONE",
            "privilegesRequired": "LOW",
            "subIntegrityImpact": "LOW",
            "vulnIntegrityImpact": "NONE",
            "subAvailabilityImpact": "NONE",
            "vulnAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "LOW",
            "vulnConfidentialityImpact": "HIGH",
            "vulnerabilityResponseEffort": "NOT_DEFINED"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        },
        {
          "format": "CVSS",
          "cvssV3_1": {
            "scope": "CHANGED",
            "version": "3.1",
            "baseScore": 7.6,
            "attackVector": "NETWORK",
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N",
            "integrityImpact": "LOW",
            "userInteraction": "REQUIRED",
            "attackComplexity": "LOW",
            "availabilityImpact": "NONE",
            "privilegesRequired": "LOW",
            "confidentialityImpact": "HIGH"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "affected": [
        {
          "repo": "https://github.com/netbox-community/netbox",
          "vendor": "netbox-community",
          "product": "netbox",
          "versions": [
            {
              "status": "affected",
              "version": "2.9.5",
              "lessThan": "4.7.0",
              "versionType": "semver"
            }
          ],
          "packageURL": "pkg:github/netbox-community/netbox",
          "defaultStatus": "unaffected"
        }
      ],
      "modified": "2026-10-27T01:30:32.403Z",
      "provider": "cve",
      "references": [
        "https://github.com/netbox-community/netbox/releases#release-v4.7.0",
        "https://github.com/netbox-community/netbox/issues/22607",
        "https://github.com/netbox-community/netbox/pull/22616",
        "https://www.vulncheck.com/advisories/netbox-session-hijacking-via-custom-links"
      ],
      "provider_metadata": {
        "adp": [
          {
            "title": "CISA ADP Vulnrichment",
            "metrics": [
              {
                "other": {
                  "type": "ssvc",
                  "content": {
                    "id": "CVE-2026-104073",
                    "role": "CISA Coordinator",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "version": "2.0.3",
                    "timestamp": "2026-10-07T14:10:41.964266Z"
                  }
                }
              }
            ],
            "providerMetadata": {
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP",
              "dateUpdated": "2026-10-07T14:11:51.535Z"
            }
          }
        ],
        "cna": {
          "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
          "shortName": "VulnCheck",
          "dateUpdated": "2026-10-27T01:30:32.403Z"
        }
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-104073",
        "evidence": "/cveMetadata/cveId"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/containers/cna/metrics"
  },
  "source_id": "core-cve",
  "document_id": 374629,
  "published_at": "2026-10-06T18:50:28.326+00:00"
}