CVE-2022-2187
Published: 17 July 2022
Summary
CVE-2022-2187 is a medium-severity Cross-site Scripting (CWE-79) vulnerability in Contact Form 7 Captcha Project Contact Form 7 Captcha. Its CVSS base score is 6.1 (Medium).
Operationally, ranked in the top 13.8% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
The Contact Form 7 Captcha WordPress plugin before version 0.1.2 is affected by a reflected cross-site scripting vulnerability (CWE-79). The root cause is a failure to escape the $_SERVER['REQUEST_URI'] value before echoing it into an HTML attribute, which permits script injection when the page is rendered in older web browsers. The issue carries a CVSS 3.1 score of 6.1 with network attack vector, low complexity, no required privileges, and required user interaction.
An unauthenticated remote attacker can supply a crafted URI that is reflected back to a victim who follows a malicious link or visits a compromised page. Successful exploitation results in execution of attacker-controlled script in the victim's browser context, enabling limited theft or manipulation of data within the affected site's origin.
The EPSS score for this CVE rose from a low baseline to a peak of 0.0777 on 2025-12-11 before receding to the current value of 0.0270, indicating a period of increased exploitation interest after disclosure. The listed references point to a WPScan advisory that identifies the vulnerable plugin versions but provides no additional mitigation details beyond the version information already present in the CVE description.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-34471
Vulnerability details
The Contact Form 7 Captcha WordPress plugin before 0.1.2 does not escape the $_SERVER['REQUEST_URI'] parameter before outputting it back in an attribute, which could lead to Reflected Cross-Site Scripting in old web browsers
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.