GHSA-v7qw-hx66-4w9x
HIGHnetbox-data-flows has stored XSS in ObjectAlias names rendered inside DataFlow tables
Blast Radius
netbox-data-flowsReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
Summary
An authenticated user who can create or edit ObjectAlias objects can store arbitrary HTML/JavaScript in an alias name. That payload is later rendered unescaped in DataFlow table views, causing a stored XSS when another user views the affected page.
Details
The issue is caused by unsafe HTML generation in the plugin’s custom table column renderer.
Relevant code on main (bf96eac, same commit as origin/main at the time of review):
netbox_data_flows/models/objectaliases.pyObjectAlias.nameis user-controlled (CharField)ObjectAlias.__str__()returnsself.namedirectly
netbox_data_flows/tables/dataflows.pyDataFlowTable.sourcesandDataFlowTable.destinationsuseObjectAliasListColumn
netbox_data_flows/tables/columns.pyObjectAliasListColumn.render()callsobject_list_to_string(value.all(), linkify=True)
netbox_data_flows/utils/helpers.pyobject_list_to_string()builds raw anchor tags with:mark_safe(separator.join(f'<a href="{o.get_absolute_url()}">{o}</a>' for o in objects))
The alias text ({o}) is inserted into HTML without escaping, then the whole string is marked safe. Because ObjectAlias.__str__() returns the user-supplied name, HTML/JS in the alias name is executed in the victim’s browser.
This affects any page rendering DataFlowTable, including at least:
- the main Data Flow list page
- model tabs that reuse
DataFlowTable
PoC
Environment:
- NetBox with
netbox-data-flowsinstalled - No special plugin configuration required
Steps:
- Log in as a user with permission to create or edit
ObjectAliasandDataFlow. - Create a new
ObjectAliaswith the following name:<img src=x onerror=alert(document.domain)> - Create or edit a
DataFlowso this alias is present in eithersourcesordestinations. - Log in as another user and open the Data Flow list page in the plugin UI.
- The JavaScript executes when the table renders the alias list.
A simple path to trigger is the Data Flow list page. Any other page that renders DataFlowTable should also be tested.
Impact
This is a stored cross-site scripting vulnerability.
Impacted users:
- any authenticated user who can view a page rendering the affected
DataFlowtable - especially higher-privileged NetBox users, because an attacker with lower privileges may target them by planting a malicious alias name
Possible impact:
- session theft
- execution of privileged actions in the victim’s session
- exfiltration of data visible to the victim in NetBox
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | netbox-data-flows | all versions | 1.5.1 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for netbox-data-flows. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.
Fix
Update netbox-data-flows to 1.5.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-v7qw-hx66-4w9x is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 pinpoints whether GHSA-v7qw-hx66-4w9x is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.
Tailored to GHSA-v7qw-hx66-4w9x. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-v7qw-hx66-4w9x in your dependencies?
O3 detects GHSA-v7qw-hx66-4w9x across PyPI dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.