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

0
Medium
VulnerabilityCVE-2024-40727cvecve-2024-40727
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/console-server-ports/add/.

AI-Powered Analysis

Machine-generated threat intelligence

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

Technical Analysis

CVE-2024-40727 is a cross-site scripting (XSS) vulnerability classified under CWE-79, affecting NetBox version 4.0.3. The flaw exists in the handling of the Name parameter on the /dcim/console-server-ports/add/ endpoint, where insufficient input validation or output encoding allows an attacker to inject arbitrary HTML or JavaScript code. When a victim user accesses a page containing the malicious payload, the injected script executes in their browser context, potentially leading to session hijacking, credential theft, or unauthorized actions performed with the victim's privileges. The vulnerability requires no authentication (PR:N) but does require user interaction (UI:R), such as clicking a crafted link or visiting a malicious page. The CVSS v3.1 base score is 5.4, reflecting medium severity with network attack vector (AV:N), low attack complexity (AC:L), and limited impact on confidentiality and integrity but no impact on availability. No patches or known exploits are currently available, indicating this is a newly disclosed issue. The vulnerability's presence in a widely used open-source IP address management and data center infrastructure management tool like NetBox makes it a concern for organizations relying on it for network asset management.

Potential Impact

The primary impact of CVE-2024-40727 is on confidentiality and integrity, as successful exploitation allows attackers to execute malicious scripts in the context of authenticated users' browsers. This can lead to theft of session cookies, credentials, or other sensitive data accessible via the browser, as well as unauthorized actions performed on behalf of the user. While availability is not affected, the breach of trust and potential data leakage can have serious consequences, especially in environments where NetBox is used to manage critical network infrastructure. Organizations worldwide using NetBox 4.0.3 are at risk, particularly those with large user bases or those exposing the vulnerable endpoint to untrusted networks. The lack of known exploits currently reduces immediate risk, but the vulnerability could be weaponized once details become widely known.

Mitigation Recommendations

1. Apply any official patches or updates from NetBox maintainers as soon as they become available. 2. Until a patch is released, implement strict input validation and output encoding on the Name parameter at /dcim/console-server-ports/add/ to neutralize malicious payloads. 3. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts in browsers. 4. Limit access to the vulnerable endpoint to trusted users and networks, using network segmentation and access controls. 5. Educate users about the risks of clicking untrusted links or visiting suspicious pages, as exploitation requires user interaction. 6. Monitor logs for unusual activity or attempts to inject scripts via the Name parameter. 7. Consider deploying web application firewalls (WAFs) with rules to detect and block XSS payloads targeting this endpoint. 8. Review and harden overall web application security practices to reduce the attack surface.

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

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

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

Last updated: 4/12/2026, 3:40:37 PM

Views: 12

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