{"id":"UBUNTU-CVE-2025-51591","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.","modified":"2026-05-20T16:11:23.791651246Z","published":"2025-07-11T14:15:00Z","upstream":["CVE-2025-51591"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-51591"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-51591"},{"type":"REPORT","url":"https://github.com/jgm/pandoc/issues/10682"},{"type":"REPORT","url":"https://github.com/jgm/pandoc/commit/67edf7ce7cd3563a180ae44bd122b012e22364f8"}],"affected":[{"package":{"name":"pandoc","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/pandoc?arch=source&distro=trusty"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libghc-pandoc-prof","binary_version":"1.12.2.1-1build2"},{"binary_name":"pandoc","binary_version":"1.12.2.1-1build2"},{"binary_name":"pandoc-data","binary_version":"1.12.2.1-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-51591.json"}},{"package":{"name":"pandoc","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/pandoc?arch=source&distro=xenial"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libghc-pandoc-prof","binary_version":"1.16.0.2~dfsg-1"},{"binary_version":"1.16.0.2~dfsg-1","binary_name":"pandoc"},{"binary_name":"pandoc-data","binary_version":"1.16.0.2~dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-51591.json"}},{"package":{"name":"pandoc","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/pandoc?arch=source&distro=bionic"},"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"],"ecosystem_specific":{"binaries":[{"binary_version":"1.19.2.4~dfsg-1build4","binary_name":"libghc-pandoc-prof"},{"binary_name":"pandoc","binary_version":"1.19.2.4~dfsg-1build4"},{"binary_name":"pandoc-data","binary_version":"1.19.2.4~dfsg-1build4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-51591.json"}},{"package":{"name":"pandoc","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/pandoc?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5-2","2.5-3","2.5-3build1","2.5-3build2"],"ecosystem_specific":{"binaries":[{"binary_name":"libghc-pandoc-prof","binary_version":"2.5-3build2"},{"binary_version":"2.5-3build2","binary_name":"pandoc"},{"binary_version":"2.5-3build2","binary_name":"pandoc-data"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-51591.json"}},{"package":{"name":"pandoc","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pandoc?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.9.2.1-1ubuntu4","2.9.2.1-3ubuntu1","2.9.2.1-3ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.9.2.1-3ubuntu2","binary_name":"libghc-pandoc-prof"},{"binary_name":"pandoc","binary_version":"2.9.2.1-3ubuntu2"},{"binary_name":"pandoc-data","binary_version":"2.9.2.1-3ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-51591.json"}},{"package":{"name":"pandoc","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/pandoc?arch=source&distro=noble"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"pandoc","binary_version":"3.1.3+ds-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-51591.json"}},{"package":{"name":"pandoc","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/pandoc?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.11.1+ds-2","3.1.11.1+ds-4"],"ecosystem_specific":{"binaries":[{"binary_name":"pandoc","binary_version":"3.1.11.1+ds-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-51591.json"}},{"package":{"name":"pandoc","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/pandoc?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.11.1+ds-4","3.7.0.2+ds-1"],"ecosystem_specific":{"binaries":[{"binary_name":"pandoc","binary_version":"3.7.0.2+ds-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-51591.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}