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.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

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:

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

inventree (< 0.7.3)

Security releases

inventree → 0.7.3 (pip)

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:

  • Enable data sanitization for the EasyMDE renderer - #3205
  • Enforce cleaning of all data uploaded to the database via the API - #3204 (This will be ready for the 0.8.0 release)

Frequently Asked Questions

  1. 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.
  2. Which versions of inventree are affected by GHSA-85Q9-7467-R53Q? inventree (pip) versions < 0.7.3 is affected.
  3. 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.
  4. 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
  5. 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.
  6. How do I fix GHSA-85Q9-7467-R53Q? Upgrade inventree to 0.7.3 or later.

Other vulnerabilities in inventree

Stop the waste.
Protect your environment with Kodem.