CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-V7QW-HX66-4W9X

GHSA-v7qw-hx66-4w9x: Stored Cross-Site Scripting (XSS) in NetBox Data Flows Plugin

Alon Barad
Alon Barad
Software Engineer

May 8, 2026·6 min read·31 visits

Executive Summary (TL;DR)

The netbox-data-flows plugin improperly escapes ObjectAlias names before rendering them in DataFlow tables. Authenticated users can inject malicious scripts into these fields, leading to stored XSS that can compromise high-privileged administrators.

A stored Cross-Site Scripting (XSS) vulnerability exists in the netbox-data-flows plugin for NetBox, affecting versions prior to 1.5.1. Authenticated attackers with permissions to modify ObjectAlias records can inject arbitrary HTML and JavaScript, which executes in the context of other users viewing DataFlow tables.

Vulnerability Overview

The netbox-data-flows plugin extends NetBox, an infrastructure resource modeling tool, to support the documentation of network data flows. This vulnerability represents a classic Stored Cross-Site Scripting (CWE-79) weakness within the administrative interface of this plugin. The vulnerability allows authenticated users with relatively low privileges to inject persistent malicious payloads into the system database.

The attack surface is exposed through the ObjectAlias management view. Users with permissions to create or modify ObjectAlias entities can input arbitrary HTML and JavaScript into the alias name field. Because the application fails to neutralize this input before persisting it, the payload is stored directly in the underlying database without sanitization.

When other users access the DataFlow table views, the application retrieves these malicious alias names and renders them as part of the HTML document. This execution occurs within the context of the victim's browser session, granting the attacker access to the victim's NetBox session state, CSRF tokens, and application interface.

Root Cause Analysis

The root cause of this vulnerability lies in the improper use of Django's mark_safe function combined with Python's formatted string literals (f-strings). Django's template engine includes automatic HTML escaping by default to prevent XSS. However, developers can explicitly disable this protection for specific strings by wrapping them in the mark_safe() utility.

In netbox_data_flows/utils/helpers.py, the object_list_to_string function is responsible for rendering custom table columns. The function constructs HTML anchor tags by iterating over a list of objects. It uses an f-string to interpolate the object's URL and its string representation directly into an HTML string: f'<a href="{o.get_absolute_url()}">{o}</a>'.

When the {o} placeholder is evaluated, Python implicitly calls the __str__ method of the ObjectAlias object, returning the user-controlled alias name. Because this entirely unescaped string is immediately passed into mark_safe(), Django trusts the resulting HTML snippet completely. The template engine renders the unescaped user input verbatim, executing any embedded JavaScript in the process.

Code Analysis

An analysis of the vulnerable object_list_to_string function reveals the exact mechanism of the flaw. The developer intended to return a comma-separated list of active hyperlinks, but prioritized convenience over security by bypassing the framework's output encoding.

# Vulnerable implementation in netbox_data_flows/utils/helpers.py
from django.utils.safestring import mark_safe
 
def object_list_to_string(objects, separator=", "):
    # The variable 'o' expands to the unescaped string representation of the object
    return mark_safe(
        separator.join(f'<a href="{o.get_absolute_url()}">{o}</a>' for o in objects)
    )

The fundamental error is interpolating raw variables into an HTML context before applying output encoding. The correct approach in Django requires either escaping the variable explicitly before string interpolation, or utilizing django.utils.html.format_html(), which safely handles argument escaping while constructing HTML structures.

> [!NOTE] > Using format_html instead of mark_safe with f-strings is a crucial security pattern in Django. format_html applies escaping to its arguments before inserting them into the template string, effectively mitigating this class of XSS vulnerability.

Exploitation Methodology

Exploitation of this vulnerability requires an attacker to possess active credentials to the NetBox instance, specifically with permissions to manage ObjectAlias and DataFlow records. The attack proceeds in distinct phases: payload injection, binding, and execution.

First, the attacker navigates to the ObjectAlias creation interface and injects a standard XSS vector into the name field. A viable proof-of-concept payload utilizes the <img> tag with an intentional error to trigger execution: <img src=x onerror=alert(document.domain)>. The application accepts this input and stores it in the database.

Next, the attacker must ensure the payload is rendered in a commonly viewed area. They create or modify a DataFlow record, assigning the malicious ObjectAlias as either a source or destination. This binds the poisoned data to the primary table view.

Finally, the payload executes passively. When a victim (such as a NetBox administrator) loads the Data Flow list page or any model tab rendering the DataFlowTable, the application processes the object_list_to_string function. The browser parses the resulting HTML, encounters the malicious <img> tag, fails to load the nonexistent source x, and immediately executes the JavaScript defined in the onerror handler.

Impact Assessment

The impact of this vulnerability is designated as High due to the context in which NetBox operates. NetBox functions as a central source of truth for network infrastructure, often containing sensitive topologies, device credentials, and configuration states. Exploitation leverages the implicit trust boundaries of the application.

The CVSS v3.1 vector evaluates to CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N (8.7). The scope change (S:C) reflects the fact that an attacker with low privileges can execute actions in the security context of a high-privilege victim. User interaction (UI:R) is strictly required, as the victim must actively navigate to the poisoned page.

Successful exploitation allows the attacker to execute arbitrary JavaScript in the victim's browser session. This capability enables the extraction of session identifiers, CSRF tokens, and sensitive data visible within the NetBox interface. More critically, an attacker can script the victim's browser to silently issue state-changing administrative API requests in the background, effectively elevating their privileges and altering infrastructure records without direct authorization.

