CVE-2025-1312

Ultimate Blocks – WordPress Blocks Plugin <= 3.2.7 - Authenticated (Contributor+) Stored Cross-Site Scripting

Published Mar 26, 2025 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
Description
The Ultimate Blocks – WordPress Blocks Plugin plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'buttonTextColor’ parameter in all versions up to, and including, 3.2.7 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.

Analysis

AI-generated

Technical impact

The Ultimate Blocks plugin contains a stored cross‑site scripting flaw that arises from the 'buttonTextColor' field not being properly sanitized or escaped. When a contributor or higher user supplies a malicious value, the script is stored in the block definition and will be executed each time the block is rendered. This allows the attacker to run arbitrary code in the browser context of any visitor to the affected page, potentially hijacking user sessions or exfiltrating data.

Affected Systems

Affected sites are those running the Ultimate Blocks – 25+ Gutenberg Blocks for Block Editor plugin, versions 3.2.7 and earlier. The vulnerability exists in all block types that expose the 'buttonTextColor' parameter. Sites that have not upgraded beyond 3.2.7 remain vulnerable.

Risk and Exploitability

The flaw carries a CVSS score of 6.4, indicating a medium‑to‑high impact if exploited, but the EPSS score of less than 1% shows the likelihood of exploitation is very low. The issue is not listed in the CISA KEV catalog. Attackers need only contributor permissions or higher to inject the payload, so the attack vector is authenticated web interface. While the risk is moderate, the potential damage to confidentiality, integrity and availability of users' browsers warrants prompt action.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Ultimate Blocks to the latest version, which removes the unsanitized input handling.
  • If an upgrade is not possible, delete or sanitize existing blocks that contain malicious data and remove the 'buttonTextColor' field from any custom block definitions.
  • Restrict contributor or higher roles to only trusted users and audit role assignments regularly.
  • If the plugin is no longer needed, deactivate or uninstall it entirely.

Generated by OpenCVE AI on April 20, 2026 at 23:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-8119 The Ultimate Blocks – WordPress Blocks Plugin plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'buttonTextColor’ parameter in all versions up to, and including, 3.2.7 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.
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
Description The Ultimate Blocks – WordPress Blocks Plugin plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'buttonTextColor’ parameter in all versions up to, and including, 3.2.7 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.
Title Ultimate Blocks – WordPress Blocks Plugin <= 3.2.7 - Authenticated (Contributor+) Stored Cross-Site Scripting
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

No data.

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 8, 2026, 5:14 PM
Reserved
Feb 14, 2025, 8:50 PM
Status
Deferred
Published
Mar 26, 2025, 12:15 PM
Modified
Jun 17, 2026, 8:38 AM