Skip to main content
Vulnerability Database/CVE-2025-22825

CVE-2025-22825: Flexible PDF Coupons Stored XSS Vulnerability

CVE-2025-22825 is a stored cross-site scripting flaw in wpdesk Flexible PDF Coupons that enables attackers to inject malicious scripts. This article covers technical details, affected versions, security impact, and mitigation.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-22825 Overview

CVE-2025-22825 is a stored Cross-Site Scripting (XSS) vulnerability in the wpdesk Flexible PDF Coupons plugin for WordPress. The flaw stems from improper neutralization of user-supplied input during web page generation, classified under [CWE-79]. Authenticated attackers with low privileges can inject malicious JavaScript that persists in the application and executes in the browsers of other users, including administrators. The issue affects all versions of flexible-coupons up to and including 1.10.3. Successful exploitation can lead to session hijacking, credential theft, and unauthorized actions performed in the context of the victim's session.

Critical Impact

Authenticated attackers can store malicious scripts that execute in administrator browsers, enabling account takeover and content manipulation on affected WordPress sites.

Affected Products

  • wpdesk Flexible PDF Coupons (flexible-coupons) plugin for WordPress
  • All versions from initial release through < 1.10.3
  • WordPress sites with the vulnerable plugin installed and activated

Discovery Timeline

  • 2025-01-21 - CVE-2025-22825 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-22825

Vulnerability Analysis

The vulnerability resides in input handling routines within the Flexible PDF Coupons plugin. User-controlled input is stored in the WordPress database and later rendered in web pages without adequate output encoding or sanitization. Because the payload persists server-side, every user who loads the affected page executes the injected script.

The attack requires low privileges and user interaction, and it produces a scope change because the injected script executes in another user's browser context. Confidentiality, integrity, and availability impacts are limited but meaningful, particularly when an administrator loads the poisoned content and their session cookies or CSRF tokens become accessible to the attacker.

Root Cause

The root cause is missing or insufficient sanitization of input before storage, combined with missing output escaping when the stored data is rendered. WordPress provides functions such as sanitize_text_field(), wp_kses_post(), and esc_html() for these purposes. The vulnerable plugin fails to apply appropriate escaping on the affected fields prior to version 1.10.4.

Attack Vector

An authenticated user with access to a coupon-related input field submits a crafted payload containing JavaScript. The plugin stores the payload in the database. When a victim, typically an administrator reviewing coupons, loads the page that renders the stored value, the browser executes the script. See the Patchstack WordPress Vulnerability Report for advisory details.

No verified public exploit code is available for this issue.

Detection Methods for CVE-2025-22825

Indicators of Compromise

  • Unexpected <script> tags, onerror attributes, or javascript: URIs stored in coupon-related database tables
  • Outbound HTTP requests from administrator browsers to unknown domains shortly after loading coupon management pages
  • New WordPress administrator accounts or modified user roles that were not created through legitimate workflows
  • Modified plugin settings, theme files, or option values shortly after a coupon page was viewed by an admin

Detection Strategies

  • Audit the WordPress wp_posts, wp_postmeta, and plugin-specific tables for HTML or JavaScript content in fields expected to hold plain text
  • Deploy Web Application Firewall (WAF) rules that flag XSS payload patterns in HTTP POST parameters targeting admin-ajax.php and coupon endpoints
  • Enable a strict Content Security Policy (CSP) that reports inline script violations to a monitoring endpoint

Monitoring Recommendations

  • Monitor WordPress audit logs for suspicious edits to coupon content by low-privilege users
  • Alert on administrator sessions originating from unusual IP addresses or user agents following coupon page loads
  • Track plugin version inventory across all managed WordPress sites and flag installations of flexible-coupons at 1.10.3 or earlier

How to Mitigate CVE-2025-22825

Immediate Actions Required

  • Update the Flexible PDF Coupons plugin to version 1.10.4 or later on all affected WordPress installations
  • Review recent coupon submissions and remove any entries containing HTML tags or script content
  • Rotate credentials and invalidate active sessions for administrator accounts that accessed coupon management pages while the vulnerable version was installed
  • Audit user accounts and roles for unauthorized changes

Patch Information

The vendor addressed the issue in a release after 1.10.3. Site operators should apply the latest available version of the flexible-coupons plugin through the WordPress plugin dashboard or via WP-CLI. Refer to the Patchstack advisory for version guidance.

Workarounds

  • Temporarily deactivate the Flexible PDF Coupons plugin until patching is complete
  • Restrict access to coupon creation and editing capabilities to trusted, fully vetted user accounts
  • Deploy a WAF with XSS filtering in front of the WordPress site to block common payload patterns
  • Enforce a Content Security Policy that disallows inline scripts and restricts script sources to trusted origins
bash
# Update the plugin using WP-CLI
wp plugin update flexible-coupons

# Verify installed version
wp plugin get flexible-coupons --field=version

# Temporary mitigation: deactivate the plugin
wp plugin deactivate flexible-coupons

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

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.