CVE-2026-39362
JSON

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 packageVersionsReported by
inventree InvenTree< 1.2.7CVE List
inventree_project inventreebefore 1.2.7NVD

All scores

GitHub_M5.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
NVD7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N

Classification

CWE-918

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

Sources

SourceRecordLicence
CVE ListCVE-2026-39362 changed 2026-04-10CVE Terms of Use
NVDCVE-2026-39362 changed 2026-10-06Public domain