Skip to content
Heist/ feed
Back to feed
High

InvenTree has Arbitrary API Token Creation

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-35478
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 14:05 UTC · Revision 1

Source evidence

InvenTree has Arbitrary API Token Creation

core-osv · Original source

Published 8 Apr 2026, 19:24 UTC

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.

osv:CVE-2026-35478
Complete source record
{
  "id": "91818588864f92fff4b23d9b96446903206b175abdc09f0df46a859cb78b6753",
  "url": "https://osv.dev/vulnerability/CVE-2026-35478",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "InvenTree has Arbitrary API Token Creation",
    "summary": "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.",
    "evidence": "osv:CVE-2026-35478",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-35478",
      "aliases": [
        "CVE-2026-35478",
        "GHSA-qh5j-c28q-c4rg"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/inventree/inventree",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3f2ac5ae53c5894d43826edce86d0c8290463c2f"
                },
                {
                  "fixed": "01bf60000462fd19d8f939a0561e55e08f38a260"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.16.0"
                      },
                      {
                        "fixed": "1.2.7"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:inventree_project:inventree:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.16.0"
                      },
                      {
                        "last_affected": "1.2.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-35478.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:29.293688921Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35478.json",
        "https://github.com/inventree/InvenTree/security/advisories/GHSA-qh5j-c28q-c4rg",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-35478"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-639"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35478.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-35478",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 496222,
  "published_at": "2026-04-08T19:24:05.044+00:00"
}