CVE-2026-119343

Stirling-PDF: AI create-pdf-from-html-agent skips HTML sanitization enabling WeasyPrint SSRF and local file read

Published Oct 30, 2026 CVSS 3.1 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
Stirling-PDF is a locally hosted web application that facilitates various operations on PDF files. Prior to 3.0.0, POST /api/v1/ai/tools/create-pdf-from-html-agent accepts attacker-controlled htmlContent and passes it to WeasyPrint without CustomHtmlSanitizer, unlike the sanitized /api/v1/convert/html/pdf control path. HTTP and HTTPS resource references can make server-side requests to internal or cloud-metadata destinations, while file references can embed local content readable by the Stirling-PDF process into the generated PDF. The endpoint is reachable without credentials when security.enableLogin is false, and the flaw is distinct from earlier Stirling-PDF WeasyPrint vulnerabilities in older conversion paths. This issue is fixed in version 3.0.0.

Analysis

AI-generated

Technical impact

The AI create‑pdf‑from‑html‑agent endpoint accepts user‑supplied HTML content and forwards it directly to WeasyPrint without sanitization. Because WeasyPrint processes raw HTML, an attacker can embed HTTP or HTTPS URLs that cause the server to make arbitrary outbound requests to internal services or cloud‑metadata endpoints, or embed file:// paths that lead to local file reads. An attacker can therefore exfiltrate sensitive configuration data or internal IP information. The vulnerability does not provide remote code execution but can still expose valuable data to a malicious actor. The attack is possible via a simple HTTP POST to the endpoint, and the flaw is distinct from earlier WeasyPrint issues in Stirling‑PDF's conversion paths.

Affected Systems

Stirling‑Tools Stirling‑PDF before release 3.0.0 is affected. The vulnerable API is /api/v1/ai/tools/create‑pdf‑from‑html‑agent. The application is a locally hosted web service that, when security.enableLogin is set to false, allows unauthenticated users to reach the vulnerable endpoint. Users running older versions without a login or with a weak authentication method are at risk.

Risk and Exploitability

The CVSS score of 6.8 indicates a moderate level of risk. No EPSS score is available, so the current exploitation probability cannot be quantified. The vulnerability is not listed in CISA’s KEV catalog, suggesting it is not yet widely exploited. An attacker does not need special privileges to exploit it beyond network access to the host, and the existence of an unauthenticated endpoint makes remediation straightforward. The exploit path requires constructing and sending specially crafted HTML to the dedicated endpoint; once processed, the server can reach arbitrary URLs or read local files as described.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Stirling‑PDF to version 3.0.0 or later to remove the missing sanitizer.
  • If an upgrade cannot be applied immediately, set security.enableLogin to true to restrict access to authenticated users only.
  • Disable or block the /api/v1/ai/tools/create‑pdf‑from‑html‑agent endpoint at the network level until a patch is available.

Generated by OpenCVE AI on October 30, 2026 at 21:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Stirling
Stirling stirling Pdf
Vendors & Products Stirling
Stirling stirling Pdf
Type Values Removed Values Added
Description Stirling-PDF is a locally hosted web application that facilitates various operations on PDF files. Prior to 3.0.0, POST /api/v1/ai/tools/create-pdf-from-html-agent accepts attacker-controlled htmlContent and passes it to WeasyPrint without CustomHtmlSanitizer, unlike the sanitized /api/v1/convert/html/pdf control path. HTTP and HTTPS resource references can make server-side requests to internal or cloud-metadata destinations, while file references can embed local content readable by the Stirling-PDF process into the generated PDF. The endpoint is reachable without credentials when security.enableLogin is false, and the flaw is distinct from earlier Stirling-PDF WeasyPrint vulnerabilities in older conversion paths. This issue is fixed in version 3.0.0.
Title Stirling-PDF: AI create-pdf-from-html-agent skips HTML sanitization enabling WeasyPrint SSRF and local file read
Weaknesses CWE-73
CWE-918
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-73

    External Control of File Name or Path

  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 2, 2026, 3:03 PM
Reserved
Oct 29, 2026, 8:44 PM
Status
Deferred
Published
Oct 30, 2026, 9:16 PM
Modified
Nov 2, 2026, 4:17 PM