SSRF (Server-Side Request Forgery) in Stirling-PDF
Summary
SSRF in Stirling-PDF (CVE-2026-71270). Confidential information can be exposed externally. Exploitable via POST /api/v1/convert/url/pdf.
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Stirling-PDFのURLからPDFへの変換API(/api/v1/convert/url/pdf)で、ほかの変換APIに施された SSRF 対策が適用されていません。攻撃者が用意したページに埋め込まれたリソースを経由して、クラウドのメタデータや社内ネットワークの情報を取得され、生成されたPDFに含まれるおそれがあります。修正版の有無については、最新の情報を確認してください。
Stirling-PDFのPOST /api/v1/convert/url/pdfエンドポイントがSSRF保護を欠いています。
Stirling-PDFのエンドポイント (ConvertWebsiteToPDF.java)
攻撃者がクラウドメタデータや内部ネットワークリソースにアクセスし、機密情報を漏洩させる可能性があるため重要です。
CustomHtmlSanitizerとSsrfProtectionServiceでエンドポイントを保護してください。
影響を受けるエンドポイントを一時的に無効化することで回避可能です。
SSRFフィルタリングが適用されていないことをログやコードレビューで確認します。
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
References
- web github.com
- web nvd.nist.gov
- web github.com