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.