CVE-2026-3554: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in sherkspear Sherk Custom Post Type Displays
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.
AI Analysis
Technical Summary
The Sherk Custom Post Type Displays plugin for WordPress contains a stored Cross-Site Scripting vulnerability identified as CVE-2026-3554. The vulnerability is due to improper neutralization of input during web page generation (CWE-79). Specifically, the 'title' attribute of the 'sherkcptdisplays' shortcode is extracted via shortcode_atts() in the sherkcptdisplays_func() function without proper sanitization or escaping before being concatenated into an HTML <h2> element. This allows an authenticated attacker with Contributor-level permissions or higher to inject arbitrary JavaScript code into posts or pages. When other users access these pages, the malicious scripts execute in their browsers, potentially leading to session hijacking, privilege escalation, or defacement. The vulnerability affects all versions up to and including 1.2.1 of the plugin. The CVSS 3.1 score of 6.4 reflects that the attack can be performed remotely over the network with low complexity but requires some privileges (Contributor or above). The scope is changed because the vulnerability affects other users viewing the injected content. No user interaction is needed beyond viewing the page. No patches have been published yet, and no known exploits are reported in the wild. The vulnerability highlights the importance of proper input validation and output escaping in WordPress shortcode implementations to prevent stored XSS attacks.
Potential Impact
This vulnerability allows attackers with Contributor-level access to inject persistent malicious scripts into WordPress pages or posts, which execute in the browsers of any users who view the affected content. The impact includes potential theft of authentication cookies, enabling session hijacking and impersonation of legitimate users, including administrators if they view the infected pages. Attackers could also perform unauthorized actions on behalf of victims, deface websites, or redirect users to malicious sites. Although the vulnerability does not directly affect availability, the integrity and confidentiality of user data and site content are at risk. Organizations using this plugin on public-facing WordPress sites may face reputational damage, data breaches, and increased risk of further compromise. The requirement for authenticated access limits exploitation to insiders or compromised accounts, but the widespread use of WordPress and this plugin increases the attack surface globally.
Mitigation Recommendations
1. Immediately update the Sherk Custom Post Type Displays plugin to a fixed version once available from the vendor. Monitor official channels for patch releases. 2. Until a patch is released, restrict Contributor-level and higher permissions to trusted users only, minimizing the risk of malicious shortcode injection. 3. Implement a Web Application Firewall (WAF) with rules to detect and block suspicious script tags or JavaScript payloads in shortcode attributes or post content. 4. Use security plugins that sanitize shortcode inputs or apply output escaping filters on dynamic content rendering. 5. Conduct regular security audits of user-generated content and shortcode usage to detect anomalous scripts. 6. Educate site administrators and content editors about the risks of stored XSS and the importance of least privilege principles. 7. Consider disabling or replacing the vulnerable plugin with alternatives that follow secure coding practices if immediate patching is not feasible. 8. Monitor logs for unusual activity or signs of exploitation attempts related to shortcode content injection.
Affected Countries
United States, United Kingdom, Germany, France, Canada, Australia, India, Brazil, Japan, Netherlands
CVE-2026-3554: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in sherkspear Sherk Custom Post Type Displays
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Sherk Custom Post Type Displays plugin for WordPress contains a stored Cross-Site Scripting vulnerability identified as CVE-2026-3554. The vulnerability is due to improper neutralization of input during web page generation (CWE-79). Specifically, the 'title' attribute of the 'sherkcptdisplays' shortcode is extracted via shortcode_atts() in the sherkcptdisplays_func() function without proper sanitization or escaping before being concatenated into an HTML <h2> element. This allows an authenticated attacker with Contributor-level permissions or higher to inject arbitrary JavaScript code into posts or pages. When other users access these pages, the malicious scripts execute in their browsers, potentially leading to session hijacking, privilege escalation, or defacement. The vulnerability affects all versions up to and including 1.2.1 of the plugin. The CVSS 3.1 score of 6.4 reflects that the attack can be performed remotely over the network with low complexity but requires some privileges (Contributor or above). The scope is changed because the vulnerability affects other users viewing the injected content. No user interaction is needed beyond viewing the page. No patches have been published yet, and no known exploits are reported in the wild. The vulnerability highlights the importance of proper input validation and output escaping in WordPress shortcode implementations to prevent stored XSS attacks.
Potential Impact
This vulnerability allows attackers with Contributor-level access to inject persistent malicious scripts into WordPress pages or posts, which execute in the browsers of any users who view the affected content. The impact includes potential theft of authentication cookies, enabling session hijacking and impersonation of legitimate users, including administrators if they view the infected pages. Attackers could also perform unauthorized actions on behalf of victims, deface websites, or redirect users to malicious sites. Although the vulnerability does not directly affect availability, the integrity and confidentiality of user data and site content are at risk. Organizations using this plugin on public-facing WordPress sites may face reputational damage, data breaches, and increased risk of further compromise. The requirement for authenticated access limits exploitation to insiders or compromised accounts, but the widespread use of WordPress and this plugin increases the attack surface globally.
Mitigation Recommendations
1. Immediately update the Sherk Custom Post Type Displays plugin to a fixed version once available from the vendor. Monitor official channels for patch releases. 2. Until a patch is released, restrict Contributor-level and higher permissions to trusted users only, minimizing the risk of malicious shortcode injection. 3. Implement a Web Application Firewall (WAF) with rules to detect and block suspicious script tags or JavaScript payloads in shortcode attributes or post content. 4. Use security plugins that sanitize shortcode inputs or apply output escaping filters on dynamic content rendering. 5. Conduct regular security audits of user-generated content and shortcode usage to detect anomalous scripts. 6. Educate site administrators and content editors about the risks of stored XSS and the importance of least privilege principles. 7. Consider disabling or replacing the vulnerable plugin with alternatives that follow secure coding practices if immediate patching is not feasible. 8. Monitor logs for unusual activity or signs of exploitation attempts related to shortcode content injection.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-03-04T19:06:28.847Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69be1810f4197a8e3b784383
Added to database: 3/21/2026, 4:01:20 AM
Last enriched: 3/21/2026, 4:32:19 AM
Last updated: 3/22/2026, 7:13:29 AM
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.