Vulnerabilities in pkg:pypi/netbox-data-flows

PACKAGE
Advisory Summary

GHSA-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/netbox-data-flows

1 Known Advisory Record(s)

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

CVE Identifier N/A
GHSA Identifier GHSA-v7qw-hx66-4w9x
Severity HIGH
CVSS v3.1 Base Score 8.7
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Netbox data flows
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

netbox-data-flows fixed: 1.5.1
pip install netbox-data-flows>=1.5.1
Verify Direct and Transitive Dependencies

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

### 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.py` - `ObjectAlias.name` is user-controlled (`CharField`) - `ObjectAlias.__str__()` returns `self.name` directly - `netbox_data_flows/tables/dataflows.py` - `DataFlowTable.sources` and `DataFlowTable.destinations` use `ObjectAliasListColumn` - `netbox_data_flows/tables/columns.py` - `ObjectAliasListColumn.render()` calls `object_list_to_string(value.all(), linkify=True)` - `netbox_data_flows/utils/helpers.py` - `object_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-flows` installed - No special plugin configuration required Steps: 1. Log in as a user with permission to create or edit `ObjectAlias` and `DataFlow`. 2. Create a new `ObjectAlias` with the following name: ```html <img src=x onerror=alert(document.domain)> ``` 3. Create or edit a `DataFlow` so this alias is present in either `sources` or `destinations`. 4. Log in as another user and open the Data Flow list page in the plugin UI. 5. 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 `DataFlow` table - 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

GHSA-v7qw-hx66-4w9x Affected Netbox data flows Versions

1 component(s)
Fixed Versions:
1.5.1
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?
GHSA-v7qw-hx66-4w9x is a security vulnerability in Netbox data flows involving netbox-data-flows has stored XSS in ObjectAlias names rendered inside DataFlow tables under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Netbox data flows versions are affected?
Affected versions include releases prior to 1.5.1 across affected packages: netbox-data-flows.
What version fixes GHSA-v7qw-hx66-4w9x?
Upgrading to 1.5.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is netbox-data-flows affected?
Yes, netbox-data-flows is affected in releases prior to 1.5.1. Upgrade your dependency to 1.5.1 or later.
What is the CVSS score of GHSA-v7qw-hx66-4w9x?
GHSA-v7qw-hx66-4w9x has a CVSS v3.1 base score of 8.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with GHSA-v7qw-hx66-4w9x?
GHSA-v7qw-hx66-4w9x is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check PyPI dependencies for GHSA-v7qw-hx66-4w9x?
Run the dependency tree command: 'pip show netbox-data-flows'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}