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.
Published: 2026-08-05
Score: 8.6 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The POST /api/v1/convert/url/pdf endpoint in Stirling‑PDF lacks the SSRF protections applied to other conversion routes. It validates only that the requested URL resolves to a public IP, then fetches the page’s HTML and hands the unsanitized content to a WeasyPrint subprocess. Embedded resources such as <img src="http://169.254.169.254/..."> are fetched by WeasyPrint without per‑resource filtering, allowing an attacker‑controlled page to cause the server to retrieve internal or cloud metadata endpoints and embed those contents in the generated PDF. The flaw is a Server‑Side Request Forgery (CWE‑918) that can lead to confidential data disclosure.

Affected Systems

The affected product is Stirling‑Tools’ Stirling‑PDF. No specific version range is provided by the CNA, so all publicly available releases that implement the /api/v1/convert/url/pdf endpoint are potentially vulnerable until a fix is released.

Risk and Exploitability

This vulnerability has a CVSS score of 8.6, indicating high severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the /api/v1/convert/url/pdf endpoint accepts POST requests but the authentication requirements are not documented; an attacker could therefore submit a crafted URL to force the server to retrieve arbitrary resources. Successful exploitation can expose internal network addresses, cloud metadata, or other sensitive data through the PDF output, presenting a significant risk to confidentiality and potentially enabling further attacks.

Generated by OpenCVE AI on August 5, 2026 at 15:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest official update from Stirling‑Tools that adds SSRF protection to the /api/v1/convert/url/pdf endpoint.
  • If an update is not yet available, restrict inbound traffic to that endpoint using firewall or network ACLs so only trusted IP addresses can send conversion requests.
  • Configure the WeasyPrint subprocess or the host environment to block access to private and cloud‑metadata IP ranges, thereby preventing internal resource retrieval even if the SSRF defense is bypassed.

Generated by OpenCVE AI on August 5, 2026 at 15:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 05 Aug 2026 13:15:00 +0000

Type Values Removed Values Added
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.
Title Stirling-PDF Server-Side Request Forgery via /api/v1/convert/url/pdf WeasyPrint Subprocess
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-05T15:43:06.938Z

Reserved: 2026-08-05T12:23:34.967Z

Link: CVE-2026-71270

cve-icon Vulnrichment

Updated: 2026-08-05T15:43:03.895Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T15:30:17Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)