CVE-2025-14980

6.5 MEDIUM

📋 TL;DR

The BetterDocs WordPress plugin exposes sensitive information including OpenAI API keys to authenticated users with contributor-level access or higher. This vulnerability affects all versions up to and including 4.3.3, potentially allowing attackers to steal API credentials and incur unauthorized usage costs.

💻 Affected Systems

Products:
  • BetterDocs WordPress Plugin
Versions: All versions up to and including 4.3.3
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with BetterDocs plugin and at least one contributor-level user account.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers steal OpenAI API keys, incurring substantial usage costs, accessing AI services with stolen credentials, and potentially pivoting to other systems using the same credentials.

🟠

Likely Case

Malicious contributors or compromised accounts extract API keys, leading to unauthorized OpenAI usage and financial impact from API charges.

🟢

If Mitigated

With proper access controls and API key rotation, impact is limited to temporary disruption until keys are revoked.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires authenticated access at contributor level or higher. The vulnerability is in the scripts() function which improperly exposes plugin settings.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 4.3.4

Vendor Advisory: https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=3430424%40betterdocs%2Ftags%2F4.3.4&old=3422660%40betterdocs%2Ftrunk

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find BetterDocs and click 'Update Now'. 4. Verify version is 4.3.4 or higher.

🔧 Temporary Workarounds

Temporary Plugin Deactivation

all

Disable the BetterDocs plugin until patched to prevent exploitation.

wp plugin deactivate betterdocs

API Key Rotation

all

Immediately rotate OpenAI API keys if exposed.

Navigate to OpenAI dashboard → API keys → Create new key → Revoke old key

🧯 If You Can't Patch

  • Restrict contributor-level access to trusted users only
  • Implement network segmentation to limit API key usage scope

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → BetterDocs → Version. If version is 4.3.3 or lower, you are vulnerable.

Check Version:

wp plugin get betterdocs --field=version

Verify Fix Applied:

After updating, verify version is 4.3.4 or higher in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual API calls to OpenAI from unexpected IPs
  • Multiple failed authentication attempts to WordPress admin

Network Indicators:

  • Outbound connections to api.openai.com from WordPress server
  • Unusual traffic patterns to plugin admin endpoints

SIEM Query:

source="wordpress" AND (uri_path="/wp-admin/admin-ajax.php" OR uri_path CONTAINS "betterdocs") AND status=200 AND user_role="contributor"

🔗 References

📤 Share & Export