Description
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.
Published: 2026-04-08
Score: 8.3 High
EPSS: < 1% Very Low
KEV: No
Impact: Privilege Escalation via Arbitrary API Token Creation
Action: Immediate Patch
AI Analysis

Impact

An authenticated user in InvenTree can create a new API token that is attributed to any target user by providing that user's ID in the token creation request. The created token is instantly usable for API authentication, allowing the requester to fully impersonate the target user, including administrators and superusers, from any network location with no further interaction. This results in complete control over the system for the impersonated account and aligns with the weakness defined as Authorization Bypass Through Privilege Escalation (CWE-639).

Affected Systems

InvenTree, an open‑source inventory management system, is affected for releases from version 0.16.0 through any pre‑1.2.7 release. Users of these versions, regardless of role, can create arbitrary tokens for any other user. The vulnerability is fixed in releases 1.2.7 and 1.3.0.

Risk and Exploitability

The flaw carries a CVSS v3 score of 8.3, indicating high severity. It does not currently appear in the CISA KEV catalog and EPSS data is unavailable, so the exact likelihood of exploitation is unknown. The attack vector requires only that the attacker be authenticated to the system; thereafter the token creation endpoint can be called to generate a valid token for any user. Once obtained, the token grants full API‑level access, enabling data exfiltration, configuration changes, or potential further lateral movement if integrated with other services.

Generated by OpenCVE AI on April 8, 2026 at 20:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor patch to InvenTree version 1.2.7 or later.
  • If upgrading is not immediately possible, temporarily revoke API token creation privileges for all users except administrators or disable the /api/user/tokens/ endpoint.
  • Monitor API token creation logs for unusual activity and enforce rate limiting on the token creation API.
  • Review and tighten role permissions to limit who can create API tokens.

Generated by OpenCVE AI on April 8, 2026 at 20:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 09 Apr 2026 08:30:00 +0000

Type Values Removed Values Added
First Time appeared Inventree
Inventree inventree
Vendors & Products Inventree
Inventree inventree

Wed, 08 Apr 2026 21:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 08 Apr 2026 19:45:00 +0000

Type Values Removed Values Added
Description 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.
Title InvenTree has Arbitrary API Token Creation
Weaknesses CWE-639
References
Metrics cvssV3_1

{'score': 8.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L'}


Subscriptions

Inventree Inventree
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-04-08T20:12:15.181Z

Reserved: 2026-04-02T20:49:44.453Z

Link: CVE-2026-35478

cve-icon Vulnrichment

Updated: 2026-04-08T20:12:05.710Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-04-08T20:16:24.630

Modified: 2026-04-08T21:26:13.410

Link: CVE-2026-35478

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-09T08:27:42Z

Weaknesses