---
id: CVE-2025-51591
title: >-
  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
summary: >-
  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
  par…
severity: low
cvss: 3.7
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-918
published: '2025-07-11'
updated: '2026-07-05'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-51591'
references:
  - url: >-
      https://github.com/RealestName/Vulnerability-Research/tree/main/CVE-2025-51591
    label: cve@mitre.org
  - url: 'https://github.com/jgm/pandoc/discussions/11200'
    label: cve@mitre.org
  - url: 'https://github.com/jgm/pandoc/issues/10682'
    label: cve@mitre.org
  - url: 'https://github.com/jgm/pandoc/issues/11261'
    label: cve@mitre.org
  - url: 'https://github.com/jgm/pandoc/issues/8874'
    label: cve@mitre.org
  - url: 'https://github.com/jgm/pandoc/pull/11262'
    label: cve@mitre.org
  - url: 'https://www.wiz.io/blog/imds-anomaly-hunting-zero-day'
    label: cve@mitre.org
  - url: >-
      https://github.com/jgm/pandoc/commit/67edf7ce7cd3563a180ae44bd122b012e22364f8
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/jgm/pandoc/issues/10682'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://pandoc.org'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://www.wiz.io/blog/imds-anomaly-hunting-zero-day'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'not-applicable:http://jgm.com/'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'not-applicable:http://pandoc.com/'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - exploit-available
epss: 0.00665
epssPercentile: 0.5039
ingestedAt: '2026-07-06T16:44:34.244Z'
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/Malayke/CVE-2025-51591-Pandoc-SSRF-POC'
  checkedAt: '2026-09-24T07:52:53.520Z'
exploitAvailable: true
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
