Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pandoc | No fix yet | — |
| Debian 13 | pandoc | No fix yet | — |
| Debian 12 | pandoc | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | pandoc | No fix yet | — |
| Ubuntu 26.04 LTS | pandoc | No fix yet | — |
| Ubuntu 25.10 | pandoc | No fix yet | — |
| Ubuntu 24.04 LTS | pandoc | No fix yet | — |
| Ubuntu 22.04 LTS | pandoc | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | pandoc | No fix yet | — |
| Ubuntu 18.04 LTS | pandoc | No fix yet | — |
| Ubuntu 16.04 LTS | pandoc | No fix yet | — |
| Ubuntu 14.04 LTS | pandoc | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
Malayke/CVE-2025-51591-Pandoc-SSRF-POC ★ 0 · Sep 25, 2025
CVE-2025-51591 Pandoc SSRF vulnerability Proof of Concept
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://github.com/RealestName/Vulnerability-Research/tree/main/CVE-2025-51591
- https://github.com/jgm/pandoc/issues/8874
- https://github.com/jgm/pandoc/issues/10682
- https://github.com/jgm/pandoc/discussions/11200
- https://github.com/jgm/pandoc/issues/11261
- https://github.com/jgm/pandoc/pull/11262
- https://www.wiz.io/blog/imds-anomaly-hunting-zero-day