{"id":"CVE-2021-24159","state":"PUBLISHED","title":"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.","publishedAt":"2021-04-05T18:27:43.000Z","updatedAt":"2024-08-03T19:21:18.633Z","severity":null,"assigner":"WPScan","products":["Unknown Contact Form 7 Style"],"affected":[{"vendor":"Unknown","product":"Contact Form 7 Style","versions":[{"version":"3.1.9","status":"affected","lessThanOrEqual":"3.1.9","versionType":"custom"}]}],"references":["https://wpscan.com/vulnerability/363182f1-9fda-4363-8f6a-be37c4c07aa9","https://www.wordfence.com/blog/2021/02/unpatched-vulnerability-50000-wp-sites-must-find-alternative-for-contact-form-7-style/"],"weaknesses":["CWE-352"],"ingestedAt":"2026-10-29T19:48:07.505Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/24xxx/CVE-2021-24159.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-24159","state":"PUBLISHED","datePublished":"2021-04-05T18:27:43.000Z","dateUpdated":"2024-08-03T19:21:18.633Z","assignerShortName":"WPScan","assignerOrgId":"1bfdd5d7-9bf6-4a53-96ea-42e2716d7a81","dateReserved":"2021-01-14T00:00:00.000Z"},"containers":{"cna":{"title":"Contact Form 7 Style <=  3.1.9 - Cross-Site Request Forgery to Stored Cross-Site Scripting","descriptions":[{"lang":"en","value":"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":[{"vendor":"Unknown","product":"Contact Form 7 Style","versions":[{"version":"3.1.9","status":"affected","lessThanOrEqual":"3.1.9","versionType":"custom"}]}],"references":[{"url":"https://wpscan.com/vulnerability/363182f1-9fda-4363-8f6a-be37c4c07aa9","tags":["x_refsource_CONFIRM"]},{"url":"https://www.wordfence.com/blog/2021/02/unpatched-vulnerability-50000-wp-sites-must-find-alternative-for-contact-form-7-style/","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-352","description":"CWE-352 Cross-Site Request Forgery (CSRF)","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"WPScan","dateUpdated":"2021-04-05T18:27:43.000Z","orgId":"1bfdd5d7-9bf6-4a53-96ea-42e2716d7a81"},"credits":[{"lang":"en","value":"Chloe Chamberland"}],"source":{"discovery":"UNKNOWN"},"x_generator":"WPScan CVE Generator","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"contact@wpscan.com","ID":"CVE-2021-24159","STATE":"PUBLIC","TITLE":"Contact Form 7 Style <=  3.1.9 - Cross-Site Request Forgery to Stored Cross-Site Scripting"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Contact Form 7 Style","version":{"version_data":[{"version_affected":"<=","version_name":"3.1.9","version_value":"3.1.9"}]}}]},"vendor_name":"Unknown"}]}},"credit":[{"lang":"eng","value":"Chloe Chamberland"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":"WPScan CVE Generator","problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-352 Cross-Site Request Forgery (CSRF)"}]}]},"references":{"reference_data":[{"name":"https://wpscan.com/vulnerability/363182f1-9fda-4363-8f6a-be37c4c07aa9","refsource":"CONFIRM","url":"https://wpscan.com/vulnerability/363182f1-9fda-4363-8f6a-be37c4c07aa9"},{"name":"https://www.wordfence.com/blog/2021/02/unpatched-vulnerability-50000-wp-sites-must-find-alternative-for-contact-form-7-style/","refsource":"MISC","url":"https://www.wordfence.com/blog/2021/02/unpatched-vulnerability-50000-wp-sites-must-find-alternative-for-contact-form-7-style/"}]},"source":{"discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://wpscan.com/vulnerability/363182f1-9fda-4363-8f6a-be37c4c07aa9","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://www.wordfence.com/blog/2021/02/unpatched-vulnerability-50000-wp-sites-must-find-alternative-for-contact-form-7-style/","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T19:21:18.633Z"}}]}}}