{"id":"CVE-2026-61744","published":"2026-09-21T19:17:07.190","lastModified":"2026-09-21T19:17:07.190","description":"InvenTree is an Open Source Inventory Management System. Prior to 1.4.0, POST /api/barcode/ accepts an attacker-synthesized internal JSON barcode containing a lowercase model label and integer primary key, while BarcodeView uses IsAuthenticatedOrReadScope and requires only authentication or a general read scope. The built-in barcode plugin selects the object with model.objects.get(pk=...), and InvenTreeBarcodeMixin.format_matched_response() returns the complete model serializer output as instance without checking the caller's per-model view role. A low-privilege user can enumerate primary keys for parts, stock, locations, supplier and manufacturer parts, orders, and builds to disclose commercially sensitive inventory, pricing, supplier, customer, and order data. This issue is fixed in version 1.4.0.","cvssScore":6.5,"cvssSeverity":"MEDIUM","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","cwes":["CWE-639","CWE-863"],"vendors":[],"products":[],"references":[{"url":"https://github.com/inventree/InvenTree/commit/f21bc2d06f906838e760d2face15cc50cc9df984","tags":[]},{"url":"https://github.com/inventree/InvenTree/pull/12233","tags":[]},{"url":"https://github.com/inventree/InvenTree/releases/tag/1.4.0","tags":[]},{"url":"https://github.com/inventree/InvenTree/security/advisories/GHSA-6pm3-m334-mr4j","tags":[]}],"exploitRefs":[{"url":"https://github.com/inventree/InvenTree/commit/f21bc2d06f906838e760d2face15cc50cc9df984","tags":[]},{"url":"https://github.com/inventree/InvenTree/pull/12233","tags":[]},{"url":"https://github.com/inventree/InvenTree/releases/tag/1.4.0","tags":[]},{"url":"https://github.com/inventree/InvenTree/security/advisories/GHSA-6pm3-m334-mr4j","tags":[]}],"hasPoc":true,"ai":{"summary":"The flaw allows low-privilege users to enumerate primary keys and disclose sensitive inventory data by exploiting the lack of proper role checks in the InvenTree barcode API endpoint.","exploitability":"Exploitation requires a user with basic authentication or read scope, making it moderately easy given the preconditions.","blast_radius":"If exploited, this could lead to significant data breaches affecting inventory, pricing, supplier, and order information across multiple entities within the system.","remediation":"Upgrade to InvenTree version 1.4.0 or apply a patch that enforces proper role checks on the API endpoint.","tags":["web","auth-bypass","data-disclosure","inventory"],"model":"qwen2.5:7b-instruct","analyzedAt":"2026-09-22T06:19:38.986Z"}}