CVE-2026-35478 InvenTree has Arbitrary API Token Creation
Authenticated users can create API tokens for any other user, including admins, by manipulating the user ID in API requests, leading to full account takeover.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-35478?
CVE-2026-35478 is a high-severity missing authorization vulnerability in InvenTree, published on 8 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-639
Which versions are affected by CVE-2026-35478?
It affects 1 product.
Products include Inventree Project Inventree.
How do I fix CVE-2026-35478?
No fix has been published for CVE-2026-35478 yet. Limit exposure of the affected software until one is available.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2026-35478 being exploited?
There is no known exploitation of CVE-2026-35478 in the wild and no public exploit code.
Other vulnerabilities in InvenTree
- CVE-2022-2111 Unrestricted Upload of File with Dangerous Type in inventree/inventree
- CVE-2022-2112 Improper Neutralization of Formula Elements in a CSV File in inventree/inventree
- CVE-2022-2113 Cross-site Scripting (XSS) - Stored in inventree/inventree
- CVE-2022-3355 Cross-site Scripting (XSS) - Stored in inventree/inventree
- CVE-2026-33530 InvenTree Vulnerable to ORM Filter Injection
Sources
Also known as GHSA-qh5j-c28q-c4rg.