CVE-2026-71270: CWE-918 in Stirling-Tools Stirling-PDF
Stirling-PDF's POST /api/v1/convert/url/pdf endpoint (ConvertWebsiteToPDF.java) was not updated with the CustomHtmlSanitizer/SsrfProtectionService SSRF protections that were added to three sibling conversion endpoints (html/pdf, file/pdf, markdown/pdf). The endpoint validates only that the initial requested URL resolves to a public IP, then fetches the page's HTML server-side and hands it, unsanitized, to a WeasyPrint subprocess. Embedded resource references in the fetched HTML (e.g. `<img src="http://169.254.169.254/...">`) are fetched by WeasyPrint with no per-resource SSRF filtering, allowing an attacker-controlled page to cause the server to retrieve cloud metadata endpoints or internal network resources and leak their contents back into the generated PDF.
AI Analysis
Technical Summary
The vulnerability exists because the /api/v1/convert/url/pdf endpoint in Stirling-PDF does not implement the CustomHtmlSanitizer or SsrfProtectionService protections that other similar endpoints have. While it validates that the initial URL resolves to a public IP, it does not apply SSRF filtering to embedded resource references within the fetched HTML. Consequently, WeasyPrint fetches these embedded resources without restriction, enabling an attacker to craft malicious HTML that causes the server to access internal network resources or cloud metadata endpoints and include their content in the PDF output. This is classified as CWE-918 (Server-Side Request Forgery).
Potential Impact
An attacker can exploit this vulnerability to induce the server to make unauthorized requests to internal or cloud metadata services, potentially leaking sensitive information such as cloud instance metadata. The CVSS score of 8.6 (High) reflects the network attack vector, low complexity, no privileges required, no user interaction, and a confidentiality impact of high. There is no impact on integrity or availability reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using the vulnerable /api/v1/convert/url/pdf endpoint or restrict its access. Monitor vendor communications for updates on official patches or mitigations.
CVE-2026-71270: CWE-918 in Stirling-Tools Stirling-PDF
Description
Stirling-PDF's POST /api/v1/convert/url/pdf endpoint (ConvertWebsiteToPDF.java) was not updated with the CustomHtmlSanitizer/SsrfProtectionService SSRF protections that were added to three sibling conversion endpoints (html/pdf, file/pdf, markdown/pdf). The endpoint validates only that the initial requested URL resolves to a public IP, then fetches the page's HTML server-side and hands it, unsanitized, to a WeasyPrint subprocess. Embedded resource references in the fetched HTML (e.g. `<img src="http://169.254.169.254/...">`) are fetched by WeasyPrint with no per-resource SSRF filtering, allowing an attacker-controlled page to cause the server to retrieve cloud metadata endpoints or internal network resources and leak their contents back into the generated PDF.
CVSS v3.1
Score 8.6high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists because the /api/v1/convert/url/pdf endpoint in Stirling-PDF does not implement the CustomHtmlSanitizer or SsrfProtectionService protections that other similar endpoints have. While it validates that the initial URL resolves to a public IP, it does not apply SSRF filtering to embedded resource references within the fetched HTML. Consequently, WeasyPrint fetches these embedded resources without restriction, enabling an attacker to craft malicious HTML that causes the server to access internal network resources or cloud metadata endpoints and include their content in the PDF output. This is classified as CWE-918 (Server-Side Request Forgery).
Potential Impact
An attacker can exploit this vulnerability to induce the server to make unauthorized requests to internal or cloud metadata services, potentially leaking sensitive information such as cloud instance metadata. The CVSS score of 8.6 (High) reflects the network attack vector, low complexity, no privileges required, no user interaction, and a confidentiality impact of high. There is no impact on integrity or availability reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using the vulnerable /api/v1/convert/url/pdf endpoint or restrict its access. Monitor vendor communications for updates on official patches or mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T12:23:34.967Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7336e4bf8831d539ed9145
Added to database: 08/05/2026, 13:13:08 UTC
Last enriched: 08/05/2026, 13:31:43 UTC
Last updated: 08/06/2026, 00:00:14 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.