# CVE-2026-119343: Stirling-PDF unsanitized HTML to PDF conversion in create-pdf-from-html-agent

Source: https://junglewise.ai/threats/cve-2026-119343-stirling-pdf-is-a-locally-hosted-web-application-that  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-30. Updated: 2026-10-30  
License: CC BY 4.0 with a link back

CVE-2026-119343 · Severity: medium · CVSS 6.8 · Published 2026-10-30

Stirling-PDF is a locally hosted web application for performing operations on PDF files. A vulnerable endpoint accepts user-supplied HTML content and converts it to PDF without proper sanitization, allowing attackers to read local files or make requests to internal systems by embedding file:// and HTTP/HTTPS URLs in the HTML. When login is disabled (a common configuration), this endpoint is accessible without authentication.

Technologies: [Stirling-Tools Stirling-PDF](https://junglewise.ai/threats/technologies/stirling-tools-stirling-pdf). Vendors: [Stirling-Tools](https://junglewise.ai/threats/vendors/stirling-tools).

## Quick answers

**Is CVE-2026-119343 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-119343 being exploited in the wild.

**How severe is CVE-2026-119343?** Medium severity, with a CVSS score of 6.8, published 30 October 2026.

**Which products and versions are affected?** Stirling-Tools Stirling-PDF before 3.0.0.

**Is there a fix for CVE-2026-119343?** Yes: fixed in 3.0.0. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-119343 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-119343?** Check whether you run Stirling-Tools Stirling-PDF 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.

## How to fix

- Fixed in 3.0.0

## Technical details

The POST /api/v1/ai/tools/create-pdf-from-html-agent endpoint passes attacker-controlled htmlContent directly to WeasyPrint without applying the CustomHtmlSanitizer used by the safer /api/v1/convert/html/pdf path. An attacker can embed file:// references to read local files accessible to the Stirling-PDF process, or HTTP/HTTPS resource references to trigger server-side requests to internal services or cloud metadata endpoints. The flaw is reachable without authentication when security.enableLogin is false.

## Affected products

- Stirling-Tools Stirling-PDF before 3.0.0

## Timeline

- 2026-10-30: disclosed

## References

- [https://github.com/Stirling-Tools/Stirling-PDF/commit/0570c4c4d9e7bf4786a02ab770ef75f116ac3719](https://github.com/Stirling-Tools/Stirling-PDF/commit/0570c4c4d9e7bf4786a02ab770ef75f116ac3719)
- [https://github.com/Stirling-Tools/Stirling-PDF/pull/7018](https://github.com/Stirling-Tools/Stirling-PDF/pull/7018)

## Related threats

- [Stirling-PDF arbitrary file disclosure via SVG rendering](https://junglewise.ai/threats/cve-2026-119342-stirling-pdf-is-a-locally-hosted-web-application-that)
- [Stirling-PDF SQL injection in database import endpoint](https://junglewise.ai/threats/cve-2026-85714-stirling-pdf-is-a-locally-hosted-web-application-that-facilitates)
