Skip to main content
VulnerabilityPublished Updated

CVE-2024-40728: netbox · A Cross-site Scripting (XSS)

Affects netboxSource CVE Database V5

0

Not known to be exploited · CVSS 7.1 High.

Data as of 26 Oct 2026, 12:29 UTC

CVSS 3.1 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.
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:L

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
GitHubnetbox/netboxpkg:github/netbox/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-40728, organizations should implement the following specific measures: 1) Apply input validation on the Name parameter to reject or sanitize any HTML or script content before processing. 2) Employ context-sensitive output encoding/escaping on all user-supplied data rendered in the web interface to prevent script execution. 3) Restrict access to the /dcim/console-server-ports/{id}/edit/ endpoint to trusted users and networks using network segmentation, VPNs, or access control lists. 4) Enable Content Security Policy (CSP) headers to limit the execution of unauthorized scripts in the browser. 5) Monitor web server and application logs for suspicious input patterns or repeated attempts to inject scripts. 6) Educate users and administrators about the risks of clicking on untrusted links or payloads. 7) Stay alert for official patches or updates from netbox maintainers and apply them promptly once available. 8) Consider deploying Web Application Firewalls (WAFs) with rules to detect and block XSS payloads targeting this endpoint. These targeted actions go beyond generic advice and address the specific attack vector and environment.

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/{id}/edit/.

References

Community reviews

Loading reviews…