Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain contributor-level WordPress account
-
DeliveryCraft entity-encoded script payload in snippet shortcode attribute
-
ExploitSave snippet, bypassing wp_kses_post sanitization
-
ExecutionPlugin shortcode filter decodes payload at render
-
ImpactVictim views page, script executes in their session
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 an authenticated WordPress account at contributor level or above (PR:L confirmed in CVSS), and the plugin's snippet shortcodes must be enabled - the description explicitly states 'This requires snippet shortcodes to be enabled.' The specific mechanism is that an entity-encoded payload (e.g. <script>...</script>) placed in a snippet shortcode attribute bypasses wp_kses_post because kses does not decode HTML entities, and the plugin's own shortcode filter converts it back to executable HTML at render time. Limiting factors: the attacker must already hold contributor+ privileges (not anonymous), shortcodes must be active, and payload execution depends on another user subsequently viewing the injected page. |
| Impact | This is a stored Cross-Site Scripting (CWE-79) flaw with a moderate CVSS 3.1 base score of 6.4 (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N). The network attack vector and low complexity are real, but the PR:L metric confirms exploitation requires an authenticated account at contributor level or above, which meaningfully narrows the attacker population to users already granted content-authoring rights on the site. The scope-change flag (S:C) and the dual C:L/I:L impacts reflect that injected script executes in the browser context of other users - including higher-privileged administrators - when they view the affected page, which is the main reason this rises above a trivial self-XSS. No EPSS score, KEV listing, or working exploit was supplied in the input, and the vuln.today decision label is 'this_month' rather than act_now or emergency - together these signals point to a genuine but non-urgent, patch-in-routine-cycle issue rather than a widespread or actively exploited threat. The one point of nuance worth verifying: exploitation is gated on snippet shortcodes being enabled, a plugin configuration condition not captured by the CVSS vector, so the raw score may overstate risk for deployments that do not use shortcodes. |
| Exploit ScenarioDerived | A user with contributor-level (or higher) access on a WordPress site running this plugin, with snippet shortcodes enabled, saves a snippet containing an entity-encoded payload such as <script>...</script>. The payload survives WordPress's wp_kses_post save-time sanitization because kses does not decode HTML entities, and the plugin's own shortcode filter decodes it back into live markup at render time; when an administrator or visitor later views the page, the script executes in their browser. No public working exploit was identified in the provided data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 28, 2026
Stored cross-site scripting in the WordPress plugin Post Snippets - Custom WordPress Code Snippets Customizer affects every version up to and including 4.2.4, letting a contributor-level or higher account plant script that runs in another user's browser. The bypass works because entity-encoded payloads such as <script>...</script> are not decoded by WordPress's wp_kses_post on save, and the plugin's own shortcode filter turns them back into live HTML when the page renders; the description states the snippet shortcodes must be enabled for this path to work. Rated CVSS 3.1 6.4 (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N), and no public exploit code has been identified at time of analysis.
RemediationAI
Upgrade the Post Snippets plugin past 4.2.4: the fix is present in the plugin's trunk via changeset 3759640 (https://plugins.trac.wordpress.org/changeset/3759640/post-snippets/trunk/src/PostSnippets/Shortcode.php), which is upstream fix available (PR/commit); released patched version not independently confirmed, so confirm the version you deploy actually contains that changeset rather than assuming 4.2.5 exists. Until a confirmed patched build is installed, reduce exposure by removing or downgrading contributor-and-above accounts that do not need publishing rights, since the CVSS vector confirms PR:L, and note the exploit path requires snippet shortcodes to be enabled, so turning that capability off removes the described trigger at the cost of the plugin's snippet-rendering functionality. Consult the Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/a46c37f4-245d-423f-bdad-296fdf377ecc?source=cve for vendor guidance.
Affected VersionsENISA
Affected Packages
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 flaw is CWE-79 (improper neutralization of input during web page generation) in the shortcode handler of the Post Snippets plugin, whose code lives under src/PostSnippets/Shortcode.php (the referenced lines 29, 70, 140 and 183 across tags 4.2.3 and 4.2.4). WordPress's kses filtering (wp_kses_post) runs on save but does not decode HTML entities, so an attribute value containing <script> passes through the sanitizer intact and is only converted back to an executable tag at render time by the plugin's shortcode filter - a classic save-time-filter versus render-time-decode mismatch. The trigger is a shortcode attribute supplied by an authenticated user, and successful execution additionally depends on the snippet shortcodes being enabled and on a victim subsequently viewing the injected page. The CPE cpe:2.3:a:saadiqbal:post_snippets_-_custom_wordpress_code_snippets_customizer identifies the affected WordPress plugin by Saadiqbal.
Know when Wordpress Plugin 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
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Remote stored XSS by a contributor-level authenticated user (PR:L, AC:L), script runs in other users' browsers crossing a trust boundary (S:C) with limited confidentiality and integrity impact and no availability impact.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The Post Snippets - Custom WordPress Code Snippets Customizer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Shortcode Attributes in all versions up to, and including, 4.2.4 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. Entity-encoded payloads such as <script>...</script> survive WordPress's wp_kses_post on-save sanitization because kses does not decode HTML entities, and are only converted back into executable HTML tags at render time by the plugin's own shortcode filter. This requires snippet shortcodes to be enabled.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Wordpress Plugin
View allThe Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint
The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in
EUVD-2026-111606
GHSA-6hh4-5cgj-w743
NVD
CVE.org
EPSS
Exploit-DB