5.3medium
InvenTree has SSRF via Remote Image Download — No IP/Hostname Validation on remote_image URLs
- Severity
- 5.3medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.32% (higher than 18% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
InvenTree is an Open Source Inventory Management System. Prior to 1.2.7 and 1.3.0, when INVENTREE_DOWNLOAD_FROM_URL is enabled (opt-in), authenticated users can supply remote_image URLs that are fetched server-side via requests.get() with only Django's URLValidator check. There is no validation against private IP ranges or internal hostnames. Redirects are followed (allow_redirects=True), enabling bypass of any URL-format checks. This vulnerability is fixed in 1.2.7 and 1.3.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| inventree InvenTree | < 1.2.7 | CVE List |
| inventree_project inventree | before 1.2.7 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| NVD | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
InvenTree is an Open Source Inventory Management System. Prior to 1.2.7 and 1.3.0, when INVENTREE_DOWNLOAD_FROM_URL is enabled (opt-in), authenticated users can supply remote_image URLs that are fetched server-side via requests.get() with only Django's URLValidator check. There is no validation against private IP ranges or internal hostnames. Redirects are followed (allow_redirects=True), enabling bypass of any URL-format checks. This vulnerability is fixed in 1.2.7 and 1.3.0.
NVD (es)
InvenTree es un Sistema de Gestión de Inventario de Código Abierto. Antes de 1.2.7 y 1.3.0, cuando INVENTREE_DOWNLOAD_FROM_URL está habilitado (activación voluntaria), los usuarios autenticados pueden proporcionar URLs de remote_image que son obtenidas del lado del servidor a través de requests.get() con solo la verificación de URLValidator de Django. No hay validación contra rangos de IP privados o nombres de host internos. Los redireccionamientos son seguidos (allow_redirects=True), lo que permite eludir cualquier verificación de formato de URL. Esta vulnerabilidad está corregida en 1.2.7 y 1.3.0.
References
| https://github.com/inventree/InvenTree/security/advisories/GHSA-m9j7-jw3m-fr22 | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39362 changed 2026-04-10 | CVE Terms of Use |
| NVD | CVE-2026-39362 changed 2026-10-06 | Public domain |