Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-40726: n/a

0
Medium
VulnerabilityCVE-2024-40726cvecve-2024-40726
Published: Tue Jul 09 2024 (07/09/2024, 00:00:00 UTC)
Source: CVE Database V5

Description

A cross-site scripting (XSS) vulnerability in netbox v4.0.3 allows attackers to execute arbitrary web scripts or HTML via a crafted payload injected into the Name parameter at /dcim/power-ports/{id}/edit/.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/28/2026, 05:28:24 UTC

Technical Analysis

CVE-2024-40726 is a medium-severity cross-site scripting (XSS) vulnerability identified in NetBox version 4.0.3, a popular open-source IP address management (IPAM) and data center infrastructure management (DCIM) tool. The vulnerability arises from insufficient input sanitization of the 'Name' parameter on the /dcim/power-ports/{id}/edit/ endpoint, allowing an attacker to inject malicious JavaScript or HTML payloads. When a victim user accesses the affected page, the injected script executes in their browser context, potentially leading to session hijacking, credential theft, or unauthorized actions within the application. The CVSS vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) indicates that the attack can be performed remotely over the network without privileges, requires low attack complexity, and user interaction is necessary (the victim must visit the crafted URL). The vulnerability impacts confidentiality and integrity but does not affect availability. No patches or official fixes are currently linked, and no active exploitation has been reported. The CWE-94 classification suggests improper control of code injection, consistent with XSS. This vulnerability is particularly relevant for organizations using NetBox 4.0.3 to manage critical network infrastructure, as successful exploitation could allow attackers to manipulate user sessions or inject malicious content into the management interface.

Potential Impact

The primary impact of CVE-2024-40726 is the potential compromise of user confidentiality and integrity within the NetBox application. Attackers can execute arbitrary scripts in the context of authenticated users, potentially stealing session cookies, performing actions on behalf of users, or delivering further malware payloads. While availability is not directly affected, the trustworthiness of the management interface can be undermined, leading to operational risks. Organizations relying on NetBox for managing IP addresses and data center infrastructure could face unauthorized access or manipulation of critical network configuration data if attackers leverage this vulnerability. The requirement for user interaction limits the attack vector to targeted phishing or social engineering campaigns. However, given NetBox's role in infrastructure management, even limited compromise can have cascading effects on network security and stability. The absence of known exploits in the wild reduces immediate risk but does not preclude future exploitation attempts.

Mitigation Recommendations

To mitigate CVE-2024-40726, organizations should first check for and apply any official patches or updates from the NetBox project addressing this vulnerability. In the absence of an official patch, implement strict input validation and output encoding on the 'Name' parameter to prevent script injection. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts within the application. Limit user privileges to the minimum necessary, reducing the impact of potential XSS attacks. Educate users about the risks of clicking on untrusted links, especially those that may lead to the vulnerable endpoint. Monitor web application logs for suspicious input patterns targeting the /dcim/power-ports/{id}/edit/ path. Consider deploying Web Application Firewalls (WAFs) with rules to detect and block XSS payloads targeting this endpoint. Finally, conduct regular security assessments and penetration tests focusing on web interface vulnerabilities to identify and remediate similar issues proactively.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
mitre
Date Reserved
2024-07-09T00:00:00.000Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6cafb7ef31ef0b5680ab

Added to database: 2/25/2026, 9:42:07 PM

Last enriched: 2/28/2026, 5:28:24 AM

Last updated: 4/12/2026, 3:39:53 PM

Views: 10

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses