Vulnerabilities in pkg:pypi/netbox-data-flows
PACKAGEGHSA-v7qw-hx66-4w9x is a HIGH (CVSS 8.7) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Netbox data flows libraries in the PyPI ecosystem. The issue involves netbox-data-flows has stored xss in objectalias names rendered inside dataflow tables. Remediation is available by upgrading affected packages to version 1.5.1.
pkg:pypi/netbox-data-flows
Vulnerability advisories affecting package pkg:pypi/netbox-data-flows. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-v7qw-hx66-4w9x | - | HIGH | netbox-data-flows has stored XSS in ObjectAlias names rendered inside DataFlow tables |
GHSA-v7qw-hx66-4w9x at a Glance
Security Impact
CVSS: 8.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N).
How to Fix GHSA-v7qw-hx66-4w9x
To remediate this vulnerability, upgrade all affected Netbox data flows dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install netbox-data-flows>=1.5.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show netbox-data-flows
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-v7qw-hx66-4w9x, inspect your installed packages using pip:
pip show netbox-data-flows
Analyze the terminal output to locate any version of Netbox data flows in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.1), your application is affected.
Note: The pip show netbox-data-flows command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Netbox data flows, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-v7qw-hx66-4w9x Affected Netbox data flows Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
netbox-data-flows
|
PyPI |
< 1.5.1
|
1.5.1
|
References
Frequently Asked Questions
What is GHSA-v7qw-hx66-4w9x?
Which Netbox data flows versions are affected?
What version fixes GHSA-v7qw-hx66-4w9x?
Is netbox-data-flows affected?
What is the CVSS score of GHSA-v7qw-hx66-4w9x?
What CWE is associated with GHSA-v7qw-hx66-4w9x?
How can I check PyPI dependencies for GHSA-v7qw-hx66-4w9x?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v7qw-hx66-4w9x",
"modified" : "2026-05-07T22:31:32Z",
"published" : "2026-05-07T22:31:32Z",
"aliases" : [ ],
"summary" : "netbox-data-flows has stored XSS in ObjectAlias names rendered inside DataFlow tables",
"details" : "### Summary\nAn 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.\n\n### Details\nThe issue is caused by unsafe HTML generation in the plugin’s custom table column renderer.\n\nRelevant code on `main` (`bf96eac`, same commit as `origin/main` at the time of review):\n\n- `netbox_data_flows/models/objectaliases.py`\n - `ObjectAlias.name` is user-controlled (`CharField`)\n - `ObjectAlias.__str__()` returns `self.name` directly\n- `netbox_data_flows/tables/dataflows.py`\n - `DataFlowTable.sources` and `DataFlowTable.destinations` use `ObjectAliasListColumn`\n- `netbox_data_flows/tables/columns.py`\n - `ObjectAliasListColumn.render()` calls `object_list_to_string(value.all(), linkify=True)`\n- `netbox_data_flows/utils/helpers.py`\n - `object_list_to_string()` builds raw anchor tags with:\n ```python\n mark_safe(separator.join(f'<a href=\"{o.get_absolute_url()}\">{o}</a>' for o in objects))\n ```\n\nThe 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.\n\nThis affects any page rendering `DataFlowTable`, including at least:\n- the main Data Flow list page\n- model tabs that reuse `DataFlowTable`\n\n### PoC\nEnvironment:\n- NetBox with `netbox-data-flows` installed\n- No special plugin configuration required\n\nSteps:\n1. Log in as a user with permission to create or edit `ObjectAlias` and `DataFlow`.\n2. Create a new `ObjectAlias` with the following name:\n ```html\n <img src=x onerror=alert(document.domain)>\n ```\n3. Create or edit a `DataFlow` so this alias is present in either `sources` or `destinations`.\n4. Log in as another user and open the Data Flow list page in the plugin UI.\n5. The JavaScript executes when the table renders the alias list.\n\nA simple path to trigger is the Data Flow list page. Any other page that renders `DataFlowTable` should also be tested.\n\n### Impact\nThis is a stored cross-site scripting vulnerability.\n\nImpacted users:\n- any authenticated user who can view a page rendering the affected `DataFlow` table\n- especially higher-privileged NetBox users, because an attacker with lower privileges may target them by planting a malicious alias name\n\nPossible impact:\n- session theft\n- execution of privileged actions in the victim’s session\n- exfiltration of data visible to the victim in NetBox",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "netbox-data-flows"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.5.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.5.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Alef-Burzmali/netbox-data-flows/security/advisories/GHSA-v7qw-hx66-4w9x"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Alef-Burzmali/netbox-data-flows"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-07T22:31:32Z",
"nvd_published_at" : null
}
}