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

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-04-12T14:01:34.000Z
- Modified: 2026-06-17T03:39:37.213Z
- Weaknesses: CWE-352
- Assigned by: WPScan

## Description

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.

(As written by CVE List.)

## Affected

- Unknown Facebook for WordPress: from 3.0.0 before 3.0.0*; from 3.0.4 before 3.0.4
- facebook facebook: from 3.0.0 before 3.0.4

## Every score

- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://www.wordfence.com/blog/2021/03/two-vulnerabilities-patched-in-facebook-for-wordpress-plugin/> (exploit, third-party-advisory)
- <https://wpscan.com/vulnerability/169d21fc-d191-46ff-82e8-9ac887aed8a4> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-24218](https://www.cve.org/CVERecord?id=CVE-2021-24218), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24218](https://nvd.nist.gov/vuln/detail/CVE-2021-24218), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24218 · Whole record: https://cve.day/CVE-2021-24218.json · Rebuilt by cve.day 2026-11-25T22:58:00.709Z
