medium · CVSS v3 5.4 · CVSS v4 5.1
CVE-2026-93339
Metaphor Creations Ditty plugin before 3.1.70 contains a stored XSS that allows authenticated users with Author-level privileges to inject a
Overview
Metaphor Creations Ditty plugin before 3.1.70 contains a stored XSS that allows authenticated users with Author-level privileges to inject arbitrary HTML elements via wrapper attributes. This flaw can cause malicious scripts to execute in the browsers of any visitor who views a post or page containing the affected Ditty item. The vulnerability arises because wrapper attribute values are inserted as element names without validation, bypassing sanitization.
Description
Metaphor Creations Ditty (ditty-news-ticker) before 3.1.70 contains a stored cross-site scripting vulnerability that allows authenticated users with Author-level privileges or higher to inject arbitrary HTML elements by supplying malicious wrapper attribute values in layout tags. The ditty_layout_render_tag_wrapper() function inserts caller-supplied wrapper attribute values directly as HTML element names without allowlist validation, bypassing wp_kses_post() sanitization because KSES runs at save time before layout tag attributes are resolved at render time, causing the payload to execute in the browser of any visitor viewing posts or pages embedding the affected Ditty item.
Impact
Confidentiality: malicious scripts can exfiltrate data. Integrity: attacker can modify page content. Availability: not directly impacted. Defenders: site administrators, content authors, and site visitors are affected.
Remediation
Upgrade to Ditty 3.1.70 or later. If upgrade is not possible, restrict Author-level users or disable the layout tag wrapper feature. Apply a content security policy that blocks inline scripts. Monitor for unexpected script execution.
Risk context
Medium severity; no EPSS data available. Defenders should address promptly to prevent XSS exploitation.
Affected products
- Metaphor Creations Ditty
- Ditty News Ticker
- WordPress plugin Ditty
Scores
- Severity
- medium
- CVSS v2
- 5.5
- CVSS v3
- 5.4
- CVSS v4
- 5.1
- EPSS
- —