← Vulnerability feed

Vulnerability record · CVE-2026-27629 · published 25 February 2026

CVE-2026-27629: Inventree project inventree vulnerability

Inventree Project · Inventree

InvenTree is an Open Source Inventory Management System. Prior to version 1.2.3, insecure server-side templates can be hijacked to expose secure information to the client. When generating custom batch codes, the InvenTree server makes use of a customizable jinja2 template, which can be modified by a staff user to exfiltrate sensitive information or perform code execution on the server. This issue requires access by a user with granted staff permissions, followed by a request to generate a custom batch code via the API. Once the template has been modified in a malicious manner, the API call to generate a new batch code could be made by other users, and the template code will be executed with their user context. The code has been patched to ensure that all template generation is performed within a secure sandboxed context. This issue has been addressed in version 1.2.3, and any versions from 1.3.0 onwards. Some workarounds are available. The batch code template is a configurable global setting which can be adjusted via any user with staff access. To prevent this setting from being edited, it can be overridden at a system level to a default value, preventing it from being edited. This requires system administrator access, and cannot be changed from the client side once the server is running. It is recommended that for InvenTree installations prior to 1.2.3 the `STOCK_BATCH_CODE_TEMPLATE` and `PART_NAME_FORMAT` global settings are overridden at the system level to prevent editing.

8.8 CVSS 3.1 High EPSS 0.55% · top 56.4% CWE-1336 · CWE-1336
8.8CVSS 3.1 base score
0.55%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
1References
17 Jun 2026Last modified by NVD

Description

InvenTree is an Open Source Inventory Management System. Prior to version 1.2.3, insecure server-side templates can be hijacked to expose secure information to the client. When generating custom batch codes, the InvenTree server makes use of a customizable jinja2 template, which can be modified by a staff user to exfiltrate sensitive information or perform code execution on the server. This issue requires access by a user with granted staff permissions, followed by a request to generate a custom batch code via the API. Once the template has been modified in a malicious manner, the API call to generate a new batch code could be made by other users, and the template code will be executed with their user context. The code has been patched to ensure that all template generation is performed within a secure sandboxed context. This issue has been addressed in version 1.2.3, and any versions from 1.3.0 onwards. Some workarounds are available. The batch code template is a configurable global setting which can be adjusted via any user with staff access. To prevent this setting from being edited, it can be overridden at a system level to a default value, preventing it from being edited. This requires system administrator access, and cannot be changed from the client side once the server is running. It is recommended that for InvenTree installations prior to 1.2.3 the `STOCK_BATCH_CODE_TEMPLATE` and `PART_NAME_FORMAT` global settings are overridden at the system level to prevent editing.

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-27629 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.9CVE-2026-35477Inventree project inventree vulnerabilityInvenTree 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 u…EPSS 0.36%8.8CVE-2022-2111Inventree project inventree unrestricted file upload vulnerabilityUnrestricted Upload of File with Dangerous Type in GitHub repository inventree/inventree prior to 0.7.2.EPSS 1.2%8.8CVE-2022-2112Inventree project inventree csv injection vulnerabilityImproper Neutralization of Formula Elements in a CSV File in GitHub repository inventree/inventree prior to 0.7.2.EPSS 1.3%8.1CVE-2026-35478Inventree project inventree insecure direct object reference vulnerabilityInvenTree is an Open Source Inventory Management System. From 0.16.0 to before 1.2.7, any authenticated InvenTree user can create a valid API token a…EPSS 0.43%6.5CVE-2026-33530Inventree project inventree vulnerabilityInvenTree is an Open Source Inventory Management System. Prior to version 1.2.6, certain API endpoints associated with bulk data operations can be hi…EPSS 0.34%6.5CVE-2022-2134Inventree project inventree allocation without limits vulnerabilityAllocation of Resources Without Limits or Throttling in GitHub repository inventree/inventree prior to 0.8.0.EPSS 0.86%5.7CVE-2025-49000Inventree project inventree uncontrolled resource consumption vulnerabilityInvenTree is an Open Source Inventory Management System. Prior to version 0.17.13, the skip field in the built-in `label-sheet` plugin lacks an upper…EPSS 0.33%5.4CVE-2024-47610Inventree project inventree cross-site scripting vulnerabilityInvenTree is an Open Source Inventory Management System. In affected versions of InvenTree it is possible for a registered user to store javascript i…EPSS 0.32%

Source: NIST National Vulnerability Database (record CVE-2026-27629), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.