Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Lifecycle Timeline
5DescriptionCVE.org
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.
AnalysisAI
Stored cross-site scripting in Maxi Blocks plugin for WordPress versions up to 2.1.9 allows authenticated attackers with Author-level access and above to inject arbitrary JavaScript via the /wp-json/maxi-blocks/v1.0/style-card REST API endpoint through insufficient sanitization of the sc_styles parameter. Injected scripts execute on every page where style card styles are loaded, including the WordPress admin panel, affecting all website visitors and administrators. The vendor released patched version 2.1.10 on 27 April 2026 with input sanitization fixes (wp_strip_all_tags applied to sc_styles parameter) and privilege escalation mitigation in the image crop functionality.
Technical ContextAI
The vulnerability exists in the REST API handler for style cards within the Maxi Blocks WordPress plugin. The post_maxi_blocks_sc_string() method in class-maxi-api.php accepts user-supplied CSS styles via the sc_styles parameter and passes them directly to wp_add_inline_style() in class-maxi-style-cards.php without sanitizing the input. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-site Scripting). WordPress's wp_add_inline_style() function outputs inline styles without HTML escaping, allowing attackers to break out of style context and inject script tags or event handlers. The fix applies wp_strip_all_tags() to remove all HTML markup before the parameter is stored or used, preventing HTML/script injection while preserving CSS syntax. The affected endpoint requires REST API authentication (PR:L - Author level minimum), limiting the attack surface to authenticated users within the WordPress installation.
RemediationAI
Upgrade Maxi Blocks to version 2.1.10 or later immediately. The patch applies wp_strip_all_tags() to the sc_styles parameter at four locations in class-maxi-api.php (lines 979, 981, 987, and 1010) and one location in class-maxi-style-cards.php (line 197), preventing HTML injection before the data is stored or output. Additionally, version 2.1.10 hardens privilege checks in the image crop endpoint by changing the capability check from edit_posts to delete_others_posts, restricting modification to Editor-level and above roles. For sites unable to patch immediately, disable REST API access to the /wp-json/maxi-blocks/ endpoint using server-level rules (e.g., nginx location ~ /wp-json/maxi-blocks { deny all; }) or WordPress security plugins (Wordfence, Sucuri) that can block specific REST routes. However, this workaround will break the plugin's REST functionality and should be temporary only. Verify all Author-level and above user accounts for unauthorized access or activity after patching.
The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail comman
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
The Country State City Dropdown CF7 plugin for WordPress is vulnerable to SQL Injection via the ‘cnt’ and 'sid' paramete
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-26728