← Vulnerability feed

Vulnerability record · CVE-2021-24159 · published 5 April 2021

CVE-2021-24159: Rocklobster contact form 7 cross-site request forgery vulnerability

Rocklobster · Contact Form 7

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.

8.8 CVSS 3.1 High EPSS 0.59% · top 53.8% CWE-352 · Cross-site request forgery
8.8CVSS 3.1 base score, v2 6.8
0.59%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-24159 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2020-35489Contact Form 7 unrestricted file upload enables remote code executionContact Form 7 before 5.3.2 for WordPress permits unrestricted file uploads because a filename may contain special characters, allowing an uploaded f…EPSS 89%analysed9.8CVE-2018-20979Rocklobster contact form 7 vulnerabilityThe contact-form-7 plugin before 5.0.4 for WordPress has privilege escalation because of capability_type mishandling in register_post_type.EPSS 2.0%7.2CVE-2023-6449Rocklobster contact form 7 unrestricted file upload vulnerabilityThe Contact Form 7 plugin for WordPress is vulnerable to arbitrary file uploads due to insufficient file type validation in the 'validate' function a…EPSS 1.7%6.1CVE-2024-4704Rocklobster contact form 7 open redirect vulnerabilityThe Contact Form 7 WordPress plugin before 5.9.5 has an open redirect that allows an attacker to utilize a false URL and redirect to the URL of their…EPSS 0.45%6.1CVE-2024-2242Rocklobster contact form 7 cross-site scripting vulnerabilityThe Contact Form 7 plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the ‘active-tab’ parameter in all versions up to, and inc…EPSS 1.3%5.3CVE-2025-3247Rocklobster contact form 7 vulnerabilityThe Contact Form 7 plugin for WordPress is vulnerable to Order Replay in all versions up to, and including, 6.0.5 via the 'wpcf7_stripe_skip_spam_che…EPSS 0.25%5.0CVE-2014-2265Rocklobster contact form 7 permissions and access controls vulnerabilityRock Lobster Contact Form 7 before 3.7.2 allows remote attackers to bypass the CAPTCHA protection mechanism and submit arbitrary form data by omittin…EPSS 3.1%4.3CVE-2023-6630Rocklobster contact form 7 insecure direct object reference vulnerabilityThe Contact Form 7 – Dynamic Text Extension plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and includi…EPSS 0.35%

Source: NIST National Vulnerability Database (record CVE-2021-24159), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.