Skip to content
Heist/ feed
Back to feed
Medium

InvenTree has Path Traversal In Report Templates

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-33531
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 03:47 UTC · Revision 1

Source evidence

InvenTree has Path Traversal In Report Templates

core-osv · Original source

Published 26 Mar 2026, 19:40 UTC

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.

osv:CVE-2026-33531
Complete source record
{
  "id": "c9d81af60aef54f2dacd9628686ba27621469620aa62fd6495f2830d82211363",
  "url": "https://osv.dev/vulnerability/CVE-2026-33531",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "InvenTree has Path Traversal In Report Templates",
    "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 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.",
    "evidence": "osv:CVE-2026-33531",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-33531",
      "aliases": [
        "CVE-2026-33531",
        "GHSA-rhc5-7c3r-c769"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/inventree/inventree",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2bc9e0f0d24614ea8d74fd7232847c6dedfef6a9"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.2.6"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:inventree_project:inventree:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.2.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.2.5",
            "1.2.4",
            "1.2.3",
            "1.2.2",
            "1.2.1",
            "1.2.0",
            "0.13.0",
            "0.12.0",
            "0.11.0",
            "0.10.0",
            "0.9.0",
            "0.8.0",
            "v0.7.0",
            "0.4.0",
            "0.3.0",
            "0.2.4",
            "0.2.3",
            "0.2.2",
            "0.2.1",
            "0.2.0",
            "0.1.8",
            "0.1.7",
            "0.1.6",
            "0.1.5",
            "0.1.4",
            "v0.1.3",
            "0.1.2",
            "0.1.1",
            "0.1.0",
            "0.0.11",
            "0.0.12",
            "v0.0.11",
            "0.0.10",
            "0.0.9",
            "0.0.8",
            "v0.0.7",
            "0.0.6",
            "v0.0.5",
            "0.0.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-33531.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.088088008Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33531.json",
        "https://github.com/inventree/InvenTree/security/advisories/GHSA-rhc5-7c3r-c769",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-33531",
        "https://github.com/inventree/InvenTree/pull/11579"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33531.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-33531",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509959,
  "published_at": "2026-03-26T19:40:50.787+00:00"
}