CVE-2025-51591: pandoc · Server-Side Request Forgery (SSRF)
Affects pandocSource CVE Database V5
Mentioned vulnerabilities
Not known to be exploited · CVSS 3.7 Low.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 54% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 11 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubjgm/pandocpkg:github/jgm/pandocOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Users should mitigate the risk by using the '--sandbox' option or running Pandoc in 'pandoc-server' mode to restrict processing of untrusted HTML content. Avoid using external '--pdf-engine' options that may introduce additional SSRF risks. Monitor vendor advisories for any future patches or updates.
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.
References
- github.com/RealestName/Vulnerability-Research/tree/main/CVE-2025-51591 (opens in a new tab)
- github.com/jgm/pandoc/issues/8874 (opens in a new tab)
- github.com/jgm/pandoc/issues/10682 (opens in a new tab)
- github.com/jgm/pandoc/discussions/11200 (opens in a new tab)
- github.com/jgm/pandoc/issues/11261 (opens in a new tab)
- github.com/jgm/pandoc/pull/11262 (opens in a new tab)
- wiz.io/blog/imds-anomaly-hunting-zero-day (opens in a new tab)
- pandoc.org (opens in a new tab)
- github.com/jgm/pandoc/commit/67edf7ce7cd3563a180ae44bd122b012e22364f8 (opens in a new tab)