Skip to main content
VulnerabilityPublished Updated

CVE-2024-40734: Vuln-Netbox · A Cross-site Scripting (XSS)

Affects Vuln-NetboxSource CVE Database V5

0

Not known to be exploited · CVSS 6.1 Medium.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 34% 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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 9 Jul 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
GitHubminhquan202/Vuln-Netboxpkg:github/minhquan202/Vuln-NetboxOther threatsAffected
  • =4.0.3
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-40734, organizations should implement the following specific measures: 1) Apply any available official patches or updates from the NetBox project as soon as they are released. 2) Until a patch is available, implement strict input validation and sanitization on the Name parameter at the /dcim/front-ports/add/ endpoint to reject or neutralize potentially malicious scripts. 3) Employ output encoding/escaping techniques on all user-supplied data rendered in the web interface to prevent script execution. 4) Use Content Security Policy (CSP) headers to restrict the execution of inline scripts and reduce the impact of XSS attacks. 5) Limit access to the NetBox web interface to trusted networks or VPNs to reduce exposure. 6) Educate users about the risks of clicking untrusted links and encourage the use of multi-factor authentication to reduce session hijacking risks. 7) Monitor web server logs and application logs for suspicious input patterns or repeated attempts to exploit the vulnerability. 8) Conduct regular security assessments and penetration testing focused on web application vulnerabilities, including XSS. These targeted steps go beyond generic advice by focusing on the specific vulnerable parameter and endpoint, leveraging layered defenses, and emphasizing user awareness.

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/front-ports/add/.

References

Community reviews

Loading reviews…