CVE-2026-61749: InvenTree server-side request forgery in PDF report generation

CVE-2026-61749 · Severity: medium · CVSS 6.5 · Published 2026-09-21

InvenTree is an open-source inventory management system that generates reports and labels as PDF documents. Privileged users who can author report or label templates can trick the PDF rendering engine into fetching attacker-controlled resources, potentially exposing internal files, network credentials, and other sensitive data stored on the server. This vulnerability allows attackers with staff privileges to read arbitrary files and access internal services without leaving the application.

Technologies: InvenTree. Vendors: InvenTree.

Quick answers

Is CVE-2026-61749 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-61749 being exploited in the wild.
How severe is CVE-2026-61749?
Medium severity, with a CVSS score of 6.5, published 21 September 2026.
Which products and versions are affected?
InvenTree before 1.4.0.
Is there a fix for CVE-2026-61749?
A patch was published on 2026-06-14: Fix merged in version 1.4.0 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-61749 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-61749?
Check whether you run InvenTree at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability exists in InvenTree's PDF report generation via WeasyPrint, which did not restrict the URL schemes available to the HTML-to-PDF rendering function. Attackers with staff privileges and report/label template authoring permissions can embed file://, http://, or https:// URIs in templates; the unrestricted url_fetcher retrieves these resources and embeds them in PDFs, and the attach_to_model=True feature stores unprocessed PDFs as attachments, allowing recovery of fetched content. SSRF validation, file:// blocking, and URL fetching restrictions were added in version 1.4.0.

Affected products

  • InvenTree InvenTree before 1.4.0

Timeline

  • 2026-09-21: disclosed
  • 2026-06-14: patched: Fix merged in version 1.4.0

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.