Medium severity · published Apr 20, 2024
CVE-2024-4014
hCaptcha for WordPress <= 4.0.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via cf7-hcaptcha Shortcode
6.4
CVSS
0.3%
EPSS
No
On KEV
Description
The hCaptcha for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's cf7-hcaptcha shortcode in all versions up to, and including, 4.0.0 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 26% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
HF
hCaptcha for WP · hcaptcha
through 4.0.0 · source: vendor
HC
Hcaptcha · Wordpress Plugin
through 4.0.0 · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-4014
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-4014
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/changeset/3072795/hcaptcha-for-forms-and-more/tags/4.0.1/src/php/CF7/CF7.php
www.wordfence.com
https://www.wordfence.com/threat-intel/vulnerabilities/id/5ce70e87-6dee-4d4a-b2fc-93fd4d50957d?source=cve
More from hCaptcha for WP
5.3
CVE-2026-103347
WordPress hCaptcha for WP plugin <= 5.3.0 - Bypass Vulnerability vulnerability
5.3
CVE-2026-25315
WordPress hCaptcha for WP plugin <= 4.21.1 - Broken Access Control vulnerability
