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.
Published: 2026-03-21
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross-Site Scripting
Action: Immediate Patch
AI Analysis

Impact

An authenticated user with Contributor or higher access can insert arbitrary JavaScript into the ‘title’ attribute of the ‘sherkcptdisplays’ shortcode. The plugin does not escape this value before placing it inside an <h2> tag, allowing stored cross‑site scripting that executes for every visitor who views a page containing the shortcode.

Affected Systems

WordPress installations that have the Sherk Custom Post Type Displays plugin up to and including version 1.2.1 are affected. The vulnerability resides in the plugin’s handling of the 'title' attribute within shortcodes and does not depend on external services.

Risk and Exploitability

The vulnerability carries a CVSS score of 6.4 and is not listed in CISA’s KEV catalog. Because exploitation requires an authenticated Contributor or higher role, the likelihood of immediate public exploitation is lower, yet any compromised user could inject malicious scripts that persist across sessions and expose site visitors to cross‑site scripting attacks. The lack of an EPSS value means the probability of exploitation cannot be precisely quantified, but the moderate severity score indicates that the risk to compromised sites is significant.

Generated by OpenCVE AI on March 21, 2026 at 07:11 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Sherk Custom Post Type Displays to the latest version that corrects the title attribute handling.
  • If a fixed release is not yet available, deactivate or uninstall the plugin to eliminate the attack vector.
  • As an interim step, restrict Contributor users from adding or editing shortcodes until a patch can be applied.
  • After remediation, audit existing posts for malicious shortcodes and remove any remnants of injected scripts.
  • Continuously monitor site activity for signs of cross‑site scripting or defacement.

Generated by OpenCVE AI on March 21, 2026 at 07:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 23 Mar 2026 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 23 Mar 2026 10:00:00 +0000

Type Values Removed Values Added
First Time appeared Sherkspear
Sherkspear sherk Custom Post Type Displays
Wordpress
Wordpress wordpress
Vendors & Products Sherkspear
Sherkspear sherk Custom Post Type Displays
Wordpress
Wordpress wordpress

Sat, 21 Mar 2026 05:30:00 +0000

Type Values Removed Values Added
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.
Title Sherk Custom Post Type Displays <= 1.2.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'title' Shortcode 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

Sherkspear Sherk Custom Post Type Displays
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T17:25:18.971Z

Reserved: 2026-03-04T19:06:28.847Z

Link: CVE-2026-3554

cve-icon Vulnrichment

Updated: 2026-03-23T15:07:27.515Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-03-21T04:17:29.890

Modified: 2026-03-23T14:32:02.800

Link: CVE-2026-3554

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-03-25T14:41:37Z

Weaknesses