BlogSafe.org

WordPress CVEs

Search and review WordPress-related vulnerability records.

← Back to CVE list

CVE-2021-24159

HIGH 8.8 CVSS 3.1
Published
April 5, 2021
Last modified
June 17, 2026
NVD status
Modified
Reported by
contact@wpscan.com
Weakness
CWE-352
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

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.

Affected WordPress components

A confirmed match is backed by the plugin or theme slug. A possible match is based on the product name only and should be verified.

Affected products and versions

  • Unknown Contact Form 7 Style — From 3.1.9 (including) to 3.1.9 (including)
  • rocklobster contact_form_7 — Up to and including 3.1.9

References

  • wpscan.com https://wpscan.com/vulnerability/363182f1-9fda-4363-8f6a-be37c4c07aa9 Third Party Advisory
  • www.wordfence.com https://www.wordfence.com/blog/2021/02/unpatched-vulnerability-50000-wp-sites-must-find-alternative-for-contact-form-7-style/ Third Party Advisory
  • nvd.nist.gov Official NVD record