Skip to main content

Post Snippets EUVDEUVD-2026-33246

| CVE-2026-7430 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-29 Wordfence GHSA-8v38-ppcg-cmjm
4.4
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

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

  1. Recon
    Obtain or compromise Administrator account on WordPress multisite
  2. Delivery
    Craft import file with double-quote XSS payload in snippet content
  3. Exploit
    Import via Post Snippets Import/Export (wp_magic_quotes bypass)
  4. Install
    Payload persisted in database unescaped
  5. C2
    Victim administrator opens post editor page
  6. Execute
    jqueryUiDialog() renders unescaped payload into JS string
  7. Impact
    Injected script executes in victim's browser context

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

Four concrete conditions must all be satisfied: (1) WordPress Multisite installation - the CVE explicitly states single-site installs are unaffected because administrators hold unfiltered_html natively; (2) Attacker holds Administrator-level (or higher) WordPress account, confirmed by CVSS PR:H - lower-privileged roles such as Editor or Author cannot access the Import/Export feature; (3) Post Snippets plugin version 4.0.19 or earlier is active, with the quote-escaping code at WPEditor.php line 214 commented out; (4) A victim administrator must open a post editor page after the malicious snippet has been imported - UI:N in the CVSS applies to the attacker's own action (no interaction needed to import), but victim interaction (opening the editor) is the trigger mechanism for payload delivery to the victim. Limiting factors: the high privilege bar (Administrator) for the attacker dramatically reduces the realistic attacker population; multisite-only scope limits impact to a subset of WordPress deployments; and payload execution requires a separate administrator to open the editor post-import.

Impact

CVSS 4.4 (AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N) accurately captures the constrained attack surface. PR:H confirms Administrator-level authentication is required, and AC:H signals additional complexity - consistent with the multisite-only applicability and the need to exploit a specific import pathway. The Scope:Changed metric (S:C) is significant: injected scripts execute in victim-administrator sessions, meaning the attacker's payload can affect browser contexts beyond their own account. However, real-world risk is sharply bounded by two factors: the attacker must already hold Administrator credentials, and the vulnerability is explicitly inapplicable to single-site WordPress installs where administrators possess the unfiltered_html capability. No EPSS data was provided, so exploitation probability cannot be quantified from available signals. The vulnerability is not listed in CISA KEV, and no public POC has been identified at time of analysis. This is best treated as a moderate-priority finding in multisite environments - the Scope:Changed and persistent nature warrant patching promptly, but the high privilege bar and scoped applicability prevent this from being an urgent emergency for most WordPress operators.

Exploit ScenarioDerived

An Administrator-level account holder on a WordPress multisite network - such as a compromised or malicious admin - crafts a Post Snippets import file (.json or equivalent) in which snippet content contains a double-quote sequence that breaks out of the JavaScript string context rendered by jqueryUiDialog(). The attacker imports this file via the Post Snippets Import/Export UI; because wp_magic_quotes() does not process the import pathway, the raw double quote is stored in the database. Subsequently, any administrator on the network who opens any post editor page triggers execution of the injected script in their browser, enabling the attacker to exfiltrate session cookies, perform actions as that administrator, or propagate the payload further across the multisite network.

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 – May 29, 2026

Stored Cross-Site Scripting in the Post Snippets WordPress plugin (≤4.0.19) allows authenticated administrators on multisite installations to inject persistent JavaScript into the post editor via a crafted import file, exploiting a commented-out quote-escaping routine in WPEditor.php. The injected payload executes silently in the browser of any administrator who subsequently opens any post editor page, enabling session hijacking or further lateral movement within the multisite network. No public exploit identified at time of analysis; real-world impact is bounded by the Administrator-level access prerequisite and the explicit exclusion of single-site WordPress installations.

RemediationAI

Upgrade Post Snippets to version 4.1.1 or later, which restores or corrects the double-quote escaping in WPEditor.php; the fix is confirmed present in the WordPress plugin repository at plugins.trac.wordpress.org/browser/post-snippets/tags/4.1.1/src/PostSnippets/WPEditor.php (lines 221 and 227). Update via the WordPress admin dashboard under Plugins > Installed Plugins > Update, or via WP-CLI with wp plugin update post-snippets. For multisite administrators who cannot patch immediately, restrict access to the Post Snippets Import/Export feature to the minimum set of trusted super-administrators, and audit the existing snippet database for any content containing unescaped double quotes or suspicious JavaScript patterns. Disabling the Import/Export feature entirely until patching is completed removes the primary exploitation path without affecting existing snippet functionality. Note that single-site installations require no action.

Affected VersionsENISA

Post Snippets – Custom WordPress Code Snippets Customizer 0 ≤4.0.19

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 resides in the jqueryUiDialog() method of WPEditor.php (CPE: cpe:2.3:a:saadiqbal:post_snippets_-_custom_wordpress_code_snippets_customizer:*:*:*:*:*:*:*:*), where snippet content is interpolated directly into JavaScript string literals rendered in the WordPress post editor without sanitization. The quote-escaping logic originally present at line 214 was commented out, leaving double-quote characters in snippet content able to terminate the surrounding JS string and inject arbitrary code. The Import/Export subsystem in DBTable.php compounds this by accepting import data that bypasses WordPress core's wp_magic_quotes() mechanism - the protective backslash insertion that would otherwise neutralize injected quotes never fires for imported content. CWE-79 (Improper Neutralization of Input During Web Page Generation / Stored XSS) accurately describes the root cause: untrusted data reaches an output context (JavaScript string literal) without context-appropriate encoding. The fix is confirmed present in tagged release 4.1.1 in the WordPress plugin repository.

Know when PHP 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 4.4 MEDIUM
AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N

Primary rating from Vendor (Wordfence) · only source for this CVE.

CVSS VectorVendor: Wordfence

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

DescriptionCVE.org

The Post Snippets plugin for WordPress is vulnerable to Stored Cross-Site Scripting in all versions up to, and including, 4.0.19. This is due to insufficient output escaping of imported snippet content when rendering JavaScript variables in the post editor. Specifically, the jqueryUiDialog() method in WPEditor.php embeds snippet content directly into JavaScript string literals without escaping double quotes (the quote-escaping code on line 214 is commented out). When snippets are imported via the Import/Export feature, the content bypasses WordPress's wp_magic_quotes() (which would otherwise add protective backslashes), allowing double quotes in snippet content to break out of the JavaScript string context. This makes it possible for authenticated attackers, with Administrator-level access and above, to inject arbitrary web scripts via a malicious import file that execute whenever any administrator accesses a post editor page. Please note that this does not affect single-site installations as administrators already have the unfiltered_html capability.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Social Media
1
Sightings
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

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
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.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

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

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