Skip to main content

Post Snippets CVE-2026-77871

| EUVDEUVD-2026-111606 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-10-28 Wordfence GHSA-6hh4-5cgj-w743
6.4
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

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

  1. Access
    Obtain contributor-level WordPress account
  2. Delivery
    Craft entity-encoded script payload in snippet shortcode attribute
  3. Exploit
    Save snippet, bypassing wp_kses_post sanitization
  4. Execution
    Plugin shortcode filter decodes payload at render
  5. Impact
    Victim 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.

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

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

Alert me

AnalysisAIv1 – 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

Post Snippets – Custom WordPress Code Snippets Customizer 0 ≤4.2.4

Affected Packages

euvd post_snippets_custom_wordpress_code_snippets_customizer 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 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

Vendor (Wordfence) PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 6.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

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

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

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Low
specific WordPress snippet plugin, modest install base, not ubiquitous
Data Quality
4 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.2%
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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

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.

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-5084 CRITICAL POC
9.8 May 23

The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil

CVE-2024-44000 CRITICAL POC
9.8 Oct 20

Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote

CVE-2020-36847 CRITICAL POC
9.8 Jul 12

The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner

CVE-2025-11749 CRITICAL POC
9.8 Nov 05

The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint

CVE-2025-27007 CRITICAL POC
9.8 May 01

The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut

CVE-2016-1209 CRITICAL POC
9.8 May 14

The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via

CVE-2024-4443 CRITICAL POC
9.8 May 22

The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based

CVE-2024-1698 CRITICAL POC
9.8 Feb 27

SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a

CVE-2023-6875 CRITICAL POC
9.8 Jan 11

The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i

CVE-2024-1512 CRITICAL POC
9.8 Feb 17

The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base

CVE-2024-4295 CRITICAL POC
9.8 Jun 05

The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in

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