CVE-2025-51591 Server-side request forgery in n/a

Low 3.7 Published Updated

Attackers can exploit SSRF in Pandoc via crafted iframes to access internal infrastructure, mitigated by using sandbox mode or pandoc-server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-51591?

CVE-2025-51591 is a low-severity server-side request forgery vulnerability in n/a, published on 11 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-918

Which versions are affected by CVE-2025-51591?

How do I fix CVE-2025-51591?

No fix has been published for CVE-2025-51591 yet. Limit exposure of the affected software until one is available.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2025-51591 being exploited?

There is no known exploitation of CVE-2025-51591 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as DEBIAN-CVE-2025-51591, GHSA-mcv3-ch54-xqfh, UBUNTU-CVE-2025-51591.

Is CVE-2025-51591 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free