Zakra <= 4.2.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Post Meta REST API
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ThemeGrill | Zakra | up to 4.2.0 | — | No fix listed | CNA |
- Zakra VendorThemeGrill Affected up to 4.2.0 Fixed in — No fix listed CNA
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-4804
- 2026-10-03 Alias added: GHSA-vwhw-cgc3-f4mh
References
More ThemeGrill vulnerabilities
- TI-2024-16396 WordPress LMS by Masteriyo plugin <= 1.7.2 - Privilege Escalation vulnerability CVSS 3.1CRITICAL 9.8
- TI-2026-51986 WordPress Masteriyo - LMS plugin <= 2.3.2 - Arbitrary File Upload vulnerability CVSS 3.1CRITICAL 9.8
- TI-2026-39610 WordPress Registration Form for WooCommerce plugin <= 1.0.9 - Privilege Escalation vulnerability CVSS 3.1CRITICAL 9.8
- TI-2026-86554 Privilege escalation in Registration Form for WooCommerce checkout CVSS 3.1CRITICAL 9.8
- TI-2020-18616 themegrill-demo-importer before 1.6.2 does not require authentication for wiping the… CVSS 3.1CRITICAL 9.1
- TI-2020-18972 ThemeGrill Demo Importer 1.3.4 - 1.6.1 - Authorization Bypass to Site Reset CVSS 3.1CRITICAL 9.9
Sources
- CVE-2026-4804 · CVE Program
- CVE-2026-4804 · NVD
- FIRST EPSS
- GHSA-vwhw-cgc3-f4mh · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences