# CVE-2021-24159: Contact Form 7 Style <= 3.1.9 - Cross-Site Request Forgery to Stored Cross-Site Scripting

- 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.59%, higher than 49% of CVEs (2026-12-01)
- Published: 2021-04-05T18:27:43.000Z
- Modified: 2026-06-17T03:39:29.670Z
- Weaknesses: CWE-352
- Assigned by: WPScan

## Description

Due to the lack of sanitization and lack of nonce protection on the custom CSS feature, an attacker could craft a request to inject malicious JavaScript on a site using the Contact Form 7 Style WordPress plugin through 3.1.9. If an attacker successfully tricked a site’s administrator into clicking a link or attachment, then the request could be sent and the CSS settings would be successfully updated to include malicious JavaScript.

(As written by CVE List.)

## Affected

- Unknown Contact Form 7 Style: from 3.1.9 up to 3.1.9
- rocklobster contact_form_7: up to 3.1.9

## 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://wpscan.com/vulnerability/363182f1-9fda-4363-8f6a-be37c4c07aa9> (third-party-advisory)
- <https://www.wordfence.com/blog/2021/02/unpatched-vulnerability-50000-wp-sites-must-find-alternative-for-contact-form-7-style/> (third-party-advisory)

## Sources

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

---

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