CVE-2025-7502: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wpbakery WPBakery Page Builder
The WPBakery Page Builder for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via several shortcodes in all versions up to, and including, 8.5 due to insufficient input sanitization and output escaping on user supplied attributes. 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-7502 is a stored Cross-Site Scripting (XSS) vulnerability classified under CWE-79 that affects the WPBakery Page Builder plugin for WordPress, a widely used page-building tool. The vulnerability exists due to improper neutralization of user-supplied input in shortcode attributes, where input sanitization and output escaping are insufficient. Authenticated attackers with contributor-level access or higher can exploit this by injecting arbitrary JavaScript code into pages via these shortcodes. When any user accesses the infected page, the malicious script executes in their browser context, potentially compromising session tokens, redirecting users, or performing actions on behalf of the user. The vulnerability affects all versions up to and including 8.5. The CVSS 3.1 base score is 6.4, indicating medium severity, with an attack vector of network, low attack complexity, requiring privileges (contributor or above), no user interaction, and a scope change. The impact affects confidentiality and integrity but not availability. No patches or fixes are currently linked, and no known exploits are reported in the wild, but the vulnerability poses a significant risk due to the widespread use of WPBakery and the commonality of contributor-level access in WordPress sites. Mitigation requires either patching when available or implementing strict input validation and output encoding on shortcode attributes, along with limiting contributor privileges and monitoring for suspicious activity.
Potential Impact
The primary impact of CVE-2025-7502 is the compromise of confidentiality and integrity of affected WordPress sites using WPBakery Page Builder. Attackers can inject persistent malicious scripts that execute in the browsers of site visitors or administrators, potentially leading to session hijacking, theft of sensitive information, unauthorized actions performed on behalf of users, or site defacement. This can damage organizational reputation, lead to data breaches, and facilitate further attacks such as phishing or malware distribution. Since contributor-level access is required, insider threats or compromised contributor accounts pose a significant risk. The vulnerability does not affect availability directly but can indirectly cause service disruption through defacement or administrative lockout. Organizations with multiple contributors or public-facing WordPress sites are particularly vulnerable. The scope of affected systems is broad given WPBakery's popularity, increasing the potential global impact.
Mitigation Recommendations
To mitigate CVE-2025-7502, organizations should: 1) Monitor WPBakery Page Builder updates and apply patches promptly once released. 2) Until patches are available, restrict contributor-level access to trusted users only and review user privileges regularly. 3) Implement web application firewall (WAF) rules to detect and block suspicious shortcode attribute payloads indicative of XSS attempts. 4) Employ strict input validation and output encoding on all user-supplied shortcode attributes, potentially via custom plugin modifications or security plugins that sanitize inputs. 5) Conduct regular security audits and scanning of WordPress sites for injected scripts or anomalous content. 6) Educate contributors about the risks of uploading untrusted content and enforce secure content creation policies. 7) Use Content Security Policy (CSP) headers to limit the execution of unauthorized scripts in browsers. 8) Maintain regular backups to enable recovery in case of compromise. These steps go beyond generic advice by focusing on access control, proactive detection, and layered defenses specific to the vulnerability's exploitation vector.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, India, France, Brazil, Japan, Netherlands, Italy, Spain
CVE-2025-7502: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wpbakery WPBakery Page Builder
Description
The WPBakery Page Builder for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via several shortcodes in all versions up to, and including, 8.5 due to insufficient input sanitization and output escaping on user supplied attributes. 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-7502 is a stored Cross-Site Scripting (XSS) vulnerability classified under CWE-79 that affects the WPBakery Page Builder plugin for WordPress, a widely used page-building tool. The vulnerability exists due to improper neutralization of user-supplied input in shortcode attributes, where input sanitization and output escaping are insufficient. Authenticated attackers with contributor-level access or higher can exploit this by injecting arbitrary JavaScript code into pages via these shortcodes. When any user accesses the infected page, the malicious script executes in their browser context, potentially compromising session tokens, redirecting users, or performing actions on behalf of the user. The vulnerability affects all versions up to and including 8.5. The CVSS 3.1 base score is 6.4, indicating medium severity, with an attack vector of network, low attack complexity, requiring privileges (contributor or above), no user interaction, and a scope change. The impact affects confidentiality and integrity but not availability. No patches or fixes are currently linked, and no known exploits are reported in the wild, but the vulnerability poses a significant risk due to the widespread use of WPBakery and the commonality of contributor-level access in WordPress sites. Mitigation requires either patching when available or implementing strict input validation and output encoding on shortcode attributes, along with limiting contributor privileges and monitoring for suspicious activity.
Potential Impact
The primary impact of CVE-2025-7502 is the compromise of confidentiality and integrity of affected WordPress sites using WPBakery Page Builder. Attackers can inject persistent malicious scripts that execute in the browsers of site visitors or administrators, potentially leading to session hijacking, theft of sensitive information, unauthorized actions performed on behalf of users, or site defacement. This can damage organizational reputation, lead to data breaches, and facilitate further attacks such as phishing or malware distribution. Since contributor-level access is required, insider threats or compromised contributor accounts pose a significant risk. The vulnerability does not affect availability directly but can indirectly cause service disruption through defacement or administrative lockout. Organizations with multiple contributors or public-facing WordPress sites are particularly vulnerable. The scope of affected systems is broad given WPBakery's popularity, increasing the potential global impact.
Mitigation Recommendations
To mitigate CVE-2025-7502, organizations should: 1) Monitor WPBakery Page Builder updates and apply patches promptly once released. 2) Until patches are available, restrict contributor-level access to trusted users only and review user privileges regularly. 3) Implement web application firewall (WAF) rules to detect and block suspicious shortcode attribute payloads indicative of XSS attempts. 4) Employ strict input validation and output encoding on all user-supplied shortcode attributes, potentially via custom plugin modifications or security plugins that sanitize inputs. 5) Conduct regular security audits and scanning of WordPress sites for injected scripts or anomalous content. 6) Educate contributors about the risks of uploading untrusted content and enforce secure content creation policies. 7) Use Content Security Policy (CSP) headers to limit the execution of unauthorized scripts in browsers. 8) Maintain regular backups to enable recovery in case of compromise. These steps go beyond generic advice by focusing on access control, proactive detection, and layered defenses specific to the vulnerability's exploitation vector.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Wordfence
- Date Reserved
- 2025-07-11T18:10:32.390Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6892b7caad5a09ad00ed7e0c
Added to database: 8/6/2025, 2:02:50 AM
Last enriched: 2/26/2026, 4:17:27 PM
Last updated: 3/26/2026, 11:10:18 AM
Views: 86
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.