CVE-2024-34707

CVE-2024-34707 is a high-severity cross-site scripting (XSS) vulnerability in nautobot (pip), affecting versions < 1.6.22. It is fixed in 1.6.22, 2.2.4.

Summary

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

As described in the Nautobot documentation, these settings are only configurable through the admin UI of Nautobot if they are not explicitly set to some non-empty value in the nautobot_config.py or equivalent Nautobot configuration file. Therefore, adding the following configuration to said file completely mitigates this vulnerability in both Nautobot 1.x and 2.x:

BANNER_LOGIN = " "
BANNER_TOP = " "
BANNER_BOTTOM = " "

or alternately (Nautobot 2.x only), if those variables are not defined explicitly in your configuration file, setting the following environment variables for the Nautobot user account serves the same purpose:

NAUTOBOT_BANNER_LOGIN=" "
NAUTOBOT_BANNER_TOP=" "
NAUTOBOT_BANNER_BOTTOM=" "

Limiting all users who do not need elevated privileges to non-admin access (is_superuser: False and is_staff: False) is a partial mitigation as well.

References

Impact

A Nautobot user with admin privileges can modify the BANNER_TOP, BANNER_BOTTOM, and BANNER_LOGIN configuration settings via the /admin/constance/config/ endpoint. Normally these settings are used to provide custom banner text at the top and bottom of all Nautobot web pages (or specifically on the login page in the case of BANNER_LOGIN) but it was reported that an admin user can make use of these settings to inject arbitrary HTML, potentially exposing Nautobot users to security issues such as cross-site scripting (stored XSS).

Untrusted input is rendered as active markup in a victim's browser, which can run script in their session. Typical impact: session or credential theft, and actions taken as the user.

CVE-2024-34707 has a CVSS score of 7.5 (High). The vector is network-reachable, high privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (1.6.22, 2.2.4); upgrading removes the vulnerable code path.

Affected versions

nautobot (< 1.6.22) nautobot (>= 2.0.0, < 2.2.4)

Security releases

nautobot → 1.6.22 (pip) nautobot → 2.2.4 (pip)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

Has the problem been patched? What versions should users upgrade to?

Patches will be released as part of Nautobot 1.6.22 and 2.2.4.

Frequently Asked Questions

  1. What is CVE-2024-34707? CVE-2024-34707 is a high-severity cross-site scripting (XSS) vulnerability in nautobot (pip), affecting versions < 1.6.22. It is fixed in 1.6.22, 2.2.4. Untrusted input is rendered as active markup in a victim's browser, which can run script in their session.
  2. How severe is CVE-2024-34707? CVE-2024-34707 has a CVSS score of 7.5 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of nautobot are affected by CVE-2024-34707? nautobot (pip) versions < 1.6.22 is affected.
  4. Is there a fix for CVE-2024-34707? Yes. CVE-2024-34707 is fixed in 1.6.22, 2.2.4. Upgrade to this version or later.
  5. Is CVE-2024-34707 exploitable, and should I be worried? Whether CVE-2024-34707 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2024-34707 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2024-34707?
    • Upgrade nautobot to 1.6.22 or later
    • Upgrade nautobot to 2.2.4 or later

Other vulnerabilities in nautobot

CVE-2026-44798CVE-2026-44797CVE-2026-44796CVE-2026-44794CVE-2026-34203

Stop the waste.
Protect your environment with Kodem.