{"answers":{"affected":"5 open source packages ship an affected version, including nautobot. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-34707 in the wild and no public exploit code.","fix":"Upgrade nautobot to a fixed version for your release line: 1.6.22 or 2.2.4.","what":"CVE-2024-34707 is a high-severity cross-site scripting vulnerability in nautobot, published on 13 May 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-34707 and fix it if it is affected.\n\nWhat it is: CVE-2024-34707 is a high-severity cross-site scripting vulnerability in nautobot, published on 13 May 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-34707 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- nautobot (PyPI): affected all versions; fixed in 1.6.22, 2.2.4\n- nautobot (PyPI): affected all versions; fixed in 1.6.22\n- nautobot (PyPI): affected all versions; fixed in 1.6.22\n- nautobot (PyPI): affected from 2.0.0; fixed in 2.2.4\n- nautobot (PyPI): affected from 2.0.0; fixed in 2.2.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-34707/ (Markdown: https://insights.sbomify.com/CVE-2024-34707/index.md)","id":"CVE-2024-34707","markdown":"https://insights.sbomify.com/CVE-2024-34707/index.md","name":"CVE-2024-34707","record":{"aliases":["GHSA-r2hr-4v48-fjv3","PYSEC-2026-1688"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Network automation platform","requires_auth":"high_privilege","summary":"An admin can inject arbitrary HTML into Nautobot banners, enabling stored XSS attacks against other users.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"nautobot","vendor":"networktocode"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Nautobot's BANNER_* configuration can be used to inject arbitrary HTML content into Nautobot pages","id":"CVE-2024-34707","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":5,"n_references":5,"next":{"headline":"Directus allows redacted data extraction on the API through \"alias\"","id":"CVE-2024-34708"},"packages":[{"ecosystem":"PyPI","fixed":["1.6.22","2.2.4"],"introduced":["0","2.0.0"],"last_affected":[],"package":"nautobot","purl":"pkg:pypi/nautobot","source":"PYSEC-2026-1688"},{"ecosystem":"PyPI","fixed":["1.6.22"],"introduced":["0"],"last_affected":[],"package":"nautobot","purl":null,"source":"GHSA-r2hr-4v48-fjv3"},{"ecosystem":"PyPI","fixed":["1.6.22"],"introduced":["0"],"last_affected":[],"package":"nautobot","purl":"pkg:pypi/nautobot","source":"GHSA-r2hr-4v48-fjv3"},{"ecosystem":"PyPI","fixed":["2.2.4"],"introduced":["2.0.0"],"last_affected":[],"package":"nautobot","purl":null,"source":"GHSA-r2hr-4v48-fjv3"},{"ecosystem":"PyPI","fixed":["2.2.4"],"introduced":["2.0.0"],"last_affected":[],"package":"nautobot","purl":"pkg:pypi/nautobot","source":"GHSA-r2hr-4v48-fjv3"}],"prev":{"headline":"@valtimo/components exposes access token to form.io","id":"CVE-2024-34706"},"products":["nautobot"],"published":"2024-05-13","related":[{"cvss_score":8.5,"headline":"Nautobot: Webhook definitions could be used for server-side request forgery (SSRF)","id":"CVE-2026-44797","kev_date_added":null,"published":"2026-05-28"},{"cvss_score":7.5,"headline":"Reflected Cross-site Scripting potential in all object list views in Nautobot","id":"CVE-2024-32979","kev_date_added":null,"published":"2024-05-01"},{"cvss_score":7.5,"headline":"Remote code execution in Jinja2 template rendering in Nautobot","id":"CVE-2023-25657","kev_date_added":null,"published":"2023-02-21"},{"cvss_score":7.1,"headline":"Nautobot: GitRepository.current_head field should not be writable through REST API","id":"CVE-2026-44798","kev_date_added":null,"published":"2026-05-28"},{"cvss_score":7.1,"headline":"Nautobot has XSS potential in rendered Markdown fields","id":"CVE-2024-23345","kev_date_added":null,"published":"2024-01-22"},{"cvss_score":7.1,"headline":"nautobot has XSS potential in custom links, job buttons, and computed fields","id":"CVE-2023-48705","kev_date_added":null,"published":"2023-11-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["nautobot"]},"summary":"An admin can inject arbitrary HTML into Nautobot banners, enabling stored XSS attacks against other users.","url":"https://insights.sbomify.com/CVE-2024-34707/"}