SSRF (Server-Side Request Forgery) in Stirling-PDF (CVE-2026-71270)
Summary
SSRF in Stirling-PDF (CVE-2026-71270). Confidential information can be exposed externally. Exploitable via POST /api/v1/convert/url/pdf.
Original description
The description as published by the source.
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. ``) 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.
Source: NIST National Vulnerability Database NVD GitHub Advisory
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
Stirling-PDFのエンドポイントPOST /api/v1/convert/url/pdfにSSRF保護が適用されておらず、攻撃者がサーバー側でクラウドメタデータや内部ネットワークリソースにアクセスできる可能性があります。
Stirling-PDFのPOST /api/v1/convert/url/pdfエンドポイントがSSRF保護を欠いています。
Stirling-PDFのエンドポイント (ConvertWebsiteToPDF.java)
攻撃者がクラウドメタデータや内部ネットワークリソースにアクセスし、機密情報を漏洩させる可能性があるため重要です。
CustomHtmlSanitizerとSsrfProtectionServiceでエンドポイントを保護してください。
影響を受けるエンドポイントを一時的に無効化することで回避可能です。
SSRFフィルタリングが適用されていないことをログやコードレビューで確認します。
References
- web github.com
- web nvd.nist.gov
- web github.com