CVE-2022-2111High· 8.8▾ TwilightUnrestricted Attachment Upload
▾ Twilight zone — High severity, or a signal on a lesser flaw
impact 48.4 · likelihood 0.2 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 8.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
1.2%
1.2% → 1.2%
InvenTree allows unrestricted upload of files as attachments to various database fields. Potentially dangerous files (such as HTML files containing malicious javascript) can be uploaded, and (when opened by the user) run the malicious code directly in the users browser.

Note that the upload of malicious files must be performed by an authenticated user account
The solution for this vulnerability is to ensure that attachment files are downloaded to the local machine before opening, rather than opening the file in the current browser context.
Users can alleviate risk of opening malicious files by right-clicking on the attachment link and selecting "Save link as"

This minimizes risk (e.g. of XSS attacks) by opening the HTML file from the users computer
https://huntr.dev/bounties/a0e5c68e-0f75-499b-bd7b-d935fb8c0cd1/
If you have any questions or comments about this advisory:
inventree < 0.7.2Upgrade to a patched release:
inventree 0.7.2Connected by shared product, vendor, weakness, or advisory.
CVE-2022-2112High· 8.8CSV Injection in inventree
CVE-2022-3355Medium· 5.4Inventree vulnerable to Stored Cross-site Scripting
CVE-2026-61748Medium· 4.3InvenTree is an Open Source Inventory Management System
CVE-2026-61746Medium· 5.3InvenTree is an Open Source Inventory Management System
CVE-2026-61747Medium· 4.3InvenTree is an Open Source Inventory Management System
CVE-2026-61744Medium· 6.5InvenTree is an Open Source Inventory Management System