{"cve":"CVE-2023-48705","nvd":{"published":"2023-11-22T16:15:09.627","modified":"2026-06-17T06:34:48.647","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4},"cwes":["CWE-79"],"references":["https://docs.djangoproject.com/en/3.2/ref/utils/#django.utils.html.format_html","https://docs.djangoproject.com/en/3.2/ref/utils/#django.utils.safestring.mark_safe","https://github.com/nautobot/nautobot/commit/362850f5a94689a4c75e3188bf6de826c3b012b2","https://github.com/nautobot/nautobot/commit/54abe23331b6c3d0d82bf1b028c679b1d200920d","https://github.com/nautobot/nautobot/pull/4832"],"products":["networktocode:nautobot"],"source":"nvd","synced_at":"2026-10-19T21:42:07.670898610+00:00"},"epss":{"cve":"CVE-2023-48705","score":0.00543,"percentile":0.45637,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-cf9f-wmhp-v4pr","url":"https://osv.dev/vulnerability/GHSA-cf9f-wmhp-v4pr","summary":"Cross-site Scripting potential in custom links, job buttons, and computed fields","modified":"2024-11-22T18:28:50.805663Z","packages":[{"ecosystem":"PyPI","name":"nautobot","purl":"pkg:pypi/nautobot","ranges":["<1.6.6"],"fixed":["1.6.6"]},{"ecosystem":"PyPI","name":"nautobot","purl":"pkg:pypi/nautobot","ranges":[">=2.0.0 <2.0.5"],"fixed":["2.0.5"]}]},{"id":"PYSEC-2023-285","url":"https://osv.dev/vulnerability/PYSEC-2023-285","summary":"","modified":"2024-11-21T14:57:22.412165Z","packages":[{"ecosystem":"PyPI","name":"nautobot","purl":"pkg:pypi/nautobot","ranges":[">=2.0.0 <2.0.5","<1.6.6"],"fixed":["2.0.5","1.6.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}