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-40742: n/a

0
Medium
VulnerabilityCVE-2024-40742cvecve-2024-40742
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 circuit ID parameter at /circuits/circuits/add.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/28/2026, 05:33:09 UTC

Technical Analysis

CVE-2024-40742 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 circuit ID parameter in the /circuits/circuits/add endpoint, allowing attackers to inject malicious JavaScript or HTML payloads. When a victim user interacts with a crafted link or payload, the malicious script executes in their browser context, potentially leading to session hijacking, credential theft, or unauthorized actions within the NetBox web interface. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) indicates that the attack can be launched remotely over the network without authentication, requires low attack complexity, but does require user interaction. The vulnerability impacts confidentiality and integrity by exposing sensitive session data and enabling unauthorized actions, but does not affect availability. No patches or fixes are currently linked, and no known exploits have been observed in the wild. The CWE-79 classification confirms this is a classic reflected or stored XSS issue. Organizations relying on NetBox 4.0.3 for network management should be aware of this vulnerability and take immediate steps to mitigate risk.

Potential Impact

The primary impact of CVE-2024-40742 is the potential compromise of user session confidentiality and integrity within NetBox environments. Successful exploitation can lead to theft of authentication tokens, unauthorized command execution, or manipulation of network infrastructure data. This can disrupt network management operations, cause data leakage, and potentially facilitate further attacks on the organization's network. Since NetBox is widely used by network operators, data center administrators, and telecommunications providers, exploitation could affect critical infrastructure management. The vulnerability's requirement for user interaction limits automated exploitation but does not eliminate risk, especially in environments with many users or where phishing is feasible. The absence of known exploits reduces immediate threat but does not preclude future attacks. Organizations failing to address this vulnerability may face increased risk of targeted attacks, data breaches, and operational disruptions.

Mitigation Recommendations

1. Implement strict input validation and output encoding on the circuit ID parameter in the /circuits/circuits/add endpoint to neutralize malicious scripts. 2. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts in the NetBox web interface. 3. Educate users to recognize and avoid interacting with suspicious links or payloads that could trigger XSS attacks. 4. Monitor web server logs and application behavior for unusual requests or error patterns indicative of attempted XSS exploitation. 5. If no official patch is available, consider applying custom sanitization filters or temporarily disabling the vulnerable functionality until a fix is released. 6. Regularly update NetBox to the latest versions once patches addressing this vulnerability are published. 7. Use web application firewalls (WAFs) configured to detect and block XSS attack patterns targeting NetBox endpoints. 8. Conduct internal penetration testing and code reviews focused on input handling to identify and remediate similar vulnerabilities.

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: 699f6cb1b7ef31ef0b568154

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

Last enriched: 2/28/2026, 5:33:09 AM

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

Views: 11

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