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-4775 Overview
CVE-2025-4775 is a Stored Cross-Site Scripting (XSS) vulnerability in the WordPress Infinite Scroll – Ajax Load More plugin. The flaw affects all versions up to and including 7.4.0.1. It stems from insufficient input sanitization and output escaping on the data-button-label HTML attribute. Authenticated users with Contributor-level permissions or higher can inject arbitrary JavaScript into pages. The injected script executes in the browser of any user who views the affected page, enabling session theft, redirect attacks, and administrative action abuse.
Critical Impact
Contributor-level attackers can store malicious JavaScript that executes against site visitors and administrators, enabling account takeover and content tampering.
Affected Products
- WordPress Infinite Scroll – Ajax Load More plugin versions up to and including 7.4.0.1
- WordPress sites allowing Contributor-level user registration
- Any WordPress deployment running the vulnerable plugin
Discovery Timeline
- 2025-06-17 - CVE-2025-4775 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-4775
Vulnerability Analysis
The vulnerability is a Stored XSS flaw classified under CWE-79, Improper Neutralization of Input During Web Page Generation. The Ajax Load More plugin renders a data-button-label attribute from user-supplied input without proper escaping. An attacker with Contributor privileges can craft a shortcode or post that places malicious payloads into this attribute. When the plugin outputs the attribute into the DOM, the payload is interpreted as executable script content.
The EPSS probability stands at 0.212%, indicating low current exploitation activity. However, stored XSS in a widely deployed WordPress plugin remains attractive to attackers because payloads persist across sessions. The scope-changed CVSS vector reflects that script execution impacts users beyond the attacker's own security context.
Root Cause
The plugin fails to apply WordPress sanitization primitives such as esc_attr() or wp_kses() to the data-button-label value before echoing it into HTML output. User-controlled strings reach the browser inside an attribute context where quote-breaking payloads can escape the attribute boundary and inject event handlers or script tags.
Attack Vector
Exploitation requires an authenticated session with Contributor-level privileges or higher. The attacker configures a post or shortcode containing a crafted data-button-label value with an XSS payload. Once a victim loads the page, the payload executes under the site's origin. Attackers typically target administrator accounts to pivot into privilege escalation, plugin installation, or persistent backdoors. No code sample is published; see the Wordfence Vulnerability Report for technical details.
Detection Methods for CVE-2025-4775
Indicators of Compromise
- Posts or shortcodes containing data-button-label attributes with <script>, onerror=, onload=, or javascript: payloads
- Unexpected outbound requests from administrator browsers to attacker-controlled domains following page views
- New administrator accounts or plugin installations immediately after Contributor activity
- Modified wp_posts entries referencing the ajax_load_more shortcode with unusual attribute values
Detection Strategies
- Scan post content and postmeta for ajax_load_more shortcodes containing suspicious characters such as ", <, or > within button_label parameters
- Review WordPress audit logs for Contributor accounts creating or editing posts that use the Ajax Load More shortcode
- Monitor browser Content Security Policy (CSP) violation reports for inline script execution on pages rendering the plugin
Monitoring Recommendations
- Enable WordPress activity logging to capture post creation and shortcode usage per user role
- Deploy a web application firewall (WAF) rule to flag HTTP requests containing XSS patterns targeting plugin endpoints
- Alert on administrator session anomalies such as unexpected wp-admin actions following page views containing the shortcode
How to Mitigate CVE-2025-4775
Immediate Actions Required
- Update the Ajax Load More plugin to a version later than 7.4.0.1 as soon as the vendor publishes a patched release
- Audit existing posts and shortcodes for malicious data-button-label values and remove injected payloads
- Restrict Contributor role assignments and require review of all Contributor-submitted content before publication
Patch Information
The vulnerability affects all versions up to and including 7.4.0.1. Review the plugin page and the Wordfence Vulnerability Report for the current patched version. The relevant frontend code is published in the WordPress plugin repository.
Workarounds
- Deactivate the Ajax Load More plugin until a patched version is installed
- Enforce a strict Content Security Policy that blocks inline scripts and unauthorized event handlers
- Revoke Contributor and Author permissions from untrusted accounts and require Editor review for all submitted content
- Deploy WAF rules that strip or block <script> and event-handler payloads inside plugin shortcode parameters
# Example WP-CLI commands to identify and disable the vulnerable plugin
wp plugin get ajax-load-more --field=version
wp plugin deactivate ajax-load-more
wp post list --post_status=publish --s='[ajax_load_more' --format=csv
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

