CVE-2026-4125

WPMK Block <= 1.0.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode Attributes

Published Apr 22, 2026 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Wpmkorg
Wpmkorg wpmk Block
Vendors & Products Wordpress
Wordpress wordpress
Wpmkorg
Wpmkorg wpmk Block
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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 22, 2026, 2:13 PM
Reserved
Mar 13, 2026, 1:47 PM
Status
Deferred
Published
Apr 22, 2026, 9:16 AM
Modified
Jun 17, 2026, 10:56 AM