Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege InvenTree user
-
DeliverySend POST request to /api/user/tokens/
-
ExploitSpecify target admin user ID in request
-
ExecutionReceive valid API token for admin account
-
ImpactExecute privileged API actions as administrator
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
|
| Exploitation Conditions | Requires authenticated access to InvenTree 0.16.0–1.2.6. Any authenticated user can exploit by sending POST /api/user/tokens/ with arbitrary target user ID to forge API tokens as administrators/superusers. No victim interaction needed; tokens are immediately usable remotely. |
| Impact | Authenticated users can forge API tokens for any account, including admins, enabling full system compromise. CVSS 8.3 reflects high confidentiality/integrity impact. No complexity barriers post-authentication. Organizations running InvenTree 0.16.0-1.2.6 face immediate insider threat and lateral escalation risk if any user account is compromised or trusted. |
| Exploit ScenarioDerived | Authenticated attacker submits POST /api/user/tokens/ with target admin's user ID. System returns valid token usable immediately for API requests as that admin, bypassing further authentication. No public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 08, 2026
Authentication bypass in InvenTree open source inventory management system allows any authenticated user to generate API tokens for arbitrary users, including administrators, enabling complete account takeover. Affected versions 0.16.0 through 1.2.6 permit low-privileged users to forge API credentials by manipulating the user field in POST requests to /api/user/tokens/. Resulting tokens provide full API access from any network location without requiring victim interaction. No public exploit identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade immediately to InvenTree version 1.2.7 or 1.3.0, which enforce proper authorization checks preventing token generation for non-owned user accounts. No workaround exists for unpatched installations; applying the security update is mandatory. Organizations unable to upgrade immediately should restrict API access to trusted networks only and audit all API tokens created since version 0.16.0 deployment for unauthorized credential issuance. Revoke any tokens created by users other than the token owner. Full vendor security advisory available at https://github.com/inventree/InvenTree/security/advisories/GHSA-qh5j-c28q-c4rg with additional technical details and remediation guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Broken access control in token generation endpoint fails to validate user field parameter against authenticated session identity (CWE-639: Authorization Bypass Through User-Controlled Key). API endpoint accepts arbitrary user_id values in POST body, creating valid JWT or session tokens for targeted accounts without authorization checks, enabling horizontal and vertical privilege escalation through forged credential issuance.
Know when Inventree gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
InvenTree 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 attributed to any other user in the system - including administrators and superusers - by supplying the target's user ID in the user field of a POST /api/user/tokens/ request. The returned token is immediately usable for full API authentication as the target user, from any network location, with no further interaction required. This vulnerability is fixed in 1.2.7 and 1.3.0.
Executive ViewAI
InvenTree inventory management system versions 0.16.0 through 1.2.6 contain an authentication bypass vulnerability that allows any logged-in user to create API tokens for other users, including administrators, without authorization. This enables complete account takeover and unauthorized API access to sensitive inventory data and operations. Organizations using affected InvenTree versions should prioritize immediate patching to prevent credential compromise and unauthorized system manipulation.
Apply vendor patch. If immediate patching is not feasible: restrict API token endpoint access via firewall/WAF to authenticated sessions from trusted networks only; disable API token generation functionality if not required for operations; implement continuous monitoring of /api/user/tokens/ POST requests for anomalous user field manipulation; rotate all existing API tokens immediately after patching.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Improper Neutralization of Formula Elements in a CSV File in GitHub repository inventree/inventree prior to 0.7.2. Rated
Unrestricted Upload of File with Dangerous Type in GitHub repository inventree/inventree prior to 0.7.2. Rated high seve
Allocation of Resources Without Limits or Throttling in GitHub repository inventree/inventree prior to 0.8.0. Rated medi
Remote code execution in InvenTree 1.2.3 through 1.2.6 allows staff users with settings access to execute arbitrary code
Cross-site Scripting (XSS) - Stored in GitHub repository inventree/inventree prior to 0.8.3. Rated medium severity (CVSS
Cross-site Scripting (XSS) - Stored in GitHub repository inventree/inventree prior to 0.7.2. Rated medium severity (CVSS
Broken object-level authorization in InvenTree prior to 1.4.0 allows any authenticated low-privilege user - or any holde
InvenTree versions prior to 1.4.0 render report and label templates with WeasyPrint's default URL fetcher, so an authent
Authenticated attackers with low-level privileges can exfiltrate sensitive database information from InvenTree open sour
InvenTree prior to version 1.2.3 allows authenticated staff users to inject malicious Jinja2 template code into batch co
InvenTree is an Open Source Inventory Management System. Rated medium severity (CVSS 5.4), this vulnerability is remotel
Unauthenticated information disclosure in InvenTree prior to 1.4.0 lets a remote caller retrieve plugin names, setting k
EUVD-2026-20590
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB