Zakra <= 4.2.0 — Authenticated (Contributor+) Stored Cross-Site Scripting via Post Meta REST API
CVE-2026-4804Published · Updated Action summary
Affected: ≤4.2.0Update to 4.2.1 or newer
All remediation stepsOn this page3
Overview
- Advisory ID
- CVE-2026-4804
- Product
- Zakra zakra
- Affected
- ≤4.2.0
- Fixed in
- 4.2.1
- Weakness
- CWE-79 Cross-Site Scripting
- Required access
- Low-privilege account (e.g. subscriber)
- Published
- · updated
- Credit
- Osvaldo Noe Gonzalez Del Rio (Os)
- Source
- Wordfence Intelligence
- Affected≤ 4.2.0
- Patched in4.2.1
Update to 4.2.1 or newer.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:NWhat does this vector mean?
AV:NAttack vector- Network
AC:LAttack complexity- Low
PR:LPrivileges required- Low
UI:NUser interaction- None
S:CScope- Changed
C:LConfidentiality- Low
I:LIntegrity- Low
A:NAvailability- None
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.
Not sure which version you run? Run a passive check — it reads public files only.
Remediation & mitigations
- Update to version 4.2.1, or a newer patched version
- Rotate administrator passwords and application secrets if the site ran a vulnerable version while publicly reachable.
References & provenance
Proof-of-concept & detection
No public proof-of-concept or detection template is known for this vulnerability.
Advisories & patches
- Advisorywordfence.com
Related CVEs
All 2 in ZakraTimeline
CVE published
Severity medium, CVSS 6.4
Record last updated
Sources & licenses
Sources & licenses
Wordfence record- Vulnerability data
- Wordfence Intelligence. Copyright 2012-2026 Defiant Inc. Licensed under the CC BY-SA 4.0.
- CVE® identifiers
- Copyright 1999-2026 The MITRE Corporation. Used under the CVE Program. CVE® is a registered trademark of The MITRE Corporation.
- CVSS / CWE
- National Vulnerability Database (NVD), shown unmodified. This product uses the NVD API but is not endorsed or certified by the NVD.
- VulnCrest content
- Summary, remediation guidance and page layout © VulnCrest. Not sourced from NVD.
