CVE-2025-51591
A Server-Side Request Forgery (SSRF) in JGM Pandoc v3.6.4 allows …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- jgm.com
- pandoc.com
- github.com/RealestName/Vulnerability-Research/tree/main/CVE-2025-51591
- github.com/jgm/pandoc/discussions/11200
- github.com/jgm/pandoc/issues/10682
- github.com/jgm/pandoc/issues/11261
- github.com/jgm/pandoc/issues/8874
- github.com/jgm/pandoc/pull/11262
- nvd.nist.gov/vuln/detail/CVE-2025-51591
- cve.org/CVERecord?id=CVE-2025-51591
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.