{"id":"CVE-2026-119343","summary":"Stirling-PDF: AI create-pdf-from-html-agent skips HTML sanitization enabling WeasyPrint SSRF and local file read","details":"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.","aliases":["GHSA-3x7x-943g-269w"],"modified":"2026-11-04T02:31:06.311508564Z","published":"2026-10-30T20:31:48.374Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-73","CWE-918"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119343.json"},"references":[{"type":"WEB","url":"https://github.com/Stirling-Tools/Stirling-PDF/releases/tag/v3.0.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119343.json"},{"type":"ADVISORY","url":"https://github.com/Stirling-Tools/Stirling-PDF/security/advisories/GHSA-3x7x-943g-269w"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119343"},{"type":"FIX","url":"https://github.com/Stirling-Tools/Stirling-PDF/commit/0570c4c4d9e7bf4786a02ab770ef75f116ac3719"},{"type":"FIX","url":"https://github.com/Stirling-Tools/Stirling-PDF/pull/7018"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/stirling-tools/stirling-pdf","events":[{"introduced":"0"},{"fixed":"5e1301e203e9fa0ec89f0eddf129c1b77e44a4ee"},{"fixed":"0570c4c4d9e7bf4786a02ab770ef75f116ac3719"}],"database_specific":{"extracted_events":[{"strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"3.0.0"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"0570c4c4d9e7bf4786a02ab770ef75f116ac3719"}]},{"source":"REFERENCES_TAG","original_tag":"v3.0.0","range":[{"fixed":"5e1301e203e9fa0ec89f0eddf129c1b77e44a4ee"}]}]}}],"versions":["v2.14.0","v2.13.2","v2.13.1","v2.13.0","v2.12.0","v2.11.0","v2.10.1","v2.10.0","v2.9.2","v2.9.1","v2.9.0","v2.8.0","v2.7.3","v2.7.2","v2.7.1","v2.7.0","v2.6.0","v2.5.3","v2.5.2","v2.5.1","v2.5.0","v2.4.6","v2.4.5","v2.4.4","v2.4.3","v2.4.1","v2.4.2","v2.4.0","v2.3.1","v2.3.0","v2.2.1","v2.2.0","v2.1.5","v2.1.4","v2.1.3","v2.1.2","v2.1.1","v2.1.0","v2.0.3","v2.0.2","v2.0.1","v2.0.0","v0.46.1","v0.46.0","v0.45.6","v0.45.5","v0.45.4","v0.45.3","v0.45.2","v0.45.1","v0.45.0","v0.44.3","v0.44.2","v0.44.1","v0.44.0","v0.43.2","v0.43.1","v0.43.0","v0.42.0","v0.41.0","v0.40.2","v0.40.1","v0.40.0","v0.39.0","v0.38.0","v0.37.1","v0.37.0","v0.36.6","v0.36.5","v0.36.4","v0.36.3","v0.36.2","v0.36.1","v0.36.0","v0.35.1","v0.35.0","v0.34.0","v0.33.1","v0.33.0","v0.32.0","stirling-pdf-chart-1.0.1","v0.31.1","v0.31.0","v0.30.1","v0.30.0","v0.29.0","v0.28.3","v0.28.2","v0.28.1","v0.28.0","v0.27.0","v0.26.1","v0.26.0","v0.25.3","v0.25.2","v0.25.1","v0.25.0","v0.24.6","v0.24.5","v0.24.3","v0.24.4","v0.24.1","v0.24.2","v0.24.0","v0.22.8","v0.23.1","v0.23.0","v0.22.7","v0.22.6","v0.22.5","v0.22.4","v0.22.3","v0.22.2","v0.22.1","v0.22.0","v0.21.0","v0.20.2","v0.20.1","v0.20.0","v0.19.1","v0.19.0","v0.18.1","v0.18.0","v0.17.2","v0.17.1","v0.17.0","v0.16.1","v0.16.0","v0.15.1","v0.15.0","v0.14.5","v0.14.4","v0.14.3","v0.14.2","v0.14.1","v0.14.0","v0.13.1","v0.13.0","0.13.0","v0.12.2","v0.12.1","v0.12.0","v0.10.3","v0.10.2","v0.10.1","v0.10.0","v0.9.1","v0.9.0","v0.8.3","v0.8.2","v0.8.1","v0.8.0","v0.7.0","v0.6.0","v0.5.0","v0.4.8","v0.4.7","v0.4.6","v0.4.5","v0.4.4","v0.4.3","v0.4.2","v0.4.0","v0.3.4","v0.3.3","v0.3.2","v0.3.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119343.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N"}]}