{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "67edf7ce7cd3563a180ae44bd122b012e22364f8"
            }
          ],
          "repo": "https://github.com/jgm/pandoc",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2025-51591",
  "modified": "2026-04-01T23:08:43.452431019Z",
  "published": "2025-07-11T14:15:27.347Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/jgm/pandoc/discussions/11200"
    },
    {
      "type": "WEB",
      "url": "https://pandoc.org"
    },
    {
      "type": "WEB",
      "url": "not-applicable:http://jgm.com/"
    },
    {
      "type": "WEB",
      "url": "not-applicable:http://pandoc.com/"
    },
    {
      "type": "WEB",
      "url": "http://jgm.com"
    },
    {
      "type": "WEB",
      "url": "http://pandoc.com"
    },
    {
      "type": "WEB",
      "url": "https://github.com/RealestName/Vulnerability-Research/tree/main/CVE-2025-51591"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/jgm/pandoc/issues/8874"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/jgm/pandoc/issues/10682"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/jgm/pandoc/issues/11261"
    },
    {
      "type": "FIX",
      "url": "https://github.com/jgm/pandoc/pull/11262"
    },
    {
      "type": "FIX",
      "url": "https://github.com/jgm/pandoc/commit/67edf7ce7cd3563a180ae44bd122b012e22364f8"
    },
    {
      "type": "ARTICLE",
      "url": "https://www.wiz.io/blog/imds-anomaly-hunting-zero-day"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ]
}