CVE-2021-24159
Contact Form 7 Style <= 3.1.9 - Cross-Site Request Forgery to Stored Cross-Site Scripting
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.
Exploitation
EPSS 0.59%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 49.7% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-352 Cross-Site Request Forgery
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
Contact Form 7 Style
Unknown
|
affected from 3.1.9 up to and including 3.1.9
|
Is my server affected?
This CVE is in a product, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.
Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.
References
Advisories
Other references
- https://www.wordfence.com/blog/2021/02/unpatched-vulnerability-50000-wp-sites-must-find-alternative-for-contact-form-7-style/ wordfence.com
Source: the record CVE-2021-24159 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse