{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-35477","published":"2026-04-08T20:16:24.487000Z","last_modified":"2026-10-06T22:10:00.247000Z","status":"Analyzed","cvss":{"version":"3.1","score":9.9,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-1336"],"cpes":[{"criteria":"cpe:2.3:a:inventree_project:inventree:*:*:*:*:*:*:*:*","part":"a","vendor":"inventree_project","product":"inventree","version_start_including":"1.2.3","version_end_including":"1.2.6"}],"cpes_truncated":false,"vendors":["inventree_project"],"products":["inventree_project/inventree"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":59,"links":{"html_es":"/es/cve/CVE-2026-35477/","html_en":"/en/cve/CVE-2026-35477/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-35477","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-35477"},"untrusted":{"vendor_name":"Inventree Project","product_name":"Inventree","desc_en":"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.","affected":[{"untrusted_vendor":"inventree","untrusted_product":"InvenTree","versions":[]}],"references":[{"url":"https://github.com/inventree/InvenTree/security/advisories/GHSA-84jh-x777-8pqq","tags":["Third Party Advisory"]}]}}