Remediation Guidance

The primary remediation strategy is to upgrade the netbox-data-flows package to version 1.5.1 or later. This release addresses the vulnerability by modifying the custom table column rendering logic to properly encode user input before marking the resulting string as safe for HTML rendering.

Administrators should verify the installed package version using the pip show netbox-data-flows command within the NetBox Python environment. If the version is prior to 1.5.1, an immediate update should be scheduled. Following the upgrade, the NetBox service must be restarted to ensure the new plugin code is loaded into memory.

As a proactive measure, security teams can audit existing ObjectAlias records in the database for potential indicators of compromise. Database queries or API scripts should search the name field for common HTML tags (e.g., <script>, <img>, <iframe>) and event handlers (e.g., onerror, onload). Identifying such patterns may indicate attempted or successful exploitation prior to patching.

Official Patches

GitHub AdvisoryOfficial security advisory and patch notification

Technical Appendix

CVSS Score
8.7/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

Affected Systems

NetBox implementations utilizing the netbox-data-flows plugin < 1.5.1

Affected Versions Detail

Product
Affected Versions
Fixed Version
netbox-data-flows
Alef-Burzmali
< 1.5.11.5.1
AttributeDetail
CWE IDCWE-79 (Cross-site Scripting)
Attack VectorNetwork
CVSS v3.18.7 (High)
ImpactSession Hijacking, Privilege Escalation
Exploit StatusProof of Concept Available
Authentication RequirementRequired (Low Privileges)

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1059.007Command and Scripting Interpreter: JavaScript
Execution
CWE-79
Cross-site Scripting

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Known Exploits & Detection

GitHub AdvisoryProof of Concept methodology detailing the injection of <img src=x onerror=alert(document.domain)> into an ObjectAlias name.

Vulnerability Timeline

Vulnerability Published
2026-05-07
Advisory Modified and Patch Released
2026-05-07

References & Sources

  • [1]GitHub Advisory GHSA-v7qw-hx66-4w9x
  • [2]Package Repository
  • [3]OSV Record

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 12 hours ago•CVE-2026-58197
8.8

CVE-2026-58197: Host Escape and Lateral Movement via Insecure Container Network Defaults in ToolHive

A high-severity access control vulnerability in ToolHive CLI before v0.30.1 and ToolHive Studio before v0.38.0 allows local containerized MCP servers to bypass network isolation. This enables malicious workloads to establish TCP/IP connections to administrative and control plane endpoints exposed on the host loopback interface.

Amit Schendel
Amit Schendel
7 views•8 min read
•about 13 hours ago•CVE-2026-63405
5.9

CVE-2026-63405: Insufficient Verification of Data Authenticity in AnyCable Pusher REST API

AnyCable is a real-time communication server. Prior to version 1.6.15, its Pusher-compatible REST API suffered from an authentication bypass vulnerability because it failed to verify that the request body matched the signature-validated body_md5 parameter. This allows attackers to perform replay attacks with modified body contents.

Amit Schendel
Amit Schendel
7 views•5 min read
•about 14 hours ago•CVE-2026-64847
6.8

CVE-2026-64847: Indefinite Denial of Service via Undrained Stderr in AnyIO Process Pool Workers

A denial-of-service vulnerability exists in AnyIO prior to version 4.14.2. Standard error streams of process-pool workers are connected to an operating system pipe that is never drained by the parent process. This allows a worker to fill the pipe buffer and deadlock indefinitely.

Amit Schendel
Amit Schendel
7 views•6 min read
•about 15 hours ago•CVE-2026-63349
7.0

CVE-2026-63349: Privilege Dropping Bypass and Denial of Service in AnyIO Subprocess Module

CVE-2026-63349 is a critical privilege-dropping bypass vulnerability in the AnyIO asynchronous framework (versions 4.14.0 and 4.14.1) on POSIX platforms. Due to a variable assignment typo, supplementary groups specified by the developer are not correctly propagated to the execution backend, resulting in subprocesses retaining the parent process's elevated supplementary group permissions.

Alon Barad
Alon Barad
10 views•5 min read
•about 16 hours ago•CVE-2026-63406
5.9

CVE-2026-63406: Information Disclosure via Insecure Telemetry and Hardcoded Credentials in AnyCable-Go

CVE-2026-63406 is an information disclosure vulnerability in AnyCable-go prior to version 1.6.15. The built-in telemetry client is enabled by default with a hardcoded public authentication token ('secret'). This client digests highly sensitive configuration parameters and command-line arguments, including JWT secrets and RPC secrets, into a stable SHA-256 fingerprint. This fingerprint is sent over public networks, exposing those administrative secrets to offline dictionary and brute-force attacks if intercepted.

Alon Barad
Alon Barad
7 views•5 min read
•about 17 hours ago•CVE-2026-84992
6.1

CVE-2026-84992: Cross-Site Scripting (XSS) via Fenced Code Block Parsing in md-editor-v3

CVE-2026-84992 is a Cross-Site Scripting (XSS) vulnerability affecting md-editor-v3 before version 6.5.4. It occurs because the fenced-code block language parser directly interpolates unescaped language metadata into unquoted HTML attributes inside the custom rendering callback. This bypasses the built-in XSSPlugin which runs during the parsing phase, before rendering.

Amit Schendel
Amit Schendel
9 views•6 min read