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·24 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 1 hour ago•CVE-2026-59733
8.8

CVE-2026-59733: Path Traversal and Authorization Bypass in Rclone serve restic

A critical path traversal and authorization bypass vulnerability exists in the rclone serve restic command when multi-user isolation is enabled using the --private-repos flag. Due to a middleware desynchronization flaw, authenticated users can access, modify, or delete backup repositories belonging to other tenants.

Alon Barad
Alon Barad
0 views•5 min read
•about 2 hours ago•GHSA-GX4C-2HQX-CW2R
3.1

GHSA-gx4c-2hqx-cw2r: Cleartext Transmission of Sensitive AWS STS Tokens in rclone S3 Backend via Scheme Downgrade Redirects

A logic vulnerability in the rclone S3 backend implementation allows an unauthenticated adjacent-network attacker to intercept temporary AWS STS credentials. During HTTP redirection handling, the application fails to verify whether a protocol scheme change occurred (such as transitioning from HTTPS to HTTP). If a secure request is redirected to an unencrypted endpoint on the same host, rclone continues to forward the highly sensitive X-Amz-Security-Token header in cleartext.

Amit Schendel
Amit Schendel
2 views•6 min read
•about 3 hours ago•CVE-2025-15366
5.9

CVE-2025-15366: Protocol Command Injection in Python CPython imaplib Standard Library

CVE-2025-15366 is a command injection vulnerability in Python's standard imaplib module, occurring due to the improper neutralization of carriage returns (\r), line feeds (\n), and null bytes (\x00). When an application passes user-controlled input into standard IMAP library calls, an attacker can break out of the line-oriented protocol context and execute arbitrary IMAP directives with the privileges of the authenticated session.

Amit Schendel
Amit Schendel
8 views•7 min read
•about 3 hours ago•CVE-2026-59732
5.0

CVE-2026-59732: Path Traversal (Zip Slip) Vulnerability in rclone archive extract

A path traversal vulnerability (Zip Slip variant) exists in rclone's archive extract functionality before version 1.74.4. The command fails to sanitize relative directory components in archive headers, allowing files to be written outside the target directory or cloud prefix. This issue can result in arbitrary file writes or cloud object overwrites depending on the permissions of the credentials used. Nick Craig-Wood authored the patch on June 29, 2026, which was released in version 1.74.4 on July 14, 2026. This vulnerability is assigned CVE-2026-59732 and is cataloged as GHSA-4vr5-p2gc-h23p. This report provides a detailed root cause analysis, code-level diff, and remediation steps.

Amit Schendel
Amit Schendel
2 views•8 min read
•about 4 hours ago•CVE-2026-71313
6.9

CVE-2026-71313: Local Directory Traversal in rclone via Unsafe Encoding Configurations

A local encoding path traversal vulnerability exists in rclone versions from v1.51.0 up to v1.75.0. When non-default local encoding parameters (such as Slash, None, or Raw) are specified, rclone's standard decoder maps safely encoded fullwidth dot-dot characters back into native directory traversal components. Since the local backend historically lacked a post-resolution path containment check, these relative segments resolved outside the designated synchronization root, allowing arbitrary file creation and modification on the host system.

Amit Schendel
Amit Schendel
4 views•7 min read
•about 5 hours ago•CVE-2026-71315
8.2

CVE-2026-71315: Nuxt route rules silently dropped for mixed-case paths, bypassing appMiddleware auth gates (incomplete fix for CVE-2026-53721)

An security bypass vulnerability exists in Nuxt frameworks where route rules containing mixed-case characters are silently dropped during case-insensitive routing. This occurs because lookups are folded to lowercase, but keys are stored in their original casing in the route-matching trie. As a result, critical authorization middleware, such as appMiddleware, is bypassed, allowing unauthorized access to restricted pages.

Amit Schendel
Amit Schendel
4 views•7 min read