CVE-2025-4775: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in dcooney WordPress Infinite Scroll – Ajax Load More
The WordPress Infinite Scroll – Ajax Load More plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the data-button-label HTML attribute in all versions up to, and including, 7.4.0.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI Analysis
Technical Summary
CVE-2025-4775 identifies a stored cross-site scripting vulnerability in the WordPress Infinite Scroll – Ajax Load More plugin developed by dcooney. The vulnerability exists due to improper neutralization of input during web page generation, specifically in the handling of the data-button-label HTML attribute. All plugin versions up to and including 7.4.0.1 fail to sufficiently sanitize and escape this attribute, allowing authenticated users with Contributor-level or higher privileges to inject arbitrary JavaScript code. When other users access pages containing the injected payload, the malicious scripts execute in their browsers. This can lead to a range of attacks including session hijacking, privilege escalation, defacement, or distribution of malware. The vulnerability requires authentication but no user interaction beyond visiting the infected page. The CVSS 3.1 score of 6.4 reflects a medium severity with network attack vector, low attack complexity, and partial confidentiality and integrity impact but no availability impact. No patches or official fixes are currently linked, and no known exploits have been reported in the wild. The vulnerability affects a widely used WordPress plugin, increasing the risk to websites that rely on this functionality for infinite scrolling and AJAX content loading.
Potential Impact
The impact of CVE-2025-4775 is significant for organizations using the affected WordPress Infinite Scroll – Ajax Load More plugin, especially those with multiple contributors or editors. Exploitation allows an authenticated contributor to inject persistent malicious scripts that execute in the browsers of any user visiting the compromised pages. This can lead to theft of session cookies, unauthorized actions performed on behalf of users, defacement of website content, or distribution of malware. The vulnerability undermines the integrity and confidentiality of the website and its users. While availability is not directly impacted, the reputational damage and potential data breaches can be severe. Organizations with public-facing WordPress sites that allow contributor-level access are particularly vulnerable. The medium CVSS score indicates moderate risk, but the scope of affected sites could be large given the plugin’s popularity. Attackers could leverage this vulnerability to pivot into further attacks within the organization’s network or to target site visitors.
Mitigation Recommendations
To mitigate CVE-2025-4775, organizations should take the following specific actions: 1) Immediately review and restrict Contributor-level and higher privileges to trusted users only, minimizing the attack surface. 2) Monitor and audit content changes, especially those involving the data-button-label attribute or similar HTML attributes, to detect suspicious input. 3) Apply strict input validation and output encoding on all user-supplied data within the plugin’s context, potentially by customizing or patching the plugin code if official updates are not yet available. 4) Employ a Web Application Firewall (WAF) with rules targeting stored XSS patterns in WordPress plugins to block malicious payloads. 5) Educate content contributors about the risks of injecting untrusted content and enforce secure content creation policies. 6) Regularly update WordPress core and plugins, and subscribe to security advisories from the plugin vendor and WordPress security teams for forthcoming patches. 7) Consider temporarily disabling the Infinite Scroll – Ajax Load More plugin if the risk is unacceptable and no patch is available. These measures go beyond generic advice by focusing on privilege management, monitoring, and proactive content validation tailored to this vulnerability.
Affected Countries
United States, India, Brazil, Germany, United Kingdom, Canada, Australia, France, Japan, Netherlands, Italy, Spain
CVE-2025-4775: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in dcooney WordPress Infinite Scroll – Ajax Load More
Description
The WordPress Infinite Scroll – Ajax Load More plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the data-button-label HTML attribute in all versions up to, and including, 7.4.0.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-4775 identifies a stored cross-site scripting vulnerability in the WordPress Infinite Scroll – Ajax Load More plugin developed by dcooney. The vulnerability exists due to improper neutralization of input during web page generation, specifically in the handling of the data-button-label HTML attribute. All plugin versions up to and including 7.4.0.1 fail to sufficiently sanitize and escape this attribute, allowing authenticated users with Contributor-level or higher privileges to inject arbitrary JavaScript code. When other users access pages containing the injected payload, the malicious scripts execute in their browsers. This can lead to a range of attacks including session hijacking, privilege escalation, defacement, or distribution of malware. The vulnerability requires authentication but no user interaction beyond visiting the infected page. The CVSS 3.1 score of 6.4 reflects a medium severity with network attack vector, low attack complexity, and partial confidentiality and integrity impact but no availability impact. No patches or official fixes are currently linked, and no known exploits have been reported in the wild. The vulnerability affects a widely used WordPress plugin, increasing the risk to websites that rely on this functionality for infinite scrolling and AJAX content loading.
Potential Impact
The impact of CVE-2025-4775 is significant for organizations using the affected WordPress Infinite Scroll – Ajax Load More plugin, especially those with multiple contributors or editors. Exploitation allows an authenticated contributor to inject persistent malicious scripts that execute in the browsers of any user visiting the compromised pages. This can lead to theft of session cookies, unauthorized actions performed on behalf of users, defacement of website content, or distribution of malware. The vulnerability undermines the integrity and confidentiality of the website and its users. While availability is not directly impacted, the reputational damage and potential data breaches can be severe. Organizations with public-facing WordPress sites that allow contributor-level access are particularly vulnerable. The medium CVSS score indicates moderate risk, but the scope of affected sites could be large given the plugin’s popularity. Attackers could leverage this vulnerability to pivot into further attacks within the organization’s network or to target site visitors.
Mitigation Recommendations
To mitigate CVE-2025-4775, organizations should take the following specific actions: 1) Immediately review and restrict Contributor-level and higher privileges to trusted users only, minimizing the attack surface. 2) Monitor and audit content changes, especially those involving the data-button-label attribute or similar HTML attributes, to detect suspicious input. 3) Apply strict input validation and output encoding on all user-supplied data within the plugin’s context, potentially by customizing or patching the plugin code if official updates are not yet available. 4) Employ a Web Application Firewall (WAF) with rules targeting stored XSS patterns in WordPress plugins to block malicious payloads. 5) Educate content contributors about the risks of injecting untrusted content and enforce secure content creation policies. 6) Regularly update WordPress core and plugins, and subscribe to security advisories from the plugin vendor and WordPress security teams for forthcoming patches. 7) Consider temporarily disabling the Infinite Scroll – Ajax Load More plugin if the risk is unacceptable and no patch is available. These measures go beyond generic advice by focusing on privilege management, monitoring, and proactive content validation tailored to this vulnerability.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Wordfence
- Date Reserved
- 2025-05-15T13:49:53.891Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6850cd28a8c921274384f3aa
Added to database: 6/17/2025, 2:04:24 AM
Last enriched: 2/27/2026, 2:50:01 PM
Last updated: 3/27/2026, 8:44:46 AM
Views: 75
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.