Monitor vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
6.4
Sherk Custom Post Type Displays plugin for WordPress injects malicious scripts if attacker edits a post
CVE-2026-3554
Summary
This affects all versions up to 1.2.1 of the Sherk Custom Post Type Displays plugin for WordPress. If an attacker with contributor-level access edits a post, they can inject malicious scripts that will be executed when others view the post. To fix this, update the plugin to a version higher than 1.2.1.
Original title
The Sherk Custom Post Type Displays plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'title' shortcode attribute in all versions up to, and including, 1.2.1. This is due to...
Original description
The Sherk Custom Post Type Displays plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'title' shortcode attribute in all versions up to, and including, 1.2.1. This is due to insufficient input sanitization and output escaping on the 'title' attribute of the 'sherkcptdisplays' shortcode. Specifically, in the sherkcptdisplays_func() function in includes/SherkCPTDisplaysShortcode.php, the 'title' attribute value is extracted from shortcode_atts() on line 19 and directly concatenated into an HTML <h2> tag on line 31 without any 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.
nvd CVSS3.1
6.4
Vulnerability type
CWE-79
Cross-site Scripting (XSS)
- https://plugins.trac.wordpress.org/browser/sherk-custom-post-type-displays/tags/...
- https://plugins.trac.wordpress.org/browser/sherk-custom-post-type-displays/tags/...
- https://plugins.trac.wordpress.org/browser/sherk-custom-post-type-displays/trunk...
- https://plugins.trac.wordpress.org/browser/sherk-custom-post-type-displays/trunk...
- https://www.wordfence.com/threat-intel/vulnerabilities/id/d227d4e4-2899-434c-8b9...
Published: 21 Mar 2026 · Updated: 21 Mar 2026 · First seen: 21 Mar 2026