Description
InvenTree is an Open Source Inventory Management System. Prior to 1.4.0, privileged staff users who can author report or label templates can cause WeasyPrint report rendering to retrieve attacker-selected resources through the HTTP and HTTPS URL schemes or the local file URI scheme. The HTML(string=html).write_pdf() path does not provide a restricted url_fetcher, and attach_to_model=True stores the original generated PDF before later processing, allowing fetched local files or internal HTTP response bodies to be recovered from embedded attachments. This enables full-read server-side request forgery, arbitrary local file disclosure including application credentials, and possible compromise of a superuser account. This issue is fixed in version 1.4.0.
Published: 2026-09-21
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: Credential Disclosure via Arbitrary File Read
Action: Patch Now
AI Analysis

Impact

The vulnerability enables privileged staff users who can create or edit report or label templates to trigger WeasyPrint to fetch arbitrary files from HTTP, HTTPS or local file URLs. Because the rendering path does not restrict URL fetching and the generated PDF is stored before further processing, an attacker can cause the server to read any accessible local file or internal HTTP response and embed its contents into a PDF attachment, revealing sensitive data such as application credentials.

Affected Systems

All InvenTree installations running a version earlier than 1.4.0 are affected.

Risk and Exploitability

The CVSS base score of 6.5 indicates medium severity. The EPSS score is not provided and the vulnerability is not listed in CISA’s KEV, suggesting no known widespread exploitation yet. Exploitation requires a user with privileged staff rights to author report or label templates and the ability to submit a crafted template that instructs WeasyPrint to download a file. Once the template is rendered, the server reads the file and includes its contents in a PDF attachment, potentially exposing credentials and other sensitive information.

Generated by OpenCVE AI on September 21, 2026 at 19:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to InvenTree 1.4.0 or later, which implements restricted URL fetching and removes the vulnerability.
  • Restrict privileged staff to only essential report‑template editing rights to prevent unauthorized template creation.
  • Remove or sanitize any PDF attachments generated before the fix and monitor for inadvertent disclosure of sensitive data.

Generated by OpenCVE AI on September 21, 2026 at 19:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 21 Sep 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Inventree
Inventree inventree
Vendors & Products Inventree
Inventree inventree

Mon, 21 Sep 2026 18:45:00 +0000

Type Values Removed Values Added
Description InvenTree is an Open Source Inventory Management System. Prior to 1.4.0, privileged staff users who can author report or label templates can cause WeasyPrint report rendering to retrieve attacker-selected resources through the HTTP and HTTPS URL schemes or the local file URI scheme. The HTML(string=html).write_pdf() path does not provide a restricted url_fetcher, and attach_to_model=True stores the original generated PDF before later processing, allowing fetched local files or internal HTTP response bodies to be recovered from embedded attachments. This enables full-read server-side request forgery, arbitrary local file disclosure including application credentials, and possible compromise of a superuser account. This issue is fixed in version 1.4.0.
Title InvenTree: Administrative staff users can trigger Arbitrary File Read leading to Credential Disclosure
Weaknesses CWE-200
CWE-918
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

Inventree Inventree
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-21T18:31:54.532Z

Reserved: 2026-07-10T18:59:00.048Z

Link: CVE-2026-61749

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-21T19:17:07.907

Modified: 2026-09-21T19:17:07.907

Link: CVE-2026-61749

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-21T19:30:15Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-918

    Server-Side Request Forgery (SSRF)