Summary
XSS Vulnerability in Markdown Editor
Patches
- The issue is addressed in the 0.8.0 release
- This fix was back-ported to the 0.7.x branch, applied to the 0.7.3 release
Workarounds
There is no workaround for this issue without upgrading InvenTree to the specified version.
References
For more information
If you have any questions or comments about this advisory:
- Open an issue in github
- Email us at [email protected]
Impact
InvenTree uses EasyMDE for displaying markdown text in various places (e.g. for the various "notes" fields associated with various models).
By default, EasyMDE does not sanitize input data, and it is possible for malicious code to be injected into the markdown editor, and executed in the users browser.
Note: This malicious data must be first uploaded to the database by an authorized user, so the risk here is limited to trusted users
Untrusted input is rendered as active markup in a victim's browser, which can run script in their session. Typical impact: session or credential theft, and actions taken as the user.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Already deployed Kodem?
See it in your environmentNew to Kodem? Get a demo →Remediation advice
The solution here is two-fold:
Frequently Asked Questions
- What is GHSA-85Q9-7467-R53Q? GHSA-85Q9-7467-R53Q is a high-severity cross-site scripting (XSS) vulnerability in inventree (pip), affecting versions < 0.7.3. It is fixed in 0.7.3. Untrusted input is rendered as active markup in a victim's browser, which can run script in their session.
- Which versions of inventree are affected by GHSA-85Q9-7467-R53Q? inventree (pip) versions < 0.7.3 is affected.
- Is there a fix for GHSA-85Q9-7467-R53Q? Yes. GHSA-85Q9-7467-R53Q is fixed in 0.7.3. Upgrade to this version or later.
- Is GHSA-85Q9-7467-R53Q exploitable, and should I be worried? Whether GHSA-85Q9-7467-R53Q is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether GHSA-85Q9-7467-R53Q is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix GHSA-85Q9-7467-R53Q? Upgrade
inventreeto 0.7.3 or later.