Read the docs
TI-2026-27607 Aliases CVE-2026-35477

InvenTree has SSTI in PART_NAME_FORMAT bypasses CVE-2026-27629 fix via {% if part.pk %} sandbox escape

Priority MEDIUM 42CWE-1336Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-1336.

Summary

InvenTree is an Open Source Inventory Management System. From 1.2.3 to 1.2.6, the fix for CVE-2026-27629 upgraded the PART_NAME_FORMAT validator to use jinja2.sandbox.SandboxedEnvironment. However, the actual renderer in part/helpers.py was not updated and still uses the non-sandboxed jinja2.Environment. Additionally, the validator uses a dummy Part instance with pk=None, which allows conditional template expressions to behave differently during validation versus production rendering. A staff user with settings access can craft a template that passes validation but executes arbitrary code during rendering. This issue requires access by a user with granted staff permissions. This vulnerability is fixed in 1.2.7 and 1.3.0.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00269 19th percentileScored 2026-11-07
Fix Fixed InvenTree (inventree): 1.2.7

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
inventreeInvenTree1.2.3 to before 1.2.71.2.7Patch availableCNA
  • InvenTree Vendorinventree Affected 1.2.3 to before 1.2.7 Fixed in 1.2.7 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:inventree_project:inventree:*:*:*:*:*:*:*:*1.2.3 – 1.2.6Vulnerableinventree
  • cpe:2.3:a:inventree_project:inventree:*:*:*:*:*:*:*:* Versions 1.2.3 – 1.2.6 Vulnerable ·inventree

Remediation

  • Fix · CNA InvenTree (inventree) Fixed in 1.2.7

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-35477

References

  • TI-2022-03101 Cross-site Scripting (XSS) - Stored in inventree/inventree CVSS 3.1MEDIUM 5.4
  • TI-2022-01953 Improper Neutralization of Formula Elements in a CSV File in inventree/inventree CVSS 3.1HIGH 8.8
  • TI-2022-01952 Unrestricted Upload of File with Dangerous Type in inventree/inventree CVSS 3.1HIGH 8.8
  • TI-2026-27608 InvenTree has Arbitrary API Token Creation CVSS 3.1HIGH 8.3
  • TI-2026-22011 InvenTree Vulnerable to Server Side Template Injection (SSTI) CVSS 3.1HIGH 8.8
  • TI-2024-31890 Stored Cross-site Scripting Vulnerability in Markdown Editor CVSS 3.1HIGH 7.3
See all 14 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences