CVE Catalog

CVE-2026-119343

MediumCVSS 6.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.28%

21th percentile - higher than 21% of all known CVEs

Summary

In Stirling-PDF prior to 3.0.0, the POST /api/v1/ai/tools/create-pdf-from-html-agent endpoint 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.

Risk Assessment

An attacker could exploit this to perform Server-Side Request Forgery (SSRF) and disclose local server files in the generated PDF. With login disabled, the risk is especially high because the endpoint is publicly accessible.

Recommendation

Update Stirling-PDF to version 3.0.0 or later. If updating is not possible, consider disabling or restricting access to the /api/v1/ai/tools/create-pdf-from-html-agent endpoint and enabling authentication (security.enableLogin).

Other vulnerabilities in Stirling-PDF

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS