Vulnerability · Published Jul 11, 2025 · Assigned by mitre
CVE-2025-51591
Low 3.7
In plain English
A low-severity server-side request forgery in the pandoc package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pandoc | no fix listed | DEBIAN-CVE-2025-51591 |
| Debian:13 | pandoc | no fix listed | DEBIAN-CVE-2025-51591 |
| Debian:14 | pandoc | no fix listed | DEBIAN-CVE-2025-51591 |
| Ubuntu:22.04:LTS | pandoc | no fix listed | UBUNTU-CVE-2025-51591 |
| Ubuntu:24.04:LTS | pandoc | no fix listed | UBUNTU-CVE-2025-51591 |
| Ubuntu:25.10 | pandoc | no fix listed | UBUNTU-CVE-2025-51591 |
| Ubuntu:26.04:LTS | pandoc | no fix listed | UBUNTU-CVE-2025-51591 |
| Ubuntu:26.10 | pandoc | no fix listed | UBUNTU-CVE-2025-51591 |
Affected products (as reported)
Weakness: CWE-918 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
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
- https://pandoc.org product
- https://github.com/jgm/pandoc/commit/67edf7ce7cd3563a180ae44bd122b012e22364f8 patch
- not-applicable:http://jgm.com/ not-applicable
- not-applicable:http://pandoc.com/ not-applicable