CVE-2024-40740: netbox · A Cross-site Scripting (XSS)
Affects netboxSource CVE Database V5
Not known to be exploited · CVSS 7.1 High.
Data as of 26 Oct 2026, 11:07 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 33% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 9 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubnetbox/netboxpkg:github/netbox/netboxOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-40740, organizations should implement the following specific measures: 1) Immediately restrict access to the NetBox instance to trusted networks and users, employing network segmentation and firewall rules to limit exposure. 2) Enforce strict input validation and sanitization on the Name parameter at the application or web server level using web application firewalls (WAFs) with custom rules to detect and block XSS payloads targeting the vulnerable endpoint. 3) Disable or restrict editing capabilities on the /dcim/power-feeds/{id}/edit/ page to only highly trusted administrators until a patch is available. 4) Monitor web server and application logs for unusual input patterns or repeated attempts to inject scripts. 5) Educate users to be cautious of suspicious links or inputs within the NetBox interface. 6) Stay updated with vendor announcements and apply official patches promptly once released. 7) Consider deploying Content Security Policy (CSP) headers to reduce the impact of potential XSS exploitation by restricting the execution of unauthorized scripts. 8) Conduct internal penetration testing focused on this vulnerability to assess exposure and effectiveness of mitigations.
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-feeds/{id}/edit/.