Skip to main content

WPMK Block CVE-2026-4125

| EUVDEUVD-2026-24666 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-04-22 Wordfence GHSA-f4p3-578m-v245
6.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Gain Contributor-level WordPress access
  2. Delivery
    Insert malicious shortcode with XSS payload in class attribute
  3. Exploit
    Publish post/page containing shortcode
  4. Execution
    Victim visits page and browser renders unescaped HTML
  5. Persist
    JavaScript executes in victim's security context
  6. Impact
    Steal session cookie or perform unauthorized actions

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) The attacker must possess WordPress Contributor-level access or higher (PR:L); (2) The WPMK Block plugin must be installed and activated on the target WordPress site; (3) Shortcodes must be processed in posts or pages where the attacker can create or edit content. Exploitation is BLOCKED if: the site restricts Contributor role to trusted users only, if the plugin is deactivated, or if WordPress applies post-revision security controls that prevent injection. The vulnerability does NOT require any special site configuration, non-default settings, or user interaction beyond normal page viewing - once a malicious shortcode is published, all subsequent visitors automatically execute the injected script.

Impact

This vulnerability presents moderate real-world risk despite the CVSS 6.4 (Medium) score. The CVSS vector AV:N/AC:L/PR:L/UI:N/S:C indicates network accessibility with low attack complexity, but crucially requires PR:L (Contributor-level authentication), which significantly limits the threat pool compared to unauthenticated attacks. The Stored XSS nature (S:C, Scope Changed) means impact can spread across different security contexts and affect administrators or other users viewing the injected content. However, exploitation requires an attacker to first gain WordPress Contributor access or higher, a meaningful barrier on properly managed sites. The lack of Confidentiality/Integrity/Availability impact details from the CVSS (C:L/I:L/A:N) suggests session hijacking, account takeover, or malware injection are possible but not catastrophic. No EPSS score, KEV status, or POC availability was provided in the input data; without exploitation confirmation signals, this appears to be a legitimate but non-critical vulnerability suitable for standard quarterly patching cycles on sites with restricted contributor access, or immediate patching on sites allowing untrusted contributors.

Exploit ScenarioDerived

An authenticated WordPress user with Contributor-level access creates or edits a page/post and inserts a shortcode with a malicious 'class' attribute: [wpmk_block class="test onclick='alert(1)'"] or [wpmk_block class="test" onload="fetch('/steal?token='+document.cookie)"]. When the page is published and viewed by any user (including administrators), the unescaped class attribute renders as HTML, triggering the embedded JavaScript. The attacker can thus steal session cookies, perform actions as the viewing user, or redirect to phishing pages.

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 in WPMK Block plugin for WordPress up to version 1.0.1 allows authenticated attackers with Contributor-level access to inject arbitrary web scripts via the 'class' shortcode attribute, which is directly concatenated into HTML without proper escaping. The vulnerability affects all versions through 1.0.1 due to insufficient input sanitization in the wpmk_block_shortcode() function, enabling persistent XSS attacks that execute whenever users access compromised pages.

RemediationAI

WordPress administrators should update the WPMK Block plugin immediately to a patched version released after 1.0.1; check the WordPress plugin repository for the latest available version, as the patch version number is not specified in available sources. The root fix requires the plugin developer to implement proper output escaping by applying the esc_attr() WordPress function to the 'class' attribute before concatenation into the HTML div element (line 97 in the affected code at https://plugins.trac.wordpress.org/browser/wpmk-block/tags/1.0.1/classes/wpmk-block-class.php#L97). As a temporary workaround on sites unable to immediately update, restrict the Contributor role to trusted users only and monitor posts and pages for unusual shortcode usage; disable the WPMK Block plugin entirely if no users require Contributor access. Sites running version 1.0.1 or earlier should prioritize this update to prevent persistent XSS injection.

Affected VersionsENISA

WPMK Block 0 ≤1.0.1

Affected Packages

euvd wpmk_block 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 WPMK Block plugin is a WordPress extension that processes shortcodes with user-supplied attributes. The vulnerability exists in the wpmk_block_shortcode() function, which extracts the 'class' attribute from shortcode parameters and directly embeds it into an HTML div element's class attribute without applying WordPress security functions like esc_attr(). This represents a classic Stored XSS vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation) where user input flows through the shortcode parser directly into the DOM without sanitization or output encoding. The affected CPE indicates all versions of the wpmk_block plugin from the wpmkorg vendor are potentially impacted through version 1.0.1.

Know when Wpmk Block 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 WPMK Block plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'class' shortcode attribute in all versions up to and including 1.0.1. This is due to insufficient input sanitization and output escaping on user-supplied shortcode attributes. Specifically, in the wpmk_block_shortcode() function, the 'class' attribute is extracted from user-controllable shortcode attributes and directly concatenated into an HTML div element's class attribute without any escaping (e.g., esc_attr()). 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