BetterDocs Vulnerability – Best Documentation, FAQ & Knowledge Base Plugin with AI Support & Instant Answer for Elementor & Gutenberg – Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode – CVE-2024-2845 | WordPress Plugin Vulnerability Report

Plugin Name: BetterDocs – Best Documentation, FAQ & Knowledge Base Plugin with AI Support & Instant Answer for Elementor & Gutenberg

Key Information:

  • Software Type: Plugin
  • Software Slug: betterdocs
  • Software Status: Active
  • Software Author: wpdevteam
  • Software Downloads: 1,219,559
  • Active Installs: 30,000
  • Last Updated: March 26, 2024
  • Patched Versions: 3.5.0
  • Affected Versions: <= 3.4.2

Vulnerability Details:

  • Name: BetterDocs <= 3.4.2 Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode
  • Type: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • CVE: CVE-2024-2845
  • CVSS Score: 6.4
  • Publicly Published: March 25, 2024
  • Researcher: Krzysztof Zając - CERT PL
  • Description: The BetterDocs plugin is susceptible to Stored Cross-Site Scripting (XSS) via its shortcode(s) due to inadequate input sanitization and output escaping, allowing authenticated attackers (with contributor-level access or higher) to inject malicious scripts into pages that execute upon user access.


The BetterDocs plugin for WordPress harbors a vulnerability in versions up to and including 3.4.2, wherein authenticated contributors can exploit Stored Cross-Site Scripting via shortcodes. This vulnerability has been addressed in version 3.5.0.

Detailed Overview:

This vulnerability, identified by Krzysztof Zając of CERT PL, arises from the plugin's failure to properly sanitize and escape user-supplied attributes within its shortcodes. Consequently, attackers with at least contributor privileges can inject arbitrary web scripts into pages, leading to potential compromises when such pages are accessed by unsuspecting users. The implications include unauthorized access to sensitive information and manipulation of web page content.

Advice for Users:

  • Immediate Action: Update to the patched version 3.5.0 immediately.
  • Check for Signs of Vulnerability: Monitor your site for unusual activities or unauthorized content modifications, which may indicate exploitation.
  • Alternate Plugins: Consider exploring similar plugins as a precautionary measure, despite the availability of a patch.
  • Stay Updated: Regularly updating your plugins is crucial for maintaining a secure WordPress environment.


The swift action taken by the BetterDocs development team to rectify this vulnerability highlights the critical nature of keeping software up to date. Users are strongly advised to upgrade to version 3.5.0 or later to safeguard their WordPress installations against potential exploits.


Detailed Report: 

In today's digital landscape, the security of your website is as crucial as the lock on your front door. For small business owners juggling countless responsibilities, staying abreast of every technical detail can be daunting. Yet, the recent vulnerability discovered in the widely used BetterDocs plugin—a cornerstone for many WordPress sites—underscores the indispensable need for vigilance.

About the Plugin

BetterDocs, celebrated for enhancing WordPress sites with superior documentation, FAQ, and Knowledge Base capabilities, particularly with AI support for Elementor & Gutenberg, has been a go-to solution for over 30,000 active installations. Its commitment to seamless information delivery has garnered over 1.2 million downloads, a testament to its utility and reliability in the WordPress ecosystem.

Unveiling the Vulnerability

However, a shadow was cast over its stellar reputation when a security flaw was unearthed. Designated CVE-2024-2845, this vulnerability allowed authenticated users with contributor-level access or higher to exploit stored Cross-Site Scripting (XSS) through the plugin's shortcodes. Such a breach could enable attackers to inject malicious scripts, compromising site integrity and user security. The flaw affected versions up to and including 3.4.2 but was promptly addressed in the 3.5.0 release, thanks to the diligent efforts of the research community, particularly Krzysztof Zając of CERT PL.

Risks and Implications

The risks tied to this vulnerability extend beyond mere technical glitches; they touch the very heart of your business's credibility. Unauthorized access and content manipulation could lead to loss of sensitive data, diminished customer trust, and potential financial repercussions. It's a stark reminder of the lurking dangers in the digital realm.

Steps Toward Remediation

To safeguard your online domain, immediate action is required:

  • Update Now: Ensure your BetterDocs plugin is upgraded to version 3.5.0 or later.
  • Vigilance is Key: Regularly inspect your site for signs of compromise or unexpected changes.
  • Explore Alternatives: While the patch is reliable, knowing your options can provide an added security layer.
  • Stay Informed: Keep your digital arsenal updated to fortify your defenses against emerging threats.

A Look Back

It's worth noting that this isn't the plugin's first encounter with security challenges; a previous vulnerability had been identified since November 13, 2023. Such incidents serve as a critical reminder of the dynamic nature of cybersecurity.

Concluding Thoughts

For the small business owner, the digital upkeep might seem like just another task on an endless checklist. However, the repercussions of neglecting this aspect can be far-reaching. The proactive measures taken by the BetterDocs team in rectifying the CVE-2024-2845 vulnerability illuminate the path forward: staying informed, taking timely action, and embracing a security-first mindset can shield your business from unforeseen digital storms.

In the grand scheme, the health of your WordPress site mirrors the health of your business. Prioritizing security isn't just about protecting data; it's about safeguarding your brand's reputation and ensuring the trust your customers place in you remains unbroken.

Staying Secure

Staying on top of WordPress security can feel overwhelming for small business owners without dedicated IT staff. At Your WP Guy, we exist to shoulder that burden for you. Our WordPress experts can fully audit, secure, maintain and support your site - so you can focus on growing your business with peace of mind.

Don't tackle security risks alone. Let us help you assess any impact from this vulnerability, update your plugins, and implement ongoing maintenance to avoid future threats. We treat your website like it's our own - because we know how critical it is for reaching your customers.

Get in touch for a free consultation today on making WordPress security stress-free. Call 678-995-5169 or book a call here. Our knowledgeable team is ready to help you safeguard your online presence.

BetterDocs Vulnerability – Best Documentation, FAQ & Knowledge Base Plugin with AI Support & Instant Answer for Elementor & Gutenberg – Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode – CVE-2024-2845 | WordPress Plugin Vulnerability Report FAQs

Leave a Comment