{"id":"CVE-2021-24159","aliases":["CVE-2021-24159"],"related":[],"kind":"vulnerability","state":"published","title":"Contact Form 7 Style <=  3.1.9 - Cross-Site Request Forgery to Stored Cross-Site Scripting","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Debido a la falta de saneamiento y una falta de protección nonce en la funcionalidad CSS personalizada, un atacante podría diseñar una petición para inyectar JavaScript malicioso en un sitio usando el plugin de WordPress Contact Form 7 Style versiones hasta 3.1.9.&#xa0;Si un atacante engañaba con éxito al administrador de un sitio para que hiciera clic en un enlace o archivo adjunto, la petición podría ser enviada y la configuración de CSS se actualizaría con éxito para incluir JavaScript malicioso","source":"nvd"}],"published":"2021-04-05T18:27:43.000Z","modified":"2026-06-17T03:39:29.670Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-352"],"affected":[{"ranges":[{"type":"custom","introduced":"3.1.9","lastAffected":"3.1.9","status":"affected"}],"vendor":"Unknown","product":"Contact Form 7 Style","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"3.1.9"}],"vendor":"rocklobster","product":"contact_form_7","cpe":"cpe:2.3:a:rocklobster:contact_form_7:*:*:*:*:*:wordpress:*:*","source":"nvd"}],"references":[{"url":"https://wpscan.com/vulnerability/363182f1-9fda-4363-8f6a-be37c4c07aa9","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.wordfence.com/blog/2021/02/unpatched-vulnerability-50000-wp-sites-must-find-alternative-for-contact-form-7-style/","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":["Chloe Chamberland"],"assigner":"WPScan","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-24159","url":"https://www.cve.org/CVERecord?id=CVE-2021-24159","licence":"CVE Terms of Use","modified":"2024-08-03T19:21:18.633Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-24159","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-24159","licence":"Public domain","modified":"2026-06-17T03:39:29.670Z"}],"updatedAt":"2026-11-25T22:58:00.603Z","epss":{"score":0.00593,"percentile":0.49715,"date":"2026-12-01T12:00:22.000Z"}}