CVE-2025-51591: SSRF
A Server-Side Request Forgery (SSRF) in JGM Pandoc v3.6.4 allows attackers to gain access to and compromise the whole infrastructure via injecting a crafted iframe. Note: Some users have stated that Pandoc by default can retrieve and parse untrusted HTML content which can enable SSRF vulnerabilities. Using the ‘--sandbox’ option or ‘pandoc-server’ can mitigate such vulnerabilities. Using pandoc with an external ‘--pdf-engine’ can also enable SSRF vulnerabilities, such as CVE-2022-35583 in wkhtmltopdf.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Run Pandoc with the --sandbox option to mitigate the SSRF vulnerability (JGM Pandoc v3.6.4).
Pandoc --sandbox = enabled - Configuration
Use pandoc-server to mitigate SSRF vulnerabilities affecting Pandoc (JGM Pandoc v3.6.4).
pandoc-server usage = use pandoc-server - Compensating control
Avoid using Pandoc configurations that retrieve and parse untrusted HTML content by default, as this can enable SSRF vulnerabilities.
Event History
Frequently Asked Questions
What is the severity of CVE-2025-51591?
CVE-2025-51591 is classified as a critical vulnerability due to its potential for server-side request forgery and significant impact on infrastructure security.
How do I fix CVE-2025-51591?
To mitigate CVE-2025-51591, it is essential to update JGM Pandoc to the latest version where the vulnerability is patched.
What are the potential threats associated with CVE-2025-51591?
CVE-2025-51591 can allow attackers to exploit SSRF and gain unauthorized access to internal systems and resources.
Which versions of JGM Pandoc are affected by CVE-2025-51591?
CVE-2025-51591 affects JGM Pandoc version 3.6.4 specifically.
How can an attacker exploit CVE-2025-51591?
An attacker can exploit CVE-2025-51591 by injecting a crafted iframe to manipulate server requests and breach the server's security.