CVE-2023-48705
nautobot has XSS potential in custom links, job buttons, and computed fields
Check your servers for CVE-2023-48705
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-48705 affects nautobot, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:L
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality low, integrity high, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.64%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 45.5% of all scored CVEs. Scores of 28 Nov 2026.
Weakness
- CWE-79 Improper Neutralization of Input During Web Page Generation
Affected products
As the CNA lists them.
Is my server affected?
Find the installed version of nautobot and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i nautobot
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2023-48705 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2023-48705RHEL, Rocky, Alma, Fedora
rpm -q nautobot
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2023-48705Alpine
apk list --installed | grep -i nautobotWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-48705
trivy image --scanners vuln IMAGE | grep CVE-2023-48705
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/nautobot/nautobot/pull/4832 github.com
- https://github.com/nautobot/nautobot/pull/4833 github.com
- https://github.com/nautobot/nautobot/commit/362850f5a94689a4c75e3188bf6de826c3b012b2 github.com
- https://github.com/nautobot/nautobot/commit/54abe23331b6c3d0d82bf1b028c679b1d200920d github.com
- https://docs.djangoproject.com/en/3.2/ref/utils/#django.utils.html.format_html docs.djangoproject.com
- https://docs.djangoproject.com/en/3.2/ref/utils/#django.utils.safestring.mark_safe docs.djangoproject.com
Source: the record CVE-2023-48705 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse