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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 46% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-05-13T19:22:41.202Z
- Modified: 2026-09-10T03:50:14.214Z
- Also known as: GHSA-r2hr-4v48-fjv3, PYSEC-2026-1688
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nautobot nautobot: < 1.6.22; >= 2.0.0, < 2.2.4
- nautobot (PyPI): before 1.6.22; from 2.0.0 before 2.2.4
- networktocode nautobot: before 1.6.22; from 2.0.0 before 2.2.4

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:L`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:L`
- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:L`

## References

- <https://github.com/nautobot/nautobot/pull/5697> (exploit, patch, web)
- <https://github.com/nautobot/nautobot/pull/5698> (exploit, patch, web)
- <https://github.com/nautobot/nautobot/security/advisories/GHSA-r2hr-4v48-fjv3> (patch, vendor-advisory, web)
- <https://github.com/nautobot/nautobot/commit/4f0a66bd6307bfe0e0acb899233e0d4ad516f51c> (patch, web)
- <https://github.com/nautobot/nautobot/commit/f640aedc69c848d3d1be57f0300fc40033ff6423> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-34707> (advisory)
- <https://github.com/nautobot/nautobot> (package)
- <https://pypi.org/project/nautobot> (package)
- <https://github.com/advisories/GHSA-r2hr-4v48-fjv3> (advisory)

## Sources

- CVE List: [CVE-2024-34707](https://www.cve.org/CVERecord?id=CVE-2024-34707), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-r2hr-4v48-fjv3](https://github.com/advisories/GHSA-r2hr-4v48-fjv3), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-34707](https://nvd.nist.gov/vuln/detail/CVE-2024-34707), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1688](https://osv.dev/vulnerability/PYSEC-2026-1688), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-34707 · Whole record: https://cve.day/CVE-2024-34707.json · Rebuilt by cve.day 2026-11-25T22:58:40.191Z
