Skip to content
OpenAdvisories
Low · 3.7 Public exploit CVE-2025-51591 EUVD-2025-21134GHSA-mcv3-ch54-xqfh

A Server-Side Request Forgery (SSRF) in JGM Pandoc v3.6.4 allows attackers to gain access to and compromise the whole infrastructure via in…

Published Jul 11, 2025 · Updated Jul 5, 2026 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
Debian 14 pandoc No fix yet —
Debian 13 pandoc No fix yet —
Debian 12 pandoc No fix yet —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

References