Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain user account credentials
-
DeliveryAuthenticate to InvenTree API
-
ExploitCraft POST request with staff elevation payload
-
ExecutionSubmit to /api/user/{id}/ endpoint
-
PersistGain administrative privileges
-
ImpactAccess restricted inventory functions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization verification
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker must have an authenticated user account on the target InvenTree instance, which can be obtained through open user registration (if enabled), invitation workflows, or credential compromise. The vulnerable API endpoint is exposed in default InvenTree configurations with no special features or non-default settings required. Exploitation is limited to InvenTree versions prior to 1.2.7 and 1.3.0 running with standard Django REST Framework API enabled (default deployment mode). Attack surface is constrained by whether the instance permits user registration or the attacker has alternate means to establish initial authenticated access. Network reachability to the InvenTree web application is required, but no additional authentication beyond basic user credentials gates the privilege escalation itself, contradicting the CVSS vector's PR:N classification. |
| Impact | CVSS 7.2 (High) with network attack vector, low complexity, and no required privileges suggests significant risk, but multiple signals indicate moderate real-world priority. The CVSS vector contains an apparent inconsistency: PR:N (no privileges required) contradicts the description stating 'non-staff authenticated user' must exploit the flaw - authentication IS a privilege requirement, suggesting the vector should be PR:L. This discrepancy requires vendor clarification. EPSS probability of 0.03% (8th percentile) indicates security researchers assess actual exploitation risk as very low despite theoretical severity. SSVC framework confirms no active exploitation, categorizes the attack as non-automatable (requires account creation and targeted API interaction), and rates technical impact as partial (privilege escalation within application scope, not system compromise). The vulnerability enables horizontal-to-vertical privilege movement but requires initial authenticated access, limiting attack surface to environments where user registration is permitted or credentials are compromised through other means. Priority should be high for internet-facing InvenTree instances with open registration, moderate for internal deployments with controlled user provisioning. |
| Exploit ScenarioDerived | An attacker registers a standard user account on a publicly accessible InvenTree instance (or compromises existing credentials via phishing). Using API documentation or intercepting legitimate requests, they craft a POST request to their own user endpoint (/api/user/{their_user_id}/) with JSON payload setting 'is_staff': true. The improperly configured API endpoint accepts this modification without validating the requester's existing privilege level, immediately granting staff access. The attacker refreshes their session and gains access to administrative inventory management functions including viewing all organization inventory data, modifying stock records, accessing supplier information, and potentially altering system configurations depending on role-based access control policies downstream of staff status. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 21, 2026
Privilege escalation in InvenTree inventory management system versions prior to 1.2.7 and 1.3.0 allows remote unauthenticated attackers to elevate any user account to staff level through improperly secured API endpoints. Exploitation requires no special conditions beyond network access and enables unauthorized administrative access to inventory management functions. EPSS score of 0.03% (8th percentile) indicates low observed exploitation likelihood, and SSVC assessment confirms no known exploitation with non-automatable attack requiring user account creation first.
Earlier versions of this analysis (1)
Privilege escalation in InvenTree Open Source Inventory Management System versions before 1.2.7 and 1.3.0 allows any authenticated user to elevate to staff-level permissions through improperly secured API endpoints. The vulnerability stems from misconfigured write permissions on user account endpoints, enabling unauthorized modification of staff status flags via POST requests. Exploitation requires only valid user credentials. No public exploit identified at time of analysis.
RemediationAI
Upgrade immediately to InvenTree version 1.2.7 or 1.3.0, both confirmed patched releases per GitHub security advisory GHSA-r8q5-3595-3jh2. Organizations running 1.2.x stable branch should update to 1.2.7; those on 1.3.x development track should update to 1.3.0 or later. Follow upgrade procedures at vendor documentation and verify user permission configurations post-upgrade. If immediate patching is not feasible, implement network-level access controls restricting API endpoint access to trusted IP ranges and deploy a reverse proxy (nginx, Apache) with request filtering rules to block PUT/POST/PATCH requests to /api/user/{id}/ endpoints from non-administrative source addresses - this workaround introduces operational overhead requiring whitelist maintenance for legitimate administrative access and may break mobile applications or distributed workflows. Additionally, conduct immediate audit of user accounts for unauthorized staff privilege assignments using Django admin interface or database queries against auth_user table filtering is_staff=true, revoking elevated privileges from accounts created or modified within vulnerable window. Note that access control workarounds do not address the underlying authorization flaw and should be considered temporary compensating controls only.
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
InvenTree is an open-source inventory management platform built with Django and Django REST Framework. This vulnerability stems from CWE-285 (Improper Authorization), specifically inadequate access controls on user account modification API endpoints. The REST API framework's permission classes were misconfigured to allow write operations on the user profile endpoint without proper staff-level authorization checks. This architectural flaw permits POST requests containing privilege escalation payloads to succeed when they should be restricted to existing staff accounts or system administrators. The vulnerability affects the user serializer and view logic that handles account attribute updates, where the 'is_staff' boolean field modification was not properly gated behind administrative permission validators.
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:N/I:L/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
6DescriptionNVD
InvenTree is an Open Source Inventory Management System. Prior to 1.2.7 and 1.3.0, a non-staff authenticated user can elevate their account to a staff level via a POST request against their user account endpoint. The write permissions on the API endpoint are improperly configured, allowing any user to change their staff status. This vulnerability is fixed in 1.2.7 and 1.3.0.
Executive ViewAI
InvenTree inventory management system versions before 1.2.7 and 1.3.0 contain a privilege escalation vulnerability in API endpoints that allows unauthenticated attackers to grant staff-level administrative access to any user account, potentially compromising control over inventory data and system administration. Organizations using affected versions risk unauthorized administrative access without requiring valid credentials, directly impacting data integrity and operational control of inventory management functions.
Apply vendor patch. If immediate patching is not possible, restrict network access to InvenTree API endpoints to authenticated internal networks only, disable public API access, and implement network-based access controls to limit who can reach the vulnerable endpoints.
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
Authentication bypass in InvenTree open source inventory management system allows any authenticated user to generate API
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
EUVD-2026-20586
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB