SecurityContext

CVE-2026-35477: InvenTree - Server-Side Template Injection

  • Cve: CVE-2026-35477
  • Name: InvenTree - Server-Side Template Injection
  • Description: 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.
  • Impact: Staff users can execute arbitrary code during template rendering, potentially leading to full system compromise.
  • Remediation: Upgrade to versions 1.2.7 or 1.3.0 or later.
  • Vulnerability type: template_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker must have staff user access with settings permissions
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.9
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Epss score: 0.00269
  • Epss percentile: 0.19314
  • Assignee: [email protected]
  • Published at: 2026-04-08T20:16:24Z
  • Age in days: 230
  • Modified at: 2026-10-06T22:10:00Z
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-35477
  • Nvd status: analyzed
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-1336Improper Neutralization of Special Elements Used in a Template Engine

References

UrlSourceTags
https://github.com/inventree/InvenTree/security/advisories/GHSA-84jh-x777-8pqqnvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
inventree_project:inventree>= 1.2.3, <= 1.2.6nonvd/v1/products/inventree_project/inventree

Projects

RepositoryLink kindsIndexedUrl
inventree/InvenTreefix, security_advisoryyes/v1/repositories/inventree/InvenTree

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts