InvenTree API Token Creation Vulnerability Allowing Impersonation of Other Users

Vulnerability

A vulnerability in InvenTree, an open-source inventory management system, allows authenticated users to create API tokens for any other user, including administrators and superusers. This is achieved by sending the target user's ID in the user field of a POST request to /api/user/tokens/. The generated token can be used immediately for full API authentication as the targeted user, from any network location, without any additional interaction.

Impact

Exploitation of this vulnerability allows for unauthorized API access as another user, potentially leading to unauthorized actions or data access, especially if the impersonated user has elevated privileges.

Remediation

Users can upgrade to InvenTree versions 1.2.7 or 1.3.0 to address this vulnerability.

Added: Apr 8, 2026, 10:56 PM
Updated: Apr 8, 2026, 10:56 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
5.0
exploitability
4.9
remediation
7.7
relevance
5.5
threat
0.0
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.