# CVE-2023-48705: Cross-site Scripting potential in custom links, job buttons, and computed fields

Source: https://junglewise.ai/threats/cve-2023-48705-cross-site-scripting-potential-in-custom-links-job-buttons-and  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-11-22  
License: CC BY 4.0 with a link back

CVE-2023-48705 · Severity: low · CVSS 3.1 · Published 2023-11-22

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.

Technologies: [nautobot (PyPI)](https://junglewise.ai/threats/technologies/nautobot). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2023-48705 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-48705 being exploited in the wild.

**How severe is CVE-2023-48705?** Low severity, with a CVSS score of 3.1, published 22 November 2023.

**Which products and versions are affected?** nautobot (PyPI) ECOSYSTEM:introduced=0,fixed=1.6.6, GIT:introduced=0,fixed=362850f5a94689a4c75e3188bf6de826c3b012b2,fixed=54abe23331b6c3d0d82bf1b028c679b1d200920d|ECOSYSTEM:introduced=2.0.0,fixed=2.0.5,introduced=0,fixed=1.6.6.

**Is there a fix for CVE-2023-48705?** Yes. nautobot (PyPI): upgrade to 1.6.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-48705?** Check whether you run nautobot (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- nautobot (PyPI): upgrade to 1.6.6 or later

  ```sh
  pip install "nautobot>=1.6.6"
  ```


## Affected products

- nautobot (PyPI) ECOSYSTEM:introduced=0,fixed=1.6.6, GIT:introduced=0,fixed=362850f5a94689a4c75e3188bf6de826c3b012b2,fixed=54abe23331b6c3d0d82bf1b028c679b1d200920d|ECOSYSTEM:introduced=2.0.0,fixed=2.0.5,introduced=0,fixed=1.6.6

## Identifiers

- CVE-2023-48705
- GHSA-cf9f-wmhp-v4pr
- PYSEC-2023-285

## Related threats

- [Nautobot authorization bypass in approval workflow REST API](https://junglewise.ai/threats/cve-2026-83805-nautobot-authorization-bypass-in-approval-workflow-rest-api)
- [Nautobot stored cross-site scripting in form help text](https://junglewise.ai/threats/cve-2026-83801-nautobot-stored-cross-site-scripting-in-form-help-text)
- [PYSEC-2026-1689 - Nautobot may allows uploaded media files to be accessible without authentication](https://junglewise.ai/threats/cve-2025-49143-nautobot-may-allows-uploaded-media-files-to-be-accessible-without)
- [PYSEC-2026-1688 - Nautobot's BANNER_* configuration can be used to inject arbitrary HTML content into Nautobot pages](https://junglewise.ai/threats/cve-2024-34707-nautobot-s-banner-configuration-can-be-used-to-inject-arbitrary)
- [PYSEC-2026-1686 - nautobot has reflected Cross-site Scripting potential in all object list views](https://junglewise.ai/threats/cve-2024-32979-nautobot-has-reflected-cross-site-scripting-potential-in-all)
