{"answers":{"affected":"5 open source packages ship an affected version, including nautobot. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-48705 in the wild and no public exploit code.","fix":"Upgrade nautobot to a fixed version for your release line: 1.6.6 or 2.0.5.","what":"CVE-2023-48705 is a high-severity cross-site scripting vulnerability in nautobot, published on 22 Nov 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-48705 and fix it if it is affected.\n\nWhat it is: CVE-2023-48705 is a high-severity cross-site scripting vulnerability in nautobot, published on 22 Nov 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-48705 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- nautobot (PyPI): affected all versions; fixed in 1.6.6\n- nautobot (PyPI): affected all versions; fixed in 1.6.6\n- nautobot (PyPI): affected from 2.0.0; fixed in 2.0.5, 1.6.6\n- nautobot (PyPI): affected from 2.0.0; fixed in 2.0.5\n- nautobot (PyPI): affected from 2.0.0; fixed in 2.0.5\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-2023-48705/ (Markdown: https://insights.sbomify.com/CVE-2023-48705/index.md)","id":"CVE-2023-48705","markdown":"https://insights.sbomify.com/CVE-2023-48705/index.md","name":"CVE-2023-48705","record":{"aliases":["GHSA-cf9f-wmhp-v4pr","PYSEC-2023-285"],"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":"low_privilege","summary":"Attackers with edit permissions can inject malicious scripts into custom links or fields, leading to code execution or account takeover in Nautobot.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"nautobot","vendor":"networktocode"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/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 built as a web application All users of Nautobot versions earlier than 1.6.6 or 2.0.5 are potentially affected by a cross-site scripting vulnerability. Due to incorrect usage of Django's `mark_safe()` API when rendering certain types of user-authored content; including custom links, job buttons, and computed fields; it is possible that users with permission to create or edit these types of content could craft a malicious payload (such as JavaScript code) that would be executed when rendering pages containing this content. The maintainers have fixed the incorrect uses of `mark_safe()` (generally by replacing them with appropriate use of `format_html()` instead) to prevent such malicious data from being executed. Users on Nautobot 1.6.x LTM should upgrade to v1.6.6 and users on Nautobot 2.0.x should upgrade to v2.0.5. Appropriate object permissions can and should be applied to restrict which users are permitted to create or edit the aforementioned types of user-authored content. Other than that, there is no direct workaround available.","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 has XSS potential in custom links, job buttons, and computed fields","id":"CVE-2023-48705","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2023"},"n_packages":5,"n_references":7,"next":{"headline":"Vim has heap-use-after-free at /src/charset.c:1770:12 in skipwhite","id":"CVE-2023-48706"},"packages":[{"ecosystem":"PyPI","fixed":["1.6.6"],"introduced":["0"],"last_affected":[],"package":"nautobot","purl":null,"source":"GHSA-cf9f-wmhp-v4pr"},{"ecosystem":"PyPI","fixed":["1.6.6"],"introduced":["0"],"last_affected":[],"package":"nautobot","purl":"pkg:pypi/nautobot","source":"GHSA-cf9f-wmhp-v4pr"},{"ecosystem":"PyPI","fixed":["2.0.5","1.6.6"],"introduced":["2.0.0","0"],"last_affected":[],"package":"nautobot","purl":"pkg:pypi/nautobot","source":"PYSEC-2023-285"},{"ecosystem":"PyPI","fixed":["2.0.5"],"introduced":["2.0.0"],"last_affected":[],"package":"nautobot","purl":null,"source":"GHSA-cf9f-wmhp-v4pr"},{"ecosystem":"PyPI","fixed":["2.0.5"],"introduced":["2.0.0"],"last_affected":[],"package":"nautobot","purl":"pkg:pypi/nautobot","source":"GHSA-cf9f-wmhp-v4pr"}],"prev":{"headline":"Unauthenticated heap buffer overflow in Gorrila codec decompression","id":"CVE-2023-48704"},"products":["nautobot"],"published":"2023-11-22","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":"Nautobot's BANNER_* configuration can be used to inject arbitrary HTML content into Nautobot pages","id":"CVE-2024-34707","kev_date_added":null,"published":"2024-05-13"},{"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"}],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["nautobot"]},"summary":"Attackers with edit permissions can inject malicious scripts into custom links or fields, leading to code execution or account takeover in Nautobot.","url":"https://insights.sbomify.com/CVE-2023-48705/"}