Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-77829 Overview
CVE-2026-77829 is a Stored Cross-Site Scripting (XSS) vulnerability in the Cooked – Recipe Management plugin for WordPress. The flaw affects all versions up to and including 1.16.1 and originates from insufficient input sanitization and output escaping in the [cooked-timer] shortcode content handler. Authenticated users with contributor-level access or higher can inject arbitrary JavaScript into pages. The payload executes in the browser of any visitor who views the affected page, enabling session theft, forced redirects, or administrative action abuse. The issue is tracked under CWE-79.
Critical Impact
Contributor-level attackers can store JavaScript that executes in any visitor's browser session, including administrators, enabling account takeover through the authenticated session context.
Affected Products
- Cooked – Recipe Management plugin for WordPress, versions up to and including 1.16.1
- WordPress sites exposing the [cooked-timer] shortcode to contributor-or-higher authors
- Sites allowing untrusted contributors to publish or submit shortcode content
Discovery Timeline
- 2026-10-16 - CVE-2026-77829 published to the National Vulnerability Database
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-77829
Vulnerability Analysis
The vulnerability resides in the shortcode rendering logic within class.cooked-shortcodes.php. The [cooked-timer] shortcode accepts user-controlled content attributes, then emits those attributes into HTML output without applying proper escaping functions such as esc_html(), esc_attr(), or wp_kses(). Because the stored payload persists in post content, every subsequent page render replays the attack against each visitor. The persistence turns a single authenticated submission into a durable client-side compromise vector.
Root Cause
The root cause is missing output escaping on attributes and inner content processed by the [cooked-timer] handler. WordPress stores post content verbatim, which places the responsibility for sanitization on the plugin's render path. The affected code paths at lines 128, 155, and 159 of class.cooked-shortcodes.php concatenate shortcode input directly into the response. See the vendor code at the WordPress Cooked Shortcode source for the vulnerable logic.
Attack Vector
An attacker with contributor privileges authors a post or page containing the [cooked-timer] shortcode with a crafted attribute or inner content payload. Upon publication (or admin preview), the stored script executes in the visitor's browser under the site's origin. The scope-changed impact per the CVSS vector reflects that script execution crosses from the plugin's trust boundary into the browser session of unrelated users, including administrators who review submitted content.
No verified public exploit code is available. Refer to the Wordfence Vulnerability Report for additional technical details.
Detection Methods for CVE-2026-77829
Indicators of Compromise
- Posts or pages containing [cooked-timer] shortcodes with attribute values that include <script, onerror=, onload=, or javascript: tokens
- Unexpected outbound requests from administrator browsers to attacker-controlled domains following access to contributor-authored content
- New or elevated WordPress user accounts created shortly after an administrator reviewed a post containing the shortcode
Detection Strategies
- Query the wp_posts table for post_content LIKE '%[cooked-timer%' and manually review attribute values for HTML or script tokens
- Deploy a web application firewall rule that inspects POST bodies to wp-admin/post.php for shortcode payloads containing script syntax
- Monitor WordPress audit logs for contributor-role users publishing or editing content that uses the [cooked-timer] shortcode
Monitoring Recommendations
- Alert on JavaScript execution from WordPress-rendered pages that triggers calls to unknown third-party domains
- Track administrator session anomalies such as unexpected privilege changes, plugin installations, or user creation events
- Enable WordPress debug logging for shortcode rendering and ingest the logs into a centralized analytics platform for correlation
How to Mitigate CVE-2026-77829
Immediate Actions Required
- Update the Cooked – Recipe Management plugin to a version newer than 1.16.1 once the vendor releases a fixed build
- Audit existing posts and pages for malicious [cooked-timer] shortcode content and remove or sanitize any injected scripts
- Restrict the contributor role to trusted users and review recent contributor account activity for unauthorized submissions
Patch Information
The vendor committed a code change tracked in the WordPress Cooked Plugin Changeset. Administrators should install the patched release through the WordPress plugin management interface as soon as it becomes available on the plugin repository.
Workarounds
- Temporarily deactivate the Cooked plugin until the patched version is deployed
- Remove or restrict the contributor role from untrusted accounts and require editor review before publication
- Deploy a Content Security Policy (CSP) that disallows inline scripts to limit the impact of stored XSS payloads
- Use a WordPress security plugin or WAF rule to strip <script> tags and event-handler attributes from post content on save
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

