Skip to main content

Text Snippets plugin EUVDEUVD-2026-24692

| CVE-2026-5748 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-04-22 Wordfence
6.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain contributor account
  2. Delivery
    Author page with malicious shortcode
  3. Exploit
    Store XSS payload in database
  4. Execution
    Visitor loads page
  5. Impact
    Injected script executes in visitor's browser

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires (1) authenticated access to the WordPress admin panel with at least contributor-level user role (PR:L); (2) the Text Snippets plugin installed and activated; (3) the ability to create, edit, or publish pages or posts, which is the default permission for contributor-level and above users; (4) the ts shortcode to be processed by WordPress when rendering the page (typically automatic). Exploitation does NOT require administrator access, does NOT require non-default WordPress configuration, and does NOT require user interaction beyond the attacker crafting a malicious page - all visitors viewing the page are affected passively. The vulnerability is NOT exploitable by unauthenticated users, as WordPress admin access is enforced by core authentication before shortcode processing. If a site restricts contributor access only to heavily-audited users (e.g., through additional plugins or organizational policy), the practical attack surface is reduced, but the technical vulnerability remains present for any authenticated user with publish permissions.

Impact

The CVSS 3.1 score of 6.4 reflects a network-accessible vulnerability (AV:N) with low attack complexity (AC:L), but mitigated by a requirement for authenticated access at contributor level or above (PR:L). The scope is changed (S:C), meaning the impact affects resources beyond the vulnerable component - specifically, other users viewing the compromised page. Confidentiality and integrity are impacted (C:L, I:L) with no availability impact. While the CVSS score is moderate, real-world risk depends heavily on WordPress site configuration: sites with numerous contributor-level users face elevated risk, while strictly-moderated sites with few contributors see lower risk. The CVSS vector explicitly requires authentication (PR:L), eliminating unauthenticated remote exploitation. However, any WordPress user with contributor access - a common role in multi-author blogs and news sites - can exploit this without additional privileges. The stored nature of the XSS means the payload persists, affecting all subsequent visitors without requiring them to take any action (UI:N). No EPSS score, KEV status, or public POC was provided; exploitation likelihood depends on site-specific access controls.

Exploit ScenarioDerived

A WordPress site contributor with legitimate publish access logs into the admin panel, navigates to Pages or Posts, and creates or edits a page containing the shortcode [ts onclick="alert(document.cookie)"]. Upon saving, the malicious script is stored in the database. When any site visitor - including administrators - accesses that page, the injected JavaScript executes in their browser with the privileges of the logged-in user (or within the visitor's session context), potentially stealing session tokens, CSRF tokens, or performing actions on behalf of the visitor.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 22, 2026

Stored cross-site scripting (XSS) in the Text Snippets plugin for WordPress up to version 0.0.1 allows authenticated attackers with contributor-level access to inject arbitrary JavaScript into pages via unsanitized shortcode attributes, which executes whenever any user visits the affected page. The vulnerability stems from insufficient input sanitization and output escaping on the ts shortcode, enabling persistent payload injection. No public exploit code or active exploitation has been identified at time of analysis.

RemediationAI

Update the Text Snippets plugin to a patched version immediately if available from the plugin author via the WordPress plugin repository. If no patch has been released, disable the plugin entirely via the WordPress admin panel (Plugins > Installed Plugins > Deactivate). As a temporary compensating control pending patch availability, WordPress administrators can restrict contributor-level access to only trusted, verified users by reviewing and modifying user roles under Users > All Users in the WordPress admin; however, this reduces site functionality for legitimate contributors. Alternatively, if the ts shortcode is not actively used on the site, remove all instances of [ts ...] from page and post content, or block the shortcode registration via a code snippet in functions.php: remove_shortcode( 'ts' );. Check the Wordfence threat intelligence page (https://www.wordfence.com/threat-intel/vulnerabilities/id/8cc7a0f3-6a58-4e42-9341-aecf55d2ccb1) for patch availability updates and the WordPress plugin repository for updated versions.

Affected VersionsENISA

Text Snippets 0 ≤0.0.1

Affected Packages

euvd text_snippets no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Text Snippets plugin for WordPress implements a ts shortcode that accepts user-supplied attributes without proper sanitization or escaping. The vulnerability is rooted in CWE-79 (Improper Neutralization of Input During Web Page Generation), a foundational XSS class. The shortcode processes and outputs attribute data directly into the page HTML context without converting special characters (e.g., converting < to &lt;) or validating input structure. WordPress's native escaping functions (such as esc_attr() or wp_kses_post()) appear not to have been applied to the shortcode attribute output. CPE cpe:2.3:a:snedled:text_snippets:*:*:*:*:*:*:*:* identifies all versions of the plugin as affected through version 0.0.1.

Know when Text Snippets gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy