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



CVE-2026-83801

CVE-2026-83801: Stored Cross-Site Scripting via Form Help Text in Nautobot

Alon Barad
Alon Barad
Software Engineer

Sep 23, 2026·5 min read·19 visits

Executive Summary (TL;DR)

A stored XSS vulnerability in Nautobot allows low-privileged administrative users to inject malicious scripts into Module Family names or Relationship descriptions, executing arbitrary code when viewed by other users.

CVE-2026-83801 is a stored Cross-Site Scripting (XSS) vulnerability in Nautobot. The vulnerability arises because the application interpolates user-controlled database properties—specifically Relationship descriptions and Module Family names—directly into the help_text parameter of Django form fields. These fields are rendered using Django's |safe filter, bypassing HTML escaping and enabling persistent injection. When an administrative user accesses the affected forms, the payload executes contextually in their browser. This allows attackers to hijack active sessions and perform unauthorized operations. Nautobot versions prior to v2.4.37 and v3.1.8 are affected by this vulnerability. The issue has been patched by implementing contextual HTML escaping and strict markdown sanitization.

Vulnerability Overview

Nautobot serves as an open-source Network Source of Truth and Network Automation Platform, managing highly sensitive configuration data. The application utilizes a generic form rendering component to display form fields dynamically across different modules. A critical validation flaw exists in how user-supplied database properties are parsed during this form generation process.

The vulnerability is classified as a stored Cross-Site Scripting (XSS) vulnerability, registered as CWE-79. Specifically, the application interpolates user-controlled database properties directly into the help text parameter of standard Django form fields. These fields are subsequently rendered without appropriate contextual escaping.

An attacker with low-level administrative privileges can inject arbitrary HTML or JavaScript payloads into specific model properties. When a high-privilege administrative user accesses the affected object forms, the browser executes the stored payload. This execution occurs within the context of the victim's authenticated session, introducing significant security risks.

Root Cause Analysis

In standard Django applications, template variables are automatically HTML-escaped by default to prevent cross-site scripting vulnerabilities. However, Nautobot utilizes a specialized template file named render_field.html to standardize the visual presentation of form elements. Within this template, the form field's help_text parameter is processed using Django's built-in |safe template filter.

The application of the |safe filter instructs the template engine to bypass standard HTML auto-escaping mechanisms. This behavior assumes that any content passed to help_text has been validated and sanitized. If the backend dynamic form class assigns raw, unescaped, user-controlled model attributes directly to the form's help_text property, a persistent injection path is established.

The vulnerability manifests in two primary code paths. First, in the Module Family initialization logic within nautobot/dcim/forms.py, the system generates help texts using standard Python f-strings that incorporate the unsanitized parent_bay.module_family.name attribute. Second, in nautobot/extras/models/relationships.py, the dynamic relationship form builder directly maps the unsanitized self.description attribute to the field's help text parameter.

Code Analysis

The vulnerability in the Module Family component was addressed by replacing standard Python f-string interpolation with Django's format_html utility, which automatically escapes variable inputs.

# Vulnerable Implementation
self.fields["module_family"].help_text = f"The selected parent module bay requires a module in the {parent_bay.module_family.name} family"
 
# Patched Implementation
from django.utils.html import format_html
 
self.fields["module_family"].help_text = format_html(
    "The selected parent module bay requires a module in the {} family",
    parent_bay.module_family.name,
)

For the Relationship description component, the developers implemented markdown-based sanitization using the render_markdown helper. This helper leverages the nh3 HTML sanitization library to strip out executable components like <script> tags while retaining benign formatting elements.

# Vulnerable Implementation
def to_form_field(self, side):
    field.required = False
    field.label = self.get_label(side)
    if self.description:
        field.help_text = self.description
    return field
 
# Patched Implementation
from nautobot.core.templatetags.helpers import render_markdown
 
def to_form_field(self, side):
    field.required = False
    field.label = self.get_label(side)
    if self.description:
        # Sanitize input and render markdown securely
        field.help_text = render_markdown(self.description)
    return field

Exploitation Methodology

Exploitation of this vulnerability requires an authenticated attacker with permissions to modify either Module Family names or Relationship descriptions. The attacker injects a target payload containing executable JavaScript into these fields. Because the inputs are stored in the database without prior validation, the database persists the malicious payload in its raw form.

The attack remains dormant until an administrative user triggers the rendering of the compromised form. This occurs when the administrator attempts to create or edit objects associated with the malicious Module Family or Relationship. The system loads the record, extracts the raw payload, and renders it through the render_field.html template.

Upon rendering, the administrator's browser interprets the injected tags and executes the script. The script can extract the active session cookies or API tokens and transmit them to an external endpoint controlled by the attacker. This allows the attacker to hijack the session and assume the administrative identity.

Impact Assessment

The security impact of CVE-2026-83801 is evaluated with a CVSS v3.1 score of 5.4, indicating Medium severity. The attack vector is Network, requiring Low privileges and User Interaction. The scope is changed because the script executes within the context of the victim's session, enabling actions outside the attacker's original permission boundaries.

Successful execution allows an attacker to bypass role-based access control. Since Nautobot serves as a centralized source of truth for network configurations, administrative access can lead to broader infrastructure compromise. The attacker can modify network device definitions, retrieve secrets, or disrupt automation workflows.

The vulnerability does not present direct availability risks to the server hosting Nautobot. The primary consequence is the compromise of session confidentiality and integrity. If the victim holds superuser privileges, the attacker can establish full, persistent administrative control over the Nautobot deployment.

Remediation and Mitigation

The recommended remediation is to upgrade the Nautobot deployment to the patched releases. For deployments on the v2.x release train, upgrade to version v2.4.37 or later. For deployments on the v3.x release train, upgrade to version v3.1.8 or later.

If immediate upgrading is not possible, organizations can run administrative scripts within the Nautobot Django shell to inspect and clean the database. This script scans for potentially dangerous characters in target models.

# Audit script for the Django shell
from nautobot.dcim.models import ModuleFamily
from nautobot.extras.models import Relationship
 
for mf in ModuleFamily.objects.filter(name__contains='<'):
    print(f'Vulnerable ModuleFamily: {mf.id}')
 
for rel in Relationship.objects.filter(description__contains='<'):
    print(f'Vulnerable Relationship: {rel.id}')

Additionally, organizations should enforce the principle of least privilege. Restricting access to the dcim.add_modulefamily, dcim.change_modulefamily, extras.add_relationship, and extras.change_relationship permissions reduces the exposed attack surface.

Official Patches

NautobotNautobot Stored XSS vulnerability advisory

Fix Analysis (2)

Technical Appendix

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

Affected Systems

Nautobot v2.x before v2.4.37Nautobot v3.x before v3.1.8

Affected Versions Detail

Product
Affected Versions
Fixed Version
Nautobot
Nautobot
>= 2.0.0, < 2.4.37v2.4.37
Nautobot
Nautobot
>= 3.0.0, < 3.1.8v3.1.8
AttributeDetail
CWE IDCWE-79
Attack VectorNetwork
CVSS Severity5.4 (Medium)
EPSS StatusNot established
ImpactStored Cross-Site Scripting (XSS)
Exploit StatusProof-of-Concept
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1189Drive-by Compromise
Initial Access
T1185Browser Session Hijacking
Collection
CWE-79
Improper Neutralization of Input During Web Page Generation

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

Known Exploits & Detection

NucleiDetection Template Available

References & Sources

  • [1]GitHub Security Advisory GHSA-56v6-2fhr-wxgq
  • [2]NVD - CVE-2026-83801

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

•37 minutes ago•CVE-2026-46429
5.5

CVE-2026-46429: Unrestricted File Upload and Validation Bypass in GeoNode

GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.

Amit Schendel
Amit Schendel
1 views•10 min read
•about 2 hours ago•CVE-2026-55649
6.3

CVE-2026-55649: Stored Cross-Site Scripting in GeoNode Document Metadata Abstract Field

CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.

Amit Schendel
Amit Schendel
4 views•9 min read
•about 3 hours ago•GHSA-QX75-2P3R-PWM5
7.7

CVE-2026-55622: Cross-Project Instance Copy Authorization Bypass in Canonical LXD and LXC Incus

CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.

Amit Schendel
Amit Schendel
3 views•11 min read
•about 4 hours ago•GHSA-7MR3-28H5-M5VX
7.7

GHSA-7mr3-28h5-m5vx: Authorization Bypass and Cross-Project Volume Copy in Canonical LXD

An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.

Alon Barad
Alon Barad
3 views•10 min read
•about 5 hours ago•GHSA-47W9-6R3F-938G
9.9

GHSA-47w9-6r3f-938g: Authorization Bypass and Host Root Command Execution in Canonical LXD and Incus

A missing authorization and configuration validation vulnerability in Canonical LXD and LXC Incus allows authenticated users within restricted projects to bypass project security boundaries. By smuggling prohibited low-level configuration directives (such as raw.lxc or raw.qemu) inside instance snapshots or backup archives, an attacker can restore these configurations within a restricted project and execute arbitrary commands with root privileges on the underlying host operating system.

Alon Barad
Alon Barad
4 views•11 min read
•about 6 hours ago•GHSA-JPF8-86F3-WP38
9.9

CVE-2026-48752: Arbitrary Host File Read and Write via Templates Symlink in Canonical LXD and Incus

A symbolic link traversal vulnerability (CWE-59) in Canonical LXD and Linux Containers Incus allows an authenticated user with image import permissions to read and write arbitrary files on the host filesystem. During image archive unpacking, the daemon fails to reject top-level symbolic links for the instance `templates` directory. Subsequent requests to the instance template API endpoints follow this symbolic link outside the instance storage directory with root privileges, enabling complete host compromise.

Amit Schendel
Amit Schendel
4 views•10 min read