pandoc — security advisory
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.
- Products
- pandoc
- Affected 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, 1.13.2.1~dfsg-1build6, 1.15.1.1~dfsg-2, 1.15.1.1~dfsg-2build1, 1.16.0.2~dfsg-1, 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, 2.17.1.1-3ubuntu1, 2.5-2, 2.5-3, 2.5-3build1, 2.5-3build2, 2.9.2.1-1ubuntu4, 2.9.2.1-3ubuntu1, 2.9.2.1-3ubuntu2, 3.0.1+ds-3, 3.1.11.1+ds-2, 3.1.11.1+ds-4, 3.1.3+ds-1, 3.1.3+ds-2, 3.10-1, 3.11-1, 3.7.0.2+ds-1, 3.9.0.2-1
- Fixed versions
- Not specified
- CVEs
- CVE-2025-51591
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:33 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2025-51591
pandoc
Fixed versions: Not specified
pandoc
Fixed versions: Not specified
pandoc
Fixed versions: Not specified
pandoc
Fixed versions: Not specified
pandoc
Fixed versions: Not specified
pandoc
Fixed versions: Not specified
pandoc
Fixed versions: Not specified
pandoc
Fixed versions: Not specified
pandoc
Fixed versions: Not specified
Complete source record
{
"id": "6f904f8e0b7c313090968708e2acddca9a87ce4e13ba5a132a9fc9de426b22e6",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-51591",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2025-51591",
"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 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.",
"evidence": "osv:UBUNTU-CVE-2025-51591",
"products": [
{
"name": {
"value": "pandoc",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.11.1-2build2",
"evidence": "/affected/0/versions"
},
{
"value": "1.11.1-4",
"evidence": "/affected/0/versions"
},
{
"value": "1.11.1-5",
"evidence": "/affected/0/versions"
},
{
"value": "1.12.2.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.12.2.1-1build1",
"evidence": "/affected/0/versions"
},
{
"value": "1.12.2.1-1build2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "pandoc",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.13.2.1~dfsg-1build6",
"evidence": "/affected/1/versions"
},
{
"value": "1.15.1.1~dfsg-2",
"evidence": "/affected/1/versions"
},
{
"value": "1.15.1.1~dfsg-2build1",
"evidence": "/affected/1/versions"
},
{
"value": "1.16.0.2~dfsg-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "pandoc",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.19.2.1.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.19.2.4~dfsg-1build1",
"evidence": "/affected/2/versions"
},
{
"value": "1.19.2.4~dfsg-1build2",
"evidence": "/affected/2/versions"
},
{
"value": "1.19.2.4~dfsg-1build3",
"evidence": "/affected/2/versions"
},
{
"value": "1.19.2.4~dfsg-1build4",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "pandoc",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.5-2",
"evidence": "/affected/3/versions"
},
{
"value": "2.5-3",
"evidence": "/affected/3/versions"
},
{
"value": "2.5-3build1",
"evidence": "/affected/3/versions"
},
{
"value": "2.5-3build2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "pandoc",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.9.2.1-1ubuntu4",
"evidence": "/affected/4/versions"
},
{
"value": "2.9.2.1-3ubuntu1",
"evidence": "/affected/4/versions"
},
{
"value": "2.9.2.1-3ubuntu2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "pandoc",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.17.1.1-3ubuntu1",
"evidence": "/affected/5/versions"
},
{
"value": "3.0.1+ds-3",
"evidence": "/affected/5/versions"
},
{
"value": "3.1.3+ds-1",
"evidence": "/affected/5/versions"
},
{
"value": "3.1.3+ds-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "pandoc",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.1.11.1+ds-2",
"evidence": "/affected/6/versions"
},
{
"value": "3.1.11.1+ds-4",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "pandoc",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.7.0.2+ds-1",
"evidence": "/affected/7/versions"
},
{
"value": "3.9.0.2-1",
"evidence": "/affected/7/versions"
},
{
"value": "3.10-1",
"evidence": "/affected/7/versions"
},
{
"value": "3.11-1",
"evidence": "/affected/7/versions"
}
]
},
{
"name": {
"value": "pandoc",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.1.11.1+ds-4",
"evidence": "/affected/8/versions"
},
{
"value": "3.7.0.2+ds-1",
"evidence": "/affected/8/versions"
}
]
}
],
"severity": "low",
"structured": {
"id": "UBUNTU-CVE-2025-51591",
"aliases": [
"UBUNTU-CVE-2025-51591"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc?arch=source&distro=trusty",
"ecosystem": "Ubuntu:14.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-51591.json"
},
"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"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-51591.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libghc-pandoc-prof",
"binary_version": "1.16.0.2~dfsg-1"
},
{
"binary_name": "pandoc",
"binary_version": "1.16.0.2~dfsg-1"
},
{
"binary_name": "pandoc-data",
"binary_version": "1.16.0.2~dfsg-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-51591.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libghc-pandoc-prof",
"binary_version": "1.19.2.4~dfsg-1build4"
},
{
"binary_name": "pandoc",
"binary_version": "1.19.2.4~dfsg-1build4"
},
{
"binary_name": "pandoc-data",
"binary_version": "1.19.2.4~dfsg-1build4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"2.5-2",
"2.5-3",
"2.5-3build1",
"2.5-3build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-51591.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libghc-pandoc-prof",
"binary_version": "2.5-3build2"
},
{
"binary_name": "pandoc",
"binary_version": "2.5-3build2"
},
{
"binary_name": "pandoc-data",
"binary_version": "2.5-3build2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.9.2.1-1ubuntu4",
"2.9.2.1-3ubuntu1",
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libghc-pandoc-prof",
"binary_version": "2.9.2.1-3ubuntu2"
},
{
"binary_name": "pandoc",
"binary_version": "2.9.2.1-3ubuntu2"
},
{
"binary_name": "pandoc-data",
"binary_version": "2.9.2.1-3ubuntu2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.17.1.1-3ubuntu1",
"3.0.1+ds-3",
"3.1.3+ds-1",
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pandoc",
"binary_version": "3.1.3+ds-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"3.1.11.1+ds-2",
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pandoc",
"binary_version": "3.1.11.1+ds-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"3.7.0.2+ds-1",
"3.9.0.2-1",
"3.10-1",
"3.11-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-51591.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pandoc",
"binary_version": "3.11-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"3.1.11.1+ds-4",
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pandoc",
"binary_version": "3.7.0.2+ds-1"
}
]
}
}
],
"modified": "2026-10-17T12:57:06.313177220Z",
"provider": "osv",
"upstream": [
"CVE-2025-51591"
],
"references": [
"https://ubuntu.com/security/CVE-2025-51591",
"https://www.cve.org/CVERecord?id=CVE-2025-51591",
"https://github.com/jgm/pandoc/issues/10682",
"https://github.com/jgm/pandoc/commit/67edf7ce7cd3563a180ae44bd122b012e22364f8"
]
},
"related_cves": [
{
"value": "CVE-2025-51591",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 356723,
"published_at": "2025-07-11T14:15:00+00:00"
}