---
id: CVE-2026-33531
title: InvenTree is an Open Source Inventory Management System
summary: >-
  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 templa…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-89
vendor: inventree_project
product: inventree
affected:
  - inventree < 1.2.6
patched:
  - inventree 1.2.6
published: '2026-03-26'
updated: '2026-10-07'
sourceUpdated: '2026-10-07T08:10:00.200'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-33531'
references:
  - url: 'https://github.com/inventree/InvenTree/pull/11579'
    label: security-advisories@github.com
  - url: >-
      https://github.com/inventree/InvenTree/security/advisories/GHSA-rhc5-7c3r-c769
    label: security-advisories@github.com
tags:
  - nvd
  - exploit-available
epss: 0.00377
epssPercentile: 0.29496
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/alonaki/InvenTree-Path-Traversal-CVE-2026-33531'
  checkedAt: '2026-10-07T08:20:38.253Z'
exploitAvailable: true
ingestedAt: '2026-10-07T08:20:03.906Z'
---

## Overview

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.

## Affected

- `inventree < 1.2.6`

## Remediation

Upgrade past the affected range:

- `inventree 1.2.6`
