A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-51591

CVE-2025-51591: JGM Pandoc v3.6.4 SSRF Vulnerability

CVE-2025-51591 is a Server-Side Request Forgery flaw in JGM Pandoc v3.6.4 that allows attackers to compromise infrastructure through malicious iframes. This article covers technical details, affected versions, and mitigation.

Updated: May 15, 2026

CVE-2025-51591 Overview

CVE-2025-51591 is a Server-Side Request Forgery (SSRF) vulnerability in JGM Pandoc v3.6.4, the widely used universal document converter. Attackers can inject a crafted <iframe> element into untrusted HTML content processed by Pandoc, causing the converter to issue server-side HTTP requests to attacker-chosen destinations. When Pandoc runs inside cloud workloads, this behavior can be abused to reach internal services such as cloud metadata endpoints (for example, the AWS Instance Metadata Service), potentially exposing credentials and other infrastructure data. The vulnerability is tracked as CWE-918: Server-Side Request Forgery.

Critical Impact

An attacker who controls input passed to Pandoc can coerce the host to fetch attacker-specified URLs, enabling reconnaissance and theft of internal data such as cloud instance metadata.

Affected Products

  • JGM Pandoc v3.6.4
  • Pandoc deployments that process untrusted HTML without the --sandbox flag
  • Pandoc invocations using an external --pdf-engine such as wkhtmltopdf

Discovery Timeline

  • 2025-07-11 - CVE-2025-51591 published to the National Vulnerability Database
  • 2026-04-15 - Last updated in the NVD database

Technical Details for CVE-2025-51591

Vulnerability Analysis

Pandoc converts between many document formats and, by default, can retrieve and parse remote resources referenced inside HTML input. When an attacker supplies HTML containing a crafted <iframe> whose src attribute points to an internal address, Pandoc resolves and fetches that resource during conversion. The contents returned by that fetch may then be embedded into the rendered output document, leaking internal data back to the attacker. Public proof-of-concept code demonstrates the issue against the AWS metadata endpoint at http://169.254.169.254/, which exposes IAM credentials when reachable. A working PoC is published at Malayke/CVE-2025-51591-Pandoc-SSRF-POC, and the Wiz Research team documented related Instance Metadata Service (IMDS) abuse patterns in their IMDS anomaly hunting writeup.

Root Cause

The root cause is Pandoc's default willingness to dereference external resources embedded in untrusted HTML during conversion. The renderer treats <iframe> and similar fetching primitives as legitimate document content and resolves them without restricting the destination to safe networks. Without an allowlist or sandbox, requests targeting link-local, loopback, or RFC1918 ranges are issued from the host running Pandoc. Maintainer discussion of the behavior and proposed hardening is tracked in Pandoc issue #11261 and pull request #11262.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction, but successful exploitation depends on the attacker being able to submit HTML to a Pandoc-driven pipeline. Common targets include document conversion services, report generators, and PDF rendering backends that accept user-supplied Markdown or HTML. The attacker embeds an iframe or similar fetching element pointing at an internal URL, then reads the response from the converted output. When Pandoc is paired with an external PDF engine such as wkhtmltopdf, the engine itself may introduce additional SSRF surface, as seen previously in CVE-2022-35583.

No verified exploit code is reproduced here. See the public proof-of-concept linked above for technical details.

Detection Methods for CVE-2025-51591

Indicators of Compromise

  • Outbound HTTP requests from a Pandoc host to link-local addresses such as 169.254.169.254, fd00:ec2::254, or other metadata service endpoints.
  • Pandoc process activity correlated with network connections to internal RFC1918 ranges that the conversion workload does not normally contact.
  • Rendered output documents containing fragments of internal service responses, IAM credential structures, or cloud metadata JSON.

Detection Strategies

  • Inspect HTML and Markdown submitted to conversion pipelines for <iframe>, <embed>, <object>, and <img> tags whose src attributes resolve to internal or link-local addresses.
  • Alert on pandoc or wkhtmltopdf processes initiating outbound connections to addresses outside an explicit allowlist of expected hosts.
  • Correlate document-conversion job identifiers with egress network logs to identify jobs that produced anomalous fetches.

Monitoring Recommendations

  • Forward process, network, and command-line telemetry from systems running Pandoc to a centralized analytics platform for correlation.
  • Monitor IMDS access patterns and enforce IMDSv2 with hop-limit restrictions on cloud instances that run Pandoc workloads.
  • Track Pandoc version inventory across build servers, CI runners, and document services to identify hosts still running v3.6.4 or earlier.

How to Mitigate CVE-2025-51591

Immediate Actions Required

  • Run Pandoc with the --sandbox option whenever it processes untrusted input, which restricts file and network access during conversion.
  • Move document conversion to pandoc-server, which enforces sandboxing by default for hosted workloads.
  • Enforce IMDSv2 with a low hop limit on cloud instances so that SSRF against 169.254.169.254 cannot retrieve credentials without a session token.
  • Restrict egress from Pandoc hosts so they cannot reach metadata services, loopback, or internal management ranges.

Patch Information

Upgrade to a Pandoc release that incorporates the upstream hardening discussed in pull request #11262 and the related commit 67edf7c. Review the maintainer guidance in Pandoc discussion #11200 and issue #10682 for the recommended configuration when handling untrusted HTML.

Workarounds

  • Pre-process incoming HTML to strip or rewrite tags that trigger remote fetches, including <iframe>, <embed>, <object>, <link>, and remote <img> sources.
  • Run Pandoc inside a network namespace or container with no route to internal services or metadata endpoints.
  • Avoid pairing Pandoc with external PDF engines such as wkhtmltopdf unless those engines are also patched and sandboxed.
bash
# Configuration example: invoke Pandoc safely on untrusted input
pandoc --sandbox \
  --from=html \
  --to=pdf \
  --output=/tmp/out.pdf \
  /tmp/untrusted-input.html

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechPandoc

  • SeverityLOW

  • CVSS Score3.7

  • EPSS Probability0.40%

  • Known ExploitedYes
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Technical References
  • JGM Home Page

  • Pandoc Home Page

  • GitHub CVE-2025-51591 Research

  • GitHub Pandoc Discussion

  • GitHub Pandoc Issue #10682

  • GitHub Pandoc Issue #11261

  • GitHub Pandoc Issue #8874

  • GitHub Pandoc Pull Request #11262

  • Wiz Blog Zero-Day Analysis

  • GitHub Pandoc Commit

  • Pandoc Project Site

  • JGM Home Page

  • Pandoc Home Page
  • Latest CVEs
  • CVE-2024-8261: Prolizyazilim OBS Auth Bypass Vulnerability

  • CVE-2024-13068: LimonDesk Auth Bypass Vulnerability

  • CVE-2025-53679: Fortinet FortiSandbox RCE Vulnerability

  • CVE-2026-9446: Simple POS Inventory System SQLi Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English