CVE-2024-23345 Nautobot has XSS potential in rendered Markdown fields
Attackers can inject malicious scripts into Markdown fields, potentially executing code or hijacking user sessions in Nautobot.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-23345?
CVE-2024-23345 is a high-severity cross-site scripting vulnerability in nautobot, published on 22 Jan 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official 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.10 or 2.1.2 are potentially impacted by a cross-site scripting vulnerability. Due to inadequate input sanitization, any user-editable fields that support Markdown rendering, including are potentially susceptible to cross-site scripting (XSS) attacks via maliciously crafted data. This issue is fixed in Nautobot versions 1.6.10 and 2.1.2.
Weakness: CWE-79
Which versions are affected by CVE-2024-23345?
5 open source packages ship an affected version, including nautobot. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
nautobot PyPI | All versions | 1.6.10 |
nautobot PyPI | All versions | 1.6.10 |
nautobot PyPI | From 2.0.0 | 2.1.2, 1.6.10 |
nautobot PyPI | From 2.0.0 | 2.1.2 |
nautobot PyPI | From 2.0.0 | 2.1.2 |
Products include Networktocode Nautobot.
How do I fix CVE-2024-23345?
Upgrade nautobot to a fixed version for your release line: 1.6.10 or 2.1.2.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-23345 being exploited?
There is no known exploitation of CVE-2024-23345 in the wild and no public exploit code.
Other vulnerabilities in nautobot
- CVE-2026-44797 Nautobot: Webhook definitions could be used for server-side request forgery (SSRF)
- CVE-2024-34707 Nautobot's BANNER_* configuration can be used to inject arbitrary HTML content into Nautobot pages
- CVE-2024-32979 Reflected Cross-site Scripting potential in all object list views in Nautobot
- CVE-2023-25657 Remote code execution in Jinja2 template rendering in Nautobot
- CVE-2026-44798 Nautobot: GitRepository.current_head field should not be writable through REST API
Sources
Also known as GHSA-v4xv-795h-rv4h, PYSEC-2024-16.