{"id":"CVE-2024-34707","aliases":["CVE-2024-34707","GHSA-r2hr-4v48-fjv3","PYSEC-2026-1688"],"related":[],"kind":"vulnerability","state":"published","title":"Nautobot's BANNER_* configuration can be used to inject arbitrary HTML content into Nautobot pages","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA 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).\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nPatches will be released as part of Nautobot 1.6.22 and 2.2.4.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nAs [described in the Nautobot documentation](https://docs.nautobot.com/projects/core/en/stable/user-guide/administration/configuration/optional-settings/#administratively-configurable-settings), 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:\n\n```python\nBANNER_LOGIN = \" \"\nBANNER_TOP = \" \"\nBANNER_BOTTOM = \" \"\n```\n\nor 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:\n\n```shell\nNAUTOBOT_BANNER_LOGIN=\" \"\nNAUTOBOT_BANNER_TOP=\" \"\nNAUTOBOT_BANNER_BOTTOM=\" \"\n```\n\nLimiting 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.\n\n\n### References\n\n- https://github.com/nautobot/nautobot/pull/5697\n- https://github.com/nautobot/nautobot/pull/5698","format":"markdown","source":"ghsa"},{"lang":"es","text":"Nautobot es una plataforma de automatización de redes y fuente de verdad de red. Un usuario de Nautobot con privilegios de administrador puede modificar los ajustes de configuración `BANNER_TOP`, `BANNER_BOTTOM` y `BANNER_LOGIN` a través del endpoint `/admin/constance/config/`. Normalmente, estas configuraciones se usan para proporcionar texto de banner personalizado en la parte superior e inferior de todas las páginas web de Nautobot (o específicamente en la página de inicio de sesión en el caso de `BANNER_LOGIN`), pero se informó que un usuario administrador puede hacer uso de estas configuraciones para inyectar HTML arbitrario, exponiendo potencialmente a los usuarios de Nautobot a problemas de seguridad como Cross Site Scripting (XSS almacenados). La vulnerabilidad está solucionada en Nautobot 1.6.22 y 2.2.4.","source":"nvd"}],"published":"2024-05-13T19:22:41.202Z","modified":"2026-09-10T03:50:14.214Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:L","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:L","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:L","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:L","score":7.5,"rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.6.22","status":"affected"},{"version":">= 2.0.0, < 2.2.4","status":"affected"}],"vendor":"nautobot","product":"nautobot","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.22"}],"ecosystem":"PyPI","package":"nautobot","purl":"pkg:pypi/nautobot","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.2.4"}],"ecosystem":"PyPI","package":"nautobot","purl":"pkg:pypi/nautobot","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.6.22"},{"status":"affected","introduced":"2.0.0","fixed":"2.2.4"}],"vendor":"networktocode","product":"nautobot","cpe":"cpe:2.3:a:networktocode:nautobot:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.22"},{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.2.4"}],"ecosystem":"PyPI","package":"nautobot","purl":"pkg:pypi/nautobot","source":"pysec"}],"references":[{"url":"https://github.com/nautobot/nautobot/security/advisories/GHSA-r2hr-4v48-fjv3","tags":["patch","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nautobot/nautobot/pull/5697","tags":["exploit","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nautobot/nautobot/pull/5698","tags":["exploit","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nautobot/nautobot/commit/4f0a66bd6307bfe0e0acb899233e0d4ad516f51c","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nautobot/nautobot/commit/f640aedc69c848d3d1be57f0300fc40033ff6423","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34707","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/nautobot/nautobot","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/nautobot","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-r2hr-4v48-fjv3","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-15T15:20:33.233Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-34707","url":"https://www.cve.org/CVERecord?id=CVE-2024-34707","licence":"CVE Terms of Use","modified":"2024-08-02T02:59:22.584Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r2hr-4v48-fjv3","url":"https://github.com/advisories/GHSA-r2hr-4v48-fjv3","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:14.214Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-34707","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34707","licence":"Public domain","modified":"2026-06-17T07:33:54.840Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1688","url":"https://osv.dev/vulnerability/PYSEC-2026-1688","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:07.181Z"}],"updatedAt":"2026-11-25T22:58:40.191Z","epss":{"score":0.00649,"percentile":0.45823,"date":"2026-11-30T12:00:22.000Z"}}