
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-4336 is a Stored Cross-Site Scripting (XSS) vulnerability in the Ultimate FAQ Accordion plugin for WordPress, affecting all versions up to and including 2.4.7. The flaw allows authenticated attackers with Author-level access or above to inject persistent malicious scripts into FAQ pages via entity-encoded HTML payloads submitted through the REST API. It was published on April 9, 2026, with a patch made available the same day. The vulnerability carries a CVSS v3.1 base score of 6.4 (Medium) (GitHub Advisory, Wordfence).
The root cause is a two-stage sanitization bypass classified as CWE-79 (Improper Neutralization of Input During Web Page Generation). In View.FAQ.class.php at line 746, the set_display_variables() function calls html_entity_decode() on post_content during rendering, converting HTML entity-encoded payloads (e.g., <img src=x onerror=alert()>) back into executable HTML. WordPress's built-in kses sanitization is bypassed at save time because it treats HTML entities as plain text rather than markup; however, the decoded output is then echoed in faq-answer.php without wp_kses_post() or any other escaping. The ufaq custom post type is registered with 'show_in_rest' => true and defaults to 'post' capability type, enabling Author-level users to create and publish FAQs directly via the REST API, providing the attack surface (GitHub Advisory, Wordfence).
Successful exploitation allows authenticated attackers with Author-level privileges to persistently inject arbitrary JavaScript into FAQ pages, which executes in the browsers of any user who views the affected FAQ content — either directly or via the [ultimate-faqs] shortcode. Potential consequences include session hijacking, credential theft, malware distribution to site visitors, and site defacement. The scope change in the CVSS score reflects that the injected scripts affect users beyond the attacker's own session, impacting all visitors to the compromised WordPress site (GitHub Advisory, Wordfence).
There is no evidence of a public proof-of-concept exploit or active in-the-wild exploitation at this time. No threat actor attribution has been reported, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.042–0.055%, placing it in the lower percentiles for near-term exploitation likelihood (GitHub Advisory, Wordfence).
https://target.com/wp-content/plugins/ultimate-faqs/readme.txt) or using tools like WPScan.<img src=x onerror=alert(document.cookie)>. The HTML entity encoding ensures WordPress's kses sanitization passes the content as plain text at save time.ufaq custom post type (e.g., POST /wp-json/wp/v2/ufaq) with the entity-encoded payload in the content field and set status to publish.[ultimate-faqs] shortcode, the html_entity_decode() call in set_display_variables() converts the entities back to executable HTML, and the script executes in the victim's browser without any output escaping (GitHub Advisory, Wordfence)./wp-json/wp/v2/ufaq from Author-level accounts, especially containing HTML entity-encoded strings (e.g., <, >, onerror, onload) in the content body.ufaq endpoint with suspicious payloads; PHP error logs referencing View.FAQ.class.php or faq-answer.php in unexpected contexts.wp_posts table, post_type = 'ufaq') containing HTML entity-encoded script tags or event handlers (e.g., <script>, onerror=, onload=).Users should update the Ultimate FAQ Accordion plugin to a version newer than 2.4.7 immediately, as a patch was released on April 9, 2026 (GitHub Advisory). As interim measures, restrict Author-level WordPress roles to fully trusted users only, and review existing FAQ content in the database for entity-encoded HTML payloads. Consider disabling REST API access for the ufaq custom post type if not operationally required, and deploy Web Application Firewall (WAF) rules to detect stored XSS attempts targeting FAQ content (Wordfence).
Wordfence included CVE-2026-4336 in their weekly WordPress vulnerability report covering April 6–12, 2026, flagging it as part of routine plugin security monitoring (Wordfence Blog). No significant broader media coverage or notable researcher commentary beyond standard vulnerability disclosure channels has been identified for this CVE.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."