CVE-2024-2845: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wpdevteam BetterDocs – Knowledge Base Docs & FAQ Solution for Elementor & Block Editor
The BetterDocs – Best Documentation, FAQ & Knowledge Base Plugin with AI Support & Instant Answer For Elementor & Gutenberg plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's shortcode(s) in all versions up to, and including, 3.4.2 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
The BetterDocs – Knowledge Base Docs & FAQ Solution plugin for Elementor & Block Editor in WordPress versions up to 3.4.2 contains a stored cross-site scripting vulnerability (CWE-79) due to improper neutralization of input during web page generation. Specifically, the plugin fails to properly sanitize and escape user-supplied attributes in its shortcodes. This flaw enables authenticated attackers with contributor-level privileges or higher to inject arbitrary JavaScript code that executes in the context of users visiting the compromised pages. The vulnerability is network exploitable with low attack complexity and does not require user interaction beyond visiting the injected page. The CVSS 3.1 base score is 6.4, reflecting limited confidentiality and integrity impact but no availability impact.
Potential Impact
An attacker with contributor-level or higher access can inject persistent malicious scripts into pages via shortcode attributes. These scripts execute in the browsers of users who view the compromised pages, potentially leading to session hijacking, privilege escalation, or other client-side attacks. The vulnerability affects confidentiality and integrity but does not impact availability. No known active exploitation has been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict contributor-level access to trusted users only and consider disabling or limiting use of the affected plugin's shortcode functionality. Monitor vendor channels for updates and apply patches promptly once released.
CVE-2024-2845: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wpdevteam BetterDocs – Knowledge Base Docs & FAQ Solution for Elementor & Block Editor
Description
The BetterDocs – Best Documentation, FAQ & Knowledge Base Plugin with AI Support & Instant Answer For Elementor & Gutenberg plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's shortcode(s) in all versions up to, and including, 3.4.2 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
The BetterDocs – Knowledge Base Docs & FAQ Solution plugin for Elementor & Block Editor in WordPress versions up to 3.4.2 contains a stored cross-site scripting vulnerability (CWE-79) due to improper neutralization of input during web page generation. Specifically, the plugin fails to properly sanitize and escape user-supplied attributes in its shortcodes. This flaw enables authenticated attackers with contributor-level privileges or higher to inject arbitrary JavaScript code that executes in the context of users visiting the compromised pages. The vulnerability is network exploitable with low attack complexity and does not require user interaction beyond visiting the injected page. The CVSS 3.1 base score is 6.4, reflecting limited confidentiality and integrity impact but no availability impact.
Potential Impact
An attacker with contributor-level or higher access can inject persistent malicious scripts into pages via shortcode attributes. These scripts execute in the browsers of users who view the compromised pages, potentially leading to session hijacking, privilege escalation, or other client-side attacks. The vulnerability affects confidentiality and integrity but does not impact availability. No known active exploitation has been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict contributor-level access to trusted users only and consider disabling or limiting use of the affected plugin's shortcode functionality. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Wordfence
- Date Reserved
- 2024-03-22T20:20:36.618Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 699f6db7b7ef31ef0b58b5e6
Added to database: 2/25/2026, 9:46:31 PM
Last enriched: 4/9/2026, 7:54:33 PM
Last updated: 4/11/2026, 4:57:56 PM
Views: 11
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.