CVE-2024-40731: Vuln-Netbox · n/a
Affects Vuln-NetboxSource CVE Database V5
Not known to be exploited · CVSS 6.1 Medium.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 28% 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:NExploitation 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 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubminhquan202/Vuln-Netboxpkg:github/minhquan202/Vuln-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-40731, organizations should first check for official patches or updates from the NetBox project and apply them promptly once available. In the absence of a patch, implement strict input validation and output encoding on the Name parameter to neutralize malicious scripts. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts within the NetBox web interface. Limit access to the NetBox management interface to trusted networks and authenticated users via VPN or IP whitelisting to reduce exposure. Educate users about the risks of clicking on untrusted links and implement monitoring to detect unusual activity or attempted exploitation. Additionally, consider deploying web application firewalls (WAFs) with rules targeting XSS payloads specific to NetBox endpoints. Regularly audit and review user-generated content fields for suspicious inputs. Finally, maintain up-to-date backups and incident response plans to quickly recover from any compromise.
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/rear-ports/{id}/edit/.