CVE-2025-12834
Reflected XSS in Contact Form 7 Stripe Plugin Allows Script Injection
Publication date: 2025-12-12
Last updated on: 2026-04-08
Assigner: Wordfence
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| wordpress | contact_form_7 | 3.1 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |
Attack-Flow Graph
AI Powered Q&A
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by inspecting HTTP requests that include the 'failure_message' parameter in the Accept Stripe Payments Using Contact Form 7 plugin forms. You can look for reflected Cross-Site Scripting (XSS) payloads in this parameter. For example, using command-line tools like curl or grep to search web server logs for suspicious 'failure_message' parameters containing script tags or JavaScript code. A sample command to search logs could be: grep -i 'failure_message=.*<script' /var/log/apache2/access.log. Additionally, manual testing by submitting forms with crafted payloads in the 'failure_message' parameter to see if the script executes can help detect the vulnerability. [1]
Can you explain this vulnerability to me?
This vulnerability is a Reflected Cross-Site Scripting (XSS) issue in the Accept Stripe Payments Using Contact Form 7 plugin for WordPress. It occurs via the 'failure_message' parameter in versions up to 3.1 due to insufficient input sanitization and output escaping. An unauthenticated attacker can inject malicious scripts that execute when a user is tricked into performing an action like clicking a link.
How can this vulnerability impact me? :
The vulnerability can allow attackers to execute arbitrary scripts in the context of the affected website, potentially leading to theft of user data, session hijacking, or other malicious actions. Since it requires user interaction, the attacker must trick users into clicking a crafted link, which can compromise user security and trust.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include updating the Accept Stripe Payments Using Contact Form 7 plugin to a version later than 3.1 where the vulnerability is fixed. If an update is not available, temporarily disabling the plugin or removing the vulnerable functionality related to the 'failure_message' parameter can reduce risk. Additionally, implementing Web Application Firewall (WAF) rules to block requests containing suspicious scripts in the 'failure_message' parameter can help prevent exploitation. Educating users to avoid clicking on suspicious links that might trigger the reflected XSS is also recommended. [1]