Description
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.
Published: 2026-04-22
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting
Action: Patch
AI Analysis

Impact

The WPMK Block plugin fails to sanitize or escape the value of the class shortcode attribute before inserting it into a div element’s class attribute. This flaw allows an authenticated user with at least Contributor privileges to embed arbitrary JavaScript within the content that is stored in the database. When a page containing the malicious shortcode is viewed, the injected script executes in the context of the site, potentially granting the attacker access to user session data, enabling credential theft, or defacing the site. The weakness aligns with CWE‑79, a classic unsanitized input leading to XSS.

Affected Systems

WordPress sites that have the WPMK Block plugin installed in any version up to and including 1.0.1 are affected. Administrators should verify the installed plugin version; any site running version 1.0.1 or earlier is vulnerable. The plugin is maintained by wpmkorg under the WPMK Block product name.

Risk and Exploitability

The flaw is a stored XSS that requires only Contributor level access, a common role on many WordPress sites, making the attack vector fairly wide. The CVSS score of 6.4 indicates a moderate to high severity. The EPSS score is not available, so exploitation likelihood is unclear, but the lack of a published exploit and absence from the CISA KEV catalog suggest lower current exploitation risk. Nonetheless, an attacker could remotely inject malicious scripts that execute for any user who visits the affected pages, so the risk of confidentiality and integrity compromise remains significant.

Generated by OpenCVE AI on April 22, 2026 at 09:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the WPMK Block plugin to the latest version (1.0.2 or newer) that includes proper sanitization and escaping for the class attribute.
  • If an immediate upgrade is not possible, edit or remove the shortcode instances that use the class attribute from existing content, or replace the class value with hard‑coded safe strings that do not contain user input.
  • As a temporary protective measure, configure a Content Security Policy that disallows inline scripts to reduce the impact of any residual XSS payloads.

Generated by OpenCVE AI on April 22, 2026 at 09:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 22 Apr 2026 15:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 22 Apr 2026 12:15:00 +0000

Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Wpmkorg
Wpmkorg wpmk Block
Vendors & Products Wordpress
Wordpress wordpress
Wpmkorg
Wpmkorg wpmk Block

Wed, 22 Apr 2026 08:30:00 +0000

Type Values Removed Values Added
Description 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.
Title WPMK Block <= 1.0.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode Attributes
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Wordpress Wordpress
Wpmkorg Wpmk Block
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-22T14:13:03.230Z

Reserved: 2026-03-13T13:47:13.693Z

Link: CVE-2026-4125

cve-icon Vulnrichment

Updated: 2026-04-22T14:10:29.437Z

cve-icon NVD

Status : Deferred

Published: 2026-04-22T09:16:23.633

Modified: 2026-04-22T20:22:50.570

Link: CVE-2026-4125

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-22T11:44:08Z

Weaknesses