{"id":"CVE-2025-51591","aliases":["DEBIAN-CVE-2025-51591","EUVD-2025-21134","GHSA-mcv3-ch54-xqfh","UBUNTU-CVE-2025-51591"],"status":"published","title":"A Server-Side Request Forgery (SSRF) in JGM Pandoc v3.6.4 allows attackers to gain access to and...","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.","severity":{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-09","score":0.00738,"percentile":0.54817,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-918"],"published":"2025-07-11T00:00:00Z","modified":"2026-10-28T02:30:39Z","exploits":[{"source":"pocgithub","id":"Malayke/CVE-2025-51591-Pandoc-SSRF-POC","title":"Malayke/CVE-2025-51591-Pandoc-SSRF-POC","date":"2025-09-25","url":"https://github.com/Malayke/CVE-2025-51591-Pandoc-SSRF-POC"}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"pandoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.17.1.1+~git20230125+ds-1","2.17.1.1-1.1","2.17.1.1-2","2.17.1.1-2~deb12u1","2.17.1.1-3","3.0.1+ds-1","3.0.1+ds-2","3.0.1+ds-3","3.1.11.1+ds-1","3.1.11.1+ds-2","3.1.11.1+ds-3","3.1.11.1+ds-4","3.1.3+ds-1","3.1.3+ds-2","3.1.3+ds-3","3.1.3+ds-3+loong64","3.10-1","3.10.1-1","3.10.2-1","3.7.0.2+ds-1","3.7.0.2+ds1-1","3.9-1","3.9.0.2-1"]},{"source":"osv","ecosystem":"Debian:13","package":"pandoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.11.1+ds-2","3.1.11.1+ds-3","3.1.11.1+ds-4","3.10-1","3.10.1-1","3.10.2-1","3.7.0.2+ds-1","3.7.0.2+ds1-1","3.9-1","3.9.0.2-1"]},{"source":"osv","ecosystem":"Debian:14","package":"pandoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.11.1+ds-2","3.1.11.1+ds-3","3.1.11.1+ds-4","3.10-1","3.10.1-1","3.10.2-1","3.7.0.2+ds-1","3.7.0.2+ds1-1","3.9-1","3.9.0.2-1"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"pandoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11.1-2build2","1.11.1-4","1.11.1-5","1.12.2.1-1","1.12.2.1-1build1","1.12.2.1-1build2"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"pandoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.13.2.1~dfsg-1build6","1.15.1.1~dfsg-2","1.15.1.1~dfsg-2build1","1.16.0.2~dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"pandoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.19.2.1.0-1","1.19.2.4~dfsg-1build1","1.19.2.4~dfsg-1build2","1.19.2.4~dfsg-1build3","1.19.2.4~dfsg-1build4"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"pandoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5-2","2.5-3","2.5-3build1","2.5-3build2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"pandoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.9.2.1-1ubuntu4","2.9.2.1-3ubuntu1","2.9.2.1-3ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"pandoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.17.1.1-3ubuntu1","3.0.1+ds-3","3.1.3+ds-1","3.1.3+ds-2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"pandoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.11.1+ds-2","3.1.11.1+ds-4"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"pandoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.7.0.2+ds-1","3.9.0.2-1","3.10-1","3.11-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"pandoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.11.1+ds-4","3.7.0.2+ds-1"]}],"references":[{"url":"https://github.com/RealestName/Vulnerability-Research/tree/main/CVE-2025-51591","tags":["web"]},{"url":"https://github.com/jgm/pandoc/issues/8874","tags":["report"]},{"url":"https://github.com/jgm/pandoc/issues/10682","tags":["vendor-advisory","issue-tracking","report"]},{"url":"https://github.com/jgm/pandoc/discussions/11200","tags":["web"]},{"url":"https://github.com/jgm/pandoc/issues/11261","tags":["report"]},{"url":"https://github.com/jgm/pandoc/pull/11262","tags":["fix"]},{"url":"https://www.wiz.io/blog/imds-anomaly-hunting-zero-day","tags":["technical-description","article"]},{"url":"https://pandoc.org","tags":["product","web"]},{"url":"https://github.com/jgm/pandoc/commit/67edf7ce7cd3563a180ae44bd122b012e22364f8","tags":["patch","fix","report"]},{"url":"not-applicable:http://jgm.com/","tags":["not-applicable","web"]},{"url":"not-applicable:http://pandoc.com/","tags":["not-applicable","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-51591","tags":["advisory"]},{"url":"http://jgm.com"},{"url":"http://pandoc.com"},{"url":"https://github.com/advisories/GHSA-mcv3-ch54-xqfh"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/51xxx/CVE-2025-51591.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-51591","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-51591","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-51591","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2025-51591","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.","status":"published","published":"2025-07-11T00:00:00Z","modified":"2026-07-05T16:11:02.049Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low","assessor":"adp"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T14:32:30.302289Z"}],"euvd":[{"id":"EUVD-2025-21134","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.","status":"published","published":"2025-07-11T00:00:00Z","modified":"2026-07-05T16:11:02Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low"}],"updated_at":"2026-11-02T18:20:13.899968Z"}],"ghsa":[{"id":"GHSA-mcv3-ch54-xqfh","title":"A Server-Side Request Forgery (SSRF) in JGM Pandoc v3.6.4 allows attackers to gain access to and...","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.","status":"published","published":"2025-07-11T15:31:36Z","modified":"2025-09-24T15:31:13Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"medium"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T15:03:44.74353Z"}],"nvd":[{"id":"CVE-2025-51591","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.","status":"published","published":"2025-07-11T14:15:27.347Z","modified":"2026-07-05T17:17:15.48Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low","assessor":"secondary"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T14:11:18.285862Z"}],"osv":[{"id":"CVE-2025-51591","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.","status":"published","published":"2025-07-11T00:00:00Z","modified":"2026-10-28T02:30:39.074487561Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low"}],"updated_at":"2026-11-02T15:44:50.45326Z"},{"id":"DEBIAN-CVE-2025-51591","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.","status":"published","published":"2025-07-11T14:15:27.347Z","modified":"2026-09-01T20:05:53.533989021Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low"}],"updated_at":"2026-11-02T15:45:47.378563Z"},{"id":"UBUNTU-CVE-2025-51591","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.","status":"published","published":"2025-07-11T14:15:00Z","modified":"2026-10-17T12:57:06.31317722Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low"}],"updated_at":"2026-11-02T16:55:50.31802Z"}]}}
