PT-2026-41609 · Pypi · Netbox-Data-Flows
Published
2026-05-07
·
Updated
2026-05-07
CVSS v3.1
8.7
High
| Vector | AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
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.namedirectlynetbox data flows/tables/dataflows.pyDataFlowTable.sourcesandDataFlowTable.destinationsuseObjectAliasListColumnnetbox 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:
python
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:
html
<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
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Netbox-Data-Flows