# CVE-2021-24218: Facebook for WordPress 3.0.0-3.0.3 - CSRF to Stored XSS and Settings Deletion

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-04-12 · Modified: 2024-08-03
- Record: https://cvemate.com/vulnerability/CVE-2021-24218 · JSON: https://cvemate.com/vulnerability/CVE-2021-24218/json

## Description

```text
The wp_ajax_save_fbe_settings and wp_ajax_delete_fbe_settings AJAX actions of the Facebook for WordPress plugin before 3.0.4 were vulnerable to CSRF due to a lack of nonce protection. The settings in the saveFbeSettings function had no sanitization allowing for script tags to be saved.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.699%, percentile 54.523%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (reference)

## Affected

- facebook facebook: ≥ 3.0.0, \< 3.0.4
- unknown facebook for wordpress: ≥ 3.0.0, \< 3.0.0\* \| ≥ 3.0.4, \< 3.0.4
- wordpress official-facebook-pixel: ≥ 3.0.0, \< 3.0.4

## References

- <https://www.wordfence.com/blog/2021/03/two-vulnerabilities-patched-in-facebook-for-wordpress-plugin/>
- <https://wpscan.com/vulnerability/169d21fc-d191-46ff-82e8-9ac887aed8a4>
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/9bc3039c-8e96-42e9-a28d-d3204f3e84f7>

---

Data as of 2026-12-05T06:22:31.880Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
