XSS Vulnerability in Markdown Editor - inventree

inventree Updated 02 Oct 2025

Summary

17/06/2022
HIGH
No i
High
Not published

GHSA-85q9-7467-r53q: XSS Vulnerability in Markdown Editor. Affects inventree versions 0.0.1 – 0.9.2. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

InvenTree is an open-source inventory management system that utilizes the EasyMDE library for displaying markdown text in various places. EasyMDE is a popular markdown editor that lacks input data sanitization by default. This vulnerability allows malicious code to be injected into the markdown editor, potentially leading to code execution in the user's browser. It is important to note that this vulnerability can only be exploited by authorized users who upload the malicious data to the database.

Vulnerability Detail

The XSS vulnerability in the Markdown Editor of InvenTree arises from the lack of data sanitization in the EasyMDE library. This allows an attacker to inject malicious code into the markdown editor, which can then be executed in the user's browser. The impact of this vulnerability can range from unauthorized access to sensitive information to complete control over the user's session. The vulnerability is classified as CWE-79 (Cross-Site Scripting).

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no workaround for this vulnerability without upgrading InvenTree to the specified version (0.8.0 or 0.7.3).

Conclusion

The XSS vulnerability in the Markdown Editor of InvenTree can be mitigated by enabling data sanitization in the EasyMDE renderer and cleaning all data uploaded to the database via the API. Upgrading to the 0.8.0 release or the 0.7.3 release of InvenTree is necessary to address this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for inventree →

Share this vulnerability

FAQ

The impact of this vulnerability can range from unauthorized access to sensitive information to complete control over the user's session.

This vulnerability can only be exploited by authorized users who upload the malicious data to the database.

Yes, the fix for this vulnerability is being implemented in the 0.8.0 release of InvenTree and will also be back-ported to the 0.7.x branch and applied to the 0.7.3 release.

No, there are no workarounds for this vulnerability without upgrading InvenTree to the specified version.

For more information, you can open an issue in the http://github.com/inventree/inventree or email the InvenTree team at security@inventree.org.

References

Related vulnerabilities

Recent vulnerabilities recorded for inventree.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback