CVE-2026-4804: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in themegrill Zakra
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.
AI Analysis
Technical Summary
CVE-2026-4804 is a stored cross-site scripting vulnerability in the Zakra WordPress theme (<=4.2.0). The theme registers three post meta fields (zakra_menu_item_color, zakra_menu_item_hover_color, zakra_menu_item_active_color) with 'show_in_rest' set to true and an authentication callback that always returns true, but lacks a sanitize_callback. While the classic editor sanitizes these values, the REST API path does not, allowing unsanitized input to be stored. These values are then retrieved and concatenated into CSS strings output via wp_add_inline_style() without escaping, enabling authenticated attackers with Contributor-level privileges or higher to inject arbitrary scripts that execute when the page is viewed.
Potential Impact
An attacker with Contributor-level or higher privileges can exploit this vulnerability to inject arbitrary JavaScript into pages, leading to cross-site scripting attacks. This can result in session hijacking, defacement, or other malicious actions executed in the context of users viewing the infected pages. The vulnerability does not affect unauthenticated users directly but leverages authenticated user privileges to persist malicious scripts.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict Contributor-level access to trusted users only. Avoid using the REST API to update the affected post meta fields or sanitize inputs manually before saving. Monitor vendor channels for updates and apply patches promptly once released.
CVE-2026-4804: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in themegrill Zakra
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.
CVSS v3.1
Score 6.4medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-4804 is a stored cross-site scripting vulnerability in the Zakra WordPress theme (<=4.2.0). The theme registers three post meta fields (zakra_menu_item_color, zakra_menu_item_hover_color, zakra_menu_item_active_color) with 'show_in_rest' set to true and an authentication callback that always returns true, but lacks a sanitize_callback. While the classic editor sanitizes these values, the REST API path does not, allowing unsanitized input to be stored. These values are then retrieved and concatenated into CSS strings output via wp_add_inline_style() without escaping, enabling authenticated attackers with Contributor-level privileges or higher to inject arbitrary scripts that execute when the page is viewed.
Potential Impact
An attacker with Contributor-level or higher privileges can exploit this vulnerability to inject arbitrary JavaScript into pages, leading to cross-site scripting attacks. This can result in session hijacking, defacement, or other malicious actions executed in the context of users viewing the infected pages. The vulnerability does not affect unauthenticated users directly but leverages authenticated user privileges to persist malicious scripts.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict Contributor-level access to trusted users only. Avoid using the REST API to update the affected post meta fields or sanitize inputs manually before saving. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-03-25T11:38:39.477Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a47782a27e9c797195c128d
Added to database: 07/03/2026, 08:51:54 UTC
Last enriched: 07/11/2026, 09:00:05 UTC
Last updated: 08/16/2026, 00:41:14 UTC
Views: 89
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.