# CVE-2026-66705: Facebook for WordPress unauthenticated cross-site scripting

Source: https://junglewise.ai/threats/cve-2026-66705-facebook-for-wordpress-unauthenticated-cross-site-scripting  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-06. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-66705 · Severity: high · CVSS 7.1 · Published 2026-08-06

Facebook for WordPress is a popular WordPress plugin that integrates Facebook functionality into websites. An unauthenticated attacker can inject malicious JavaScript code into the site, allowing them to steal visitor data, hijack user accounts, or redirect users to malicious sites. This vulnerability affects all installations running version 5.2.1 and earlier.

Vendors: [Facebook](https://junglewise.ai/threats/vendors/facebook).

## Quick answers

**Is CVE-2026-66705 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-66705 being exploited in the wild.

**How severe is CVE-2026-66705?** High severity, with a CVSS score of 7.1, published 6 August 2026.

**Which products and versions are affected?** Facebook for WordPress <= 5.2.1.

**Is there a fix for CVE-2026-66705?** A patch was published on 2026-07-31: Version 5.2.2 and later Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-66705 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-66705?** Check whether you run Facebook for WordPress at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a reflected or stored cross-site scripting (XSS) flaw in Facebook for WordPress plugin versions 5.2.1 and earlier. The plugin fails to properly sanitize or validate user input before rendering it in the web interface, allowing attackers to inject arbitrary JavaScript. The attack requires no authentication and can be exploited via a crafted link or form submission; user interaction (such as clicking a link) may be required depending on the attack vector. Successful exploitation allows attackers to execute arbitrary JavaScript in the context of an affected website, potentially leading to data theft, account hijacking, or malware distribution. A patch is available in version 5.2.2 and later.

## Affected products

- Facebook Facebook for WordPress <= 5.2.1

## Timeline

- 2026-07-31: disclosed
- 2026-07-31: patched: Version 5.2.2 and later

## References

- [https://wordpress.org/plugins](https://wordpress.org/plugins)
- [https://patchstack.com/database/wordpress/plugin/official-facebook-pixel/vulnerability/wordpress-facebook-for-wordpress-plugin-5-2-1-cross-site-scripting-xss-vulnerability?_s_id=cve](https://patchstack.com/database/wordpress/plugin/official-facebook-pixel/vulnerability/wordpress-facebook-for-wordpress-plugin-5-2-1-cross-site-scripting-xss-vulnerability?_s_id=cve)
