CVE-2021-24159Rocklobster Contact Form 7
High 8.8 No auth needed
Follow: this CVE · Rocklobster · Rocklobster Contact Form 7 We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 50
- Auth required
- No
- Published
- Apr 5, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-352
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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
- Apply the vendor's security update for Contact Form 7.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rocklobster | contact_form_7 | ≤ 3.1.9 |
Official sources
References
Links published by the sources. Open them with care.
- wpscan.com Third Party Advisory
- www.wordfence.com Third Party Advisory