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-22547

CVE-2025-22547: JK Html To Pdf Stored XSS Vulnerability

CVE-2025-22547 is a stored cross-site scripting flaw in JK Html To Pdf plugin that allows attackers to inject malicious scripts. This post covers the technical details, affected versions, security impact, and mitigation.

Published: April 29, 2026

CVE-2025-22547 Overview

CVE-2025-22547 is a Stored Cross-Site Scripting (XSS) vulnerability in the JK Html To Pdf WordPress plugin developed by jaykrishnang. The vulnerability stems from improper neutralization of user-supplied input during web page generation, allowing attackers to inject and persistently store malicious scripts that execute in the context of other users' browsers.

This vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation) and can be exploited via a network attack vector requiring user interaction. The stored nature of this XSS makes it particularly dangerous as the malicious payload persists on the server and affects all users who access the compromised page.

Critical Impact

Attackers can inject persistent malicious scripts that steal session cookies, redirect users to phishing sites, deface web pages, or perform actions on behalf of authenticated users without their consent.

Affected Products

  • JK Html To Pdf WordPress Plugin version 1.0.0 and earlier
  • WordPress installations using the jk-html-to-pdf plugin

Discovery Timeline

  • 2025-01-07 - CVE-2025-22547 published to NVD
  • 2026-04-23 - Last updated in NVD database

Technical Details for CVE-2025-22547

Vulnerability Analysis

This Stored XSS vulnerability in the JK Html To Pdf plugin occurs due to insufficient input validation and output encoding when processing user-supplied data. The plugin fails to properly sanitize input before storing it in the database and does not adequately encode output when rendering content to web pages.

The attack requires user interaction, meaning a victim must visit a page containing the malicious payload for the attack to execute. However, once the malicious script is stored, it will execute automatically whenever any user views the affected content, making this a persistent and scalable attack vector.

The vulnerability chain includes a Cross-Site Request Forgery (CSRF) component, allowing attackers to trick authenticated administrators into unknowingly injecting malicious scripts. This CSRF-to-Stored-XSS attack chain significantly lowers the barrier for exploitation.

Root Cause

The root cause of CVE-2025-22547 lies in the plugin's failure to implement proper input validation and output encoding mechanisms. Specifically:

  1. User-supplied input is not sanitized before being stored in the WordPress database
  2. Output is rendered without proper HTML entity encoding or context-aware escaping
  3. CSRF protection tokens are missing or improperly validated, allowing forged requests
  4. The plugin does not leverage WordPress's built-in sanitization functions such as wp_kses(), esc_html(), or esc_attr()

Attack Vector

The attack vector for CVE-2025-22547 is network-based and requires user interaction. An attacker can exploit this vulnerability through the following general approach:

  1. The attacker crafts a malicious request containing JavaScript payload targeting the vulnerable plugin functionality
  2. Using CSRF techniques, the attacker tricks an authenticated WordPress administrator into submitting the malicious request
  3. The malicious script is stored in the database without proper sanitization
  4. When any user (including administrators) visits a page where this content is rendered, the malicious script executes in their browser context

The vulnerability allows attackers to steal session cookies, perform privilege escalation, redirect users to malicious sites, or deface the website. For detailed technical information, refer to the Patchstack security advisory.

Detection Methods for CVE-2025-22547

Indicators of Compromise

  • Unexpected JavaScript code or HTML tags in database fields associated with the JK Html To Pdf plugin
  • Suspicious <script> tags or event handlers (e.g., onerror, onload) in plugin-generated content
  • Unusual outbound network requests to unknown external domains from client browsers
  • User reports of unexpected redirects or pop-ups when accessing WordPress pages
  • Modified plugin settings or content that administrators did not authorize

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block common XSS payloads in HTTP requests
  • Deploy Content Security Policy (CSP) headers with violation reporting to identify unauthorized script execution
  • Configure WordPress security plugins to monitor and alert on database content changes
  • Perform regular security audits of plugin-generated HTML output for suspicious scripts
  • Enable browser-based XSS protection headers and monitor for blocked attempts

Monitoring Recommendations

  • Monitor WordPress database tables for unexpected HTML or JavaScript content insertions
  • Review web server access logs for requests containing encoded script tags or common XSS patterns
  • Implement real-time alerting for CSP violation reports indicating potential XSS attacks
  • Track plugin activity logs for unauthorized configuration changes
  • Monitor user session anomalies that may indicate session hijacking via stolen cookies

How to Mitigate CVE-2025-22547

Immediate Actions Required

  • Deactivate and remove the JK Html To Pdf plugin (jk-html-to-pdf) from all WordPress installations immediately
  • Review database content for any injected malicious scripts and remove them
  • Force logout of all users and regenerate session tokens to invalidate potentially stolen sessions
  • Implement Content Security Policy headers to restrict script execution sources
  • Consider using alternative PDF generation plugins with active security maintenance

Patch Information

As of the last update, no patched version of the JK Html To Pdf plugin has been released to address CVE-2025-22547. The vulnerability affects version 1.0.0 and all prior versions. Given the lack of a security patch and the apparent inactivity of the plugin, organizations should consider permanent removal and migration to a maintained alternative.

For the latest information, refer to the Patchstack vulnerability database entry.

Workarounds

  • Remove the JK Html To Pdf plugin entirely from WordPress installations
  • Implement strict Content Security Policy headers to mitigate the impact of any injected scripts
  • Deploy a Web Application Firewall with XSS protection rules enabled
  • Restrict plugin installation permissions to prevent reinstallation of vulnerable components
  • Regularly audit installed plugins and remove any that are abandoned or no longer receiving security updates
bash
# WordPress CLI command to deactivate and delete the vulnerable plugin
wp plugin deactivate jk-html-to-pdf --allow-root
wp plugin delete jk-html-to-pdf --allow-root

# Add Content Security Policy header in .htaccess or nginx config
# Apache (.htaccess)
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none';"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechJk Html To Pdf

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.23%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityLow
  • CWE References
  • CWE-79
  • Technical References
  • Patchstack WordPress Vulnerability
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
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