CVE-2025-49866

7.1 HIGH

📋 TL;DR

This reflected cross-site scripting (XSS) vulnerability in the Beautiful Cookie Consent Banner WordPress plugin allows attackers to inject malicious scripts into web pages. When users click on specially crafted links, their browsers execute attacker-controlled JavaScript in the context of the vulnerable site. All WordPress sites using affected versions of this plugin are vulnerable.

💻 Affected Systems

Products:
  • Beautiful Cookie Consent Banner WordPress plugin
Versions: All versions up to and including 4.6.1
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects WordPress installations with this specific plugin installed and activated.

⚠️ 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 could steal session cookies, redirect users to malicious sites, perform actions on behalf of authenticated users, or deface websites.

🟠

Likely Case

Attackers create phishing links that appear legitimate but execute malicious JavaScript when clicked, potentially stealing user credentials or session tokens.

🟢

If Mitigated

With proper input validation and output encoding, malicious scripts would be neutralized before reaching users' browsers.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Reflected XSS vulnerabilities are commonly exploited via phishing emails or malicious links.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 4.6.2 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/beautiful-and-responsive-cookie-consent/vulnerability/wordpress-beautiful-cookie-consent-banner-4-6-1-cross-site-scripting-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel
2. Navigate to Plugins → Installed Plugins
3. Find 'Beautiful Cookie Consent Banner'
4. Click 'Update Now' if available
5. If no update appears, manually download version 4.6.2+ from WordPress.org
6. Deactivate old plugin, upload new version, activate

🔧 Temporary Workarounds

Disable plugin temporarily

all

Deactivate the vulnerable plugin until patched

wp plugin deactivate beautiful-and-responsive-cookie-consent

Implement WAF rules

all

Add web application firewall rules to block XSS payloads

🧯 If You Can't Patch

  • Remove the plugin completely and use alternative cookie consent solutions
  • Implement Content Security Policy (CSP) headers to restrict script execution

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Beautiful Cookie Consent Banner version number

Check Version:

wp plugin get beautiful-and-responsive-cookie-consent --field=version

Verify Fix Applied:

Verify plugin version is 4.6.2 or higher in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • Unusual GET/POST requests containing script tags or JavaScript code in parameters
  • Multiple failed XSS attempts in web server logs

Network Indicators:

  • HTTP requests with suspicious parameters containing <script>, javascript:, or encoded payloads

SIEM Query:

web_requests WHERE url CONTAINS '<script' OR url CONTAINS 'javascript:' OR url CONTAINS '%3Cscript'

🔗 References

📤 Share & Export