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.
References8
- plugins.trac.wordpress.org/browser/ultimate-post/tags/5.0.27/bl…
- plugins.trac.wordpress.org/browser/ultimate-post/tags/5.0.27/bl…
- plugins.trac.wordpress.org/browser/ultimate-post/tags/5.0.27/cl…
- plugins.trac.wordpress.org/browser/ultimate-post/tags/5.0.28/bl…
- plugins.trac.wordpress.org/browser/ultimate-post/tags/5.0.28/bl…
- plugins.trac.wordpress.org/browser/ultimate-post/tags/5.0.28/cl…
- plugins.trac.wordpress.org/changeset?reponame=&old=3598669%40ul…
- www.wordfence.com/threat-intel/vulnerabilities/id/070ccd70-22c3…
Metrics
- CVSS 3.1
-
6.4
MEDIUM
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - EPSS — exploit probability
- 0% percentile: 30 · as of 15 November 2026
- CWE
- CWE-79
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.