CVE-2024-23345 Nautobot has XSS potential in rendered Markdown fields

High 7.1 Published Updated

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.

PackageAffectedFixed in
nautobot PyPIAll versions1.6.10
nautobot PyPIAll versions1.6.10
nautobot PyPIFrom 2.0.02.1.2, 1.6.10
nautobot PyPIFrom 2.0.02.1.2
nautobot PyPIFrom 2.0.02.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.

Sources

Also known as GHSA-v4xv-795h-rv4h, PYSEC-2024-16.

Is CVE-2024-23345 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free