CVE-2026-33531 InvenTree has Path Traversal In Report Templates

Medium 4.9 Published Updated

A staff-level user can read arbitrary files from the server filesystem via crafted report template tags in InvenTree.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-33531?

CVE-2026-33531 is a medium-severity path traversal vulnerability in InvenTree, published on 26 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

InvenTree is an Open Source Inventory Management System. Prior to version 1.2.6, a path traversal vulnerability in the report template engine allows a staff-level user to read arbitrary files from the server filesystem via crafted template tags. Affected functions: `encode_svg_image()`, `asset()`, and `uploaded_image()` in `src/backend/InvenTree/report/templatetags/report.py`. This requires staff access (to upload / edit templates with maliciously crafted tags). If the InvenTree installation is configured with high access privileges on the host system, this path traversal may allow file access outside of the InvenTree source directory. This issue is patched in version 1.2.6, and 1.3.0 (or above). Users should update to the patched versions. No known workarounds are available.

Weakness: CWE-89

Which versions are affected by CVE-2026-33531?

It affects 1 product.

Products include Inventree Project Inventree.

How do I fix CVE-2026-33531?

No fix has been published for CVE-2026-33531 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-33531 being exploited?

There is no known exploitation of CVE-2026-33531 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-rhc5-7c3r-c769.

Is CVE-2026-33531 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free