CVE-2024-47610 Stored Cross-site Scripting Vulnerability in Markdown Editor
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.
Other vulnerabilities in InvenTree
- CVE-2022-2111 Unrestricted Upload of File with Dangerous Type in inventree/inventree
- CVE-2022-2112 Improper Neutralization of Formula Elements in a CSV File in inventree/inventree
- CVE-2022-2113 Cross-site Scripting (XSS) - Stored in inventree/inventree
- CVE-2026-35478 InvenTree has Arbitrary API Token Creation
- CVE-2022-3355 Cross-site Scripting (XSS) - Stored in inventree/inventree
Sources
Also known as GHSA-wp3m-jhgv-rhqr.