CVE-2024-47610 Stored Cross-site Scripting Vulnerability in Markdown Editor

High 7.3 Published Updated

A registered user can inject malicious JavaScript into markdown notes, which executes in the browsers of other logged-in users viewing the same page.

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
None listed

What is CVE-2024-47610?

CVE-2024-47610 is a high-severity cross-site scripting vulnerability in InvenTree, published on 7 Oct 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

InvenTree is an Open Source Inventory Management System. In affected versions of InvenTree it is possible for a registered user to store javascript in markdown notes fields, which are then displayed to other logged in users who visit the same page and executed. The vulnerability has been addressed as follows: 1. HTML sanitization has been enabled in the front-end markdown rendering library - `easymde`. 2. Stored markdown is also validated on the backend, to ensure that malicious markdown is not stored in the database. These changes are available in release versions 0.16.5 and later. All users are advised to upgrade. There are no workarounds, an update is required to get the new validation functions.

Weakness: CWE-79

Which versions are affected by CVE-2024-47610?

It affects 1 product.

Products include Inventree Project Inventree.

How do I fix CVE-2024-47610?

No fix has been published for CVE-2024-47610 yet. Limit exposure of the affected software until one is available.

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-47610 being exploited?

There is no known exploitation of CVE-2024-47610 in the wild and no public exploit code.

Sources

Also known as GHSA-wp3m-jhgv-rhqr.

Is CVE-2024-47610 in your software?

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

Check your SBOMs for free