CVE-2025-51591: SSRF

Published Jul 11, 2025
·
Updated

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 Software

14 affected components
JGM Pandoc
ubuntu/pandoc*
ubuntu/pandoc*
ubuntu/pandoc*
ubuntu/pandoc*
ubuntu/pandoc*
ubuntu/pandoc*
ubuntu/pandoc*
ubuntu/pandoc*
ubuntu/pandoc*
debian/pandoc*
debian/pandoc*
debian/pandoc*
debian/pandoc<=2.17.1.1-2~deb12u1, <=3.1.11.1+ds-2, <=3.11-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Run Pandoc with the --sandbox option to mitigate the SSRF vulnerability (JGM Pandoc v3.6.4).

    Pandoc --sandbox = enabled
  2. Configuration

    Use pandoc-server to mitigate SSRF vulnerabilities affecting Pandoc (JGM Pandoc v3.6.4).

    pandoc-server usage = use pandoc-server
  3. Compensating control

    Avoid using Pandoc configurations that retrieve and parse untrusted HTML content by default, as this can enable SSRF vulnerabilities.

Event History

Jul 11, 2025
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via OSV·02:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·02:15 PM
Description
Data Sourced
via NVD·03:15 PM
SeverityWeakness
Sep 24, 2025
News Published
via The Hacker News·07:15 AM
Known Exploited
via The Hackers News·07:15 AM
Sep 25, 2025
Exploit Published
via GitHub·06:29 AM
Oct 7, 2025
Updated
via NVD·04:15 PM
Severity
Event
via NVD·04:15 PM
Nov 24, 2025
Updated
via MITRE·09:52 PM
Description
Updated
via NVD·10:15 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2025-51591?

CVE-2025-51591 is classified as a critical vulnerability due to its potential for server-side request forgery and significant impact on infrastructure security.

2

How do I fix CVE-2025-51591?

To mitigate CVE-2025-51591, it is essential to update JGM Pandoc to the latest version where the vulnerability is patched.

3

What are the potential threats associated with CVE-2025-51591?

CVE-2025-51591 can allow attackers to exploit SSRF and gain unauthorized access to internal systems and resources.

4

Which versions of JGM Pandoc are affected by CVE-2025-51591?

CVE-2025-51591 affects JGM Pandoc version 3.6.4 specifically.

5

How can an attacker exploit CVE-2025-51591?

An attacker can exploit CVE-2025-51591 by injecting a crafted iframe to manipulate server requests and breach the server's security.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203