CVE-2024-40729: A cross-site scripting (XSS) vulnerability in netbox v4.0.3 allows attackers to execute arbitrary web scripts
CVE-2024-40729 is a medium-severity flaw (CVSS 6.1) affecting netbox. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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/interfaces/add/.
Why this priority
- Public exploit reference
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 6.1 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.4% (top 66%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2024-07-09 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-40729?
netbox: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2024-40729 being exploited?
CVE-2024-40729 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-40729 affect?
CVE-2024-40729 affects netbox. Severity is medium (CVSS 6.1). 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/interfaces/add/.
How urgent is CVE-2024-40729?
Priority 35/100. Public exploit reference
Related CVEs
- CVE-2025-69848 MEDIUM 5.4 UPGRADE NetBox is an open-source infrastructure resource modeling and IP address management platform
- CVE-2025-57543 MEDIUM 6.1 DOWNGRADE Cross Site scripting vulnerability (XSS) in NetBox 4.3.5 "comment" field on object forms
- CVE-2024-56918 MEDIUM 6.1 UPGRADE In Netbox Community 4.1.7, the login page is vulnerable to cross-site scripting (XSS), which allows a privileg
- CVE-2024-56917 HIGH 7.1 UPGRADE Netbox Community 4.1.7 is vulnerable to Cross Site Scripting (XSS) via the maintenance banner` in maintenance
- CVE-2024-56916 MEDIUM 6.1 UPGRADE In Netbox Community 4.1.7, once authenticated, Configuration History > Add`is vulnerable to cross-site scripti