Description
The Ultimate Post plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'moreResultsText' block attribute of the ultimate-post/advanced-search block in versions up to and including 5.0.31. This is due to insufficient input sanitization and output escaping in the Advanced_Search::content() render callback: the attribute value is filtered with wp_kses(), which strips disallowed HTML tags but does NOT escape HTML special characters such as double quotes in plain text, and the result is then concatenated directly into the data-viewmoretext HTML attribute without 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-07-09
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability allows an authenticated user with contributor‑level or higher permissions to inject malicious scripts into the "moreResultsText" attribute of the advanced‑search block in the Post Grid Gutenberg Blocks – PostX plugin. It is only filtered with wp_kses() and not escaped with esc_attr(), so an attacker can embed JavaScript that will be executed whenever any user opens a page containing the infected block, leading to arbitrary web script execution.

Affected Systems

The affected product is the Post Grid Gutenberg Blocks – PostX plugin for WordPress. Versions up to and including 5.0.31 are impacted. Site administrators should verify the current plugin version and take action if it falls within the affected range.

Risk and Exploitability

The CVSS score of 6.4 indicates moderate severity, while the EPSS score is less than 1%, indicating a low exploitation probability across the ecosystem. The vulnerability is not listed in the CISA KEV catalog. It requires an authenticated user with contributor or higher role and the ability to edit or create the advanced‑search block. Once injected, the script will execute in the browsers of all users who view the page.

Generated by OpenCVE AI on July 29, 2026 at 12:47 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Post Grid Gutenberg Blocks – PostX plugin to the latest available version or any version that contains the fix for this issue.
  • If an immediate update is not possible, restrict contributor and lower roles from editing or inserting the advanced‑search block, or disable the block entirely for those users.
  • After the update or restriction, review all pages that use the advanced‑search block and remove any injected content.

Generated by OpenCVE AI on July 29, 2026 at 12:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 09 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 09 Jul 2026 08:15:00 +0000

Type Values Removed Values Added
Description The Ultimate Post plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'moreResultsText' block attribute of the ultimate-post/advanced-search block in versions up to and including 5.0.31. This is due to insufficient input sanitization and output escaping in the Advanced_Search::content() render callback: the attribute value is filtered with wp_kses(), which strips disallowed HTML tags but does NOT escape HTML special characters such as double quotes in plain text, and the result is then concatenated directly into the data-viewmoretext HTML attribute without 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 Post Grid Gutenberg Blocks for News, Magazines, Blog Websites <= 5.0.31 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'moreResultsText' Block Attribute
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.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-07-09T17:33:21.736Z

Reserved: 2026-06-24T19:53:28.879Z

Link: CVE-2026-13253

cve-icon Vulnrichment

Updated: 2026-07-09T17:32:43.575Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T13:00:16Z

Weaknesses
  • CWE-79

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