CVE-2026-4804 Details
Description
The Zakra theme for WordPress is vulnerable to Stored Cross-Site Scripting via post meta values in all versions up to, and including, 4.2.0. This is due to the theme registering three post meta fields (zakra_menu_item_color, zakra_menu_item_hover_color, and zakra_menu_item_active_color) with 'show_in_rest' => true and 'auth_callback' => '__return_true', but without any sanitize_callback parameter in the register_post_meta() calls. While the classic editor save path applies sanitize_hex_color() sanitization, the REST API path completely bypasses this protection. The unsanitized meta values are then retrieved via get_post_meta() and concatenated directly into CSS strings that are output through wp_add_inline_style() 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 the injected page.
A stored cross-site scripting vulnerability has been identified in the Zakra theme for WordPress, affecting all versions through 4.2.0. The issue arises from the theme registering three post meta fields—zakra_menu_item_color, zakra_menu_item_hover_color, and zakra_menu_item_active_color—with 'show_in_rest' set to true and 'auth_callback' set to '__return_true', but lacking a sanitize_callback parameter. While the classic editor applies hex color sanitization, the REST API bypasses this protection entirely. The unsanitized meta values are retrieved via get_post_meta() and directly concatenated into CSS strings, which are then output through wp_add_inline_style() without any escaping. This vulnerability allows authenticated attackers with Contributor-level access and above to inject arbitrary scripts into pages, where they will execute when a user accesses the affected page.
Users are advised to update the Zakra WordPress theme to version 4.2.1 or a newer patched version.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 3, 2026CISA-ADP
Assessed Jul 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Zakra | <= 4.2.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 6, 2026 | CVE Modified | CISA-ADP |
| Jul 3, 2026 | New CVE Received | [email protected] |
Volerion