XSS Vulnerability in Markdown Editor - inventree
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.