The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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 via crafted iframes. This article covers technical details, affected versions, and mitigations.

Published: March 11, 2026

CVE-2025-51591 Overview

A Server-Side Request Forgery (SSRF) vulnerability exists in JGM Pandoc v3.6.4 that allows attackers to gain access to and potentially compromise infrastructure by injecting a crafted iframe. The vulnerability arises from Pandoc's default behavior of retrieving and parsing untrusted HTML content, which can be exploited to make unauthorized requests to internal services and resources.

This SSRF vulnerability is particularly concerning in cloud environments where attackers could target Instance Metadata Services (IMDS) to harvest cloud credentials and escalate privileges within the infrastructure.

Critical Impact

Attackers can leverage this SSRF vulnerability to access internal network resources, cloud metadata services, and potentially compromise entire infrastructure through crafted iframe injection in Pandoc document conversions.

Affected Products

  • JGM Pandoc v3.6.4
  • Pandoc installations using external PDF engines (e.g., wkhtmltopdf)
  • Pandoc deployments without --sandbox option enabled

Discovery Timeline

  • July 11, 2025 - CVE-2025-51591 published to NVD
  • November 24, 2025 - Last updated in NVD database

Technical Details for CVE-2025-51591

Vulnerability Analysis

This Server-Side Request Forgery (SSRF) vulnerability in Pandoc stems from the application's handling of HTML content during document conversion. When Pandoc processes untrusted input containing crafted iframes or other HTML elements with external resource references, it can be manipulated to make requests to arbitrary URLs, including internal network addresses and cloud metadata endpoints.

The vulnerability is classified under CWE-918 (Server-Side Request Forgery), which describes scenarios where an attacker can abuse functionality on the server to read or update internal resources. In Pandoc's case, the document conversion functionality becomes the attack vector.

A proof-of-concept demonstrating this vulnerability is publicly available, increasing the risk of exploitation. According to research documented by Wiz on IMDS anomaly hunting, SSRF vulnerabilities like this one are frequently used to access cloud Instance Metadata Services (IMDS) for credential theft.

Root Cause

The root cause lies in Pandoc's default behavior of fetching and parsing external resources referenced in HTML content without proper URL validation or sandboxing. Several input formats including LaTeX, Org, RST, and Typst support include directives that can be abused to access local files or make network requests to internal services.

The GitHub Pandoc discussion #11200 and related issues (#10682, #11261, #8874) document the security implications of this default behavior and the need for proper sandboxing.

Attack Vector

The attack vector is network-based, requiring no user interaction. An attacker can exploit this vulnerability by submitting malicious HTML content containing crafted iframe elements or include directives to a Pandoc instance. When Pandoc processes this content, it makes requests to attacker-specified URLs, which can include:

  • Internal network services (e.g., http://localhost:8080/admin)
  • Cloud metadata endpoints (e.g., http://169.254.169.254/latest/meta-data/)
  • Internal databases and APIs

The vulnerability is exacerbated when Pandoc is used with external PDF engines like wkhtmltopdf, as documented in related CVE-2022-35583.

text
    writer could in principle do anything on your file system. Please
    audit filters and custom writers very carefully before using them.
 
-2. Several input formats (including HTML, Org, and RST) support `include`
-   directives that allow the contents of a file to be included in the
-   output. An untrusted attacker could use these to view the contents of
-   files on the file system.  (Using the `--sandbox` option can
-   protect against this threat.)
+2. Several input formats (including LaTeX, Org, RST, and Typst)
+   support `include` directives that allow the contents of a file to be
+   included in the output. An untrusted attacker could use these
+   to view the contents of files on the file system. (Using the
+   `--sandbox` option can protect against this threat.)
 
 3. Several output formats (including RTF, FB2, HTML with
    `--self-contained`, EPUB, Docx, and ODT) will embed encoded

Source: GitHub Pandoc Commit 67edf7ce - Security patch updating MANUAL.txt documentation

Detection Methods for CVE-2025-51591

Indicators of Compromise

  • Unexpected outbound network connections from Pandoc processes to internal IP ranges (e.g., 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
  • Requests to cloud metadata endpoints (169.254.169.254) originating from document conversion services
  • Pandoc process logs showing external URL fetch operations for suspicious destinations
  • Anomalous file access patterns indicating attempts to read sensitive system files through include directives

Detection Strategies

  • Implement network monitoring to detect outbound connections from Pandoc processes to internal network segments or cloud metadata services
  • Deploy web application firewalls (WAF) with rules to inspect and block HTML content containing suspicious iframe elements or URL schemes targeting internal resources
  • Enable detailed logging for Pandoc operations and monitor for unusual URL fetch patterns
  • Use SentinelOne's behavioral AI to detect anomalous process network activity from document conversion applications

Monitoring Recommendations

  • Configure alerts for any network traffic from Pandoc processes to RFC 1918 private address spaces
  • Monitor cloud provider security logs for IMDS access from unexpected sources
  • Implement file integrity monitoring on sensitive configuration files that could be targeted via include directives
  • Set up anomaly detection for unusual Pandoc process behavior including unexpected child processes or network connections

How to Mitigate CVE-2025-51591

Immediate Actions Required

  • Enable the --sandbox option when running Pandoc to restrict file system access and mitigate SSRF risks
  • Use pandoc-server instead of direct Pandoc invocation for better security isolation
  • Review and restrict external PDF engine usage, particularly wkhtmltopdf, which has known SSRF vulnerabilities
  • Implement input validation to sanitize HTML content before processing with Pandoc

Patch Information

A security update addressing the documentation and security guidance is available in commit 67edf7ce. This update clarifies which input formats support include directives that can lead to SSRF vulnerabilities.

Organizations should review the Pandoc Documentation for the latest security recommendations and ensure they are running the most recent version with appropriate security configurations.

For detailed vulnerability research, refer to the CVE-2025-51591 Research repository and the public PoC.

Workarounds

  • Always use the --sandbox flag when processing untrusted content: pandoc --sandbox input.html -o output.pdf
  • Deploy Pandoc in a network-isolated environment with no access to internal services or cloud metadata endpoints
  • Implement egress filtering to block outbound connections from document processing services to sensitive internal networks
  • Consider using pandoc-server which provides additional security boundaries for document conversion
bash
# Configuration example
# Enable sandbox mode when running Pandoc
pandoc --sandbox input.html -o output.pdf

# Use pandoc-server for better isolation
pandoc-server --port 3030 --sandbox

# Block metadata endpoint access at the network level (iptables example)
iptables -A OUTPUT -d 169.254.169.254 -j DROP

# Restrict Pandoc to specific output formats without external dependencies
pandoc --sandbox --pdf-engine=pdflatex input.md -o output.pdf

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.07%

  • 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 Homepage

  • Pandoc Homepage

  • 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 on IMDS Anomaly Hunting

  • GitHub Pandoc Commit 67edf7ce

  • Pandoc Documentation

  • JGM Homepage

  • Pandoc Homepage
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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