Arbitrary Shortcode Execution in WP Recipe Maker Plugin
The WP Recipe Maker plugin for WordPress (<= 10.8.1) is vulnerable to arbitrary shortcode execution due to recursive do_shortcode calls on user-supplied metadata fields.
CVE search metadata
CVE search record: CVE-2026-89274. Severity: critical. CVSS: 9.1. KEV: no. Product: WP Recipe Maker (<= 10.8.1). Brief: Arbitrary Shortcode Execution in WP Recipe Maker Plugin. Brief link: https://feed.craftedsignal.io/briefs/2026-09-wp-recipe-maker-rce/
The WP Recipe Maker plugin for WordPress contains a critical vulnerability (CVE-2026-89274) in its metadata sanitization logic. The function WPRM_Metadata::sanitize_metadata() recursively processes recipe structured metadata arrays by invoking do_shortcode() on scalar fields. Specifically, the reviewBody field is populated using the raw comment_content of user-submitted wprm-comment-rating comments. Because the plugin performs tag and shortcode stripping only after the do_shortcode() call has been executed, it fails to sanitize malicious shortcode tokens. This flaw permits unauthenticated attackers to trigger server-side execution of registered WordPress shortcodes when a recipe page is rendered. Successful exploitation allows for the disclosure of sensitive information, such as private post data or attachment details, which are then rendered into the page's JSON-LD metadata for all visitors to see. The exploit requires the malicious comment to be approved, either through site settings or human intervention.
Attack Chain
- Attacker crafts a malicious comment containing a target WordPress shortcode.
- Attacker submits the comment through the
wprm-comment-ratinginput on a recipe page. - The WordPress site administrator or automated process approves the comment.
- The WP Recipe Maker plugin processes the recipe metadata for display.
WPRM_Metadata::sanitize_metadata()pulls the rawcomment_contentinto thereviewBodyfield.- The plugin calls
do_shortcode()on thereviewBodystring, executing the injected shortcode server-side. - The sensitive data rendered by the shortcode is stored in the JSON-LD structure of the recipe page.
- Any visitor loading the recipe page receives the sensitive information within the page's JSON-LD output.
Impact
The vulnerability poses a significant risk of information disclosure across WordPress installations using the WP Recipe Maker plugin. Attackers can leverage this to exfiltrate private post content, system information, or other data exposed via shortcodes. By embedding this information in publicly accessible JSON-LD metadata, the attacker ensures the leaked data is visible to any browser loading the affected recipe page.
Recommendation
- Upgrade the WP Recipe Maker plugin to a version beyond 10.8.1 immediately to resolve CVE-2026-89274.
- Implement strict moderation policies for comments on recipe pages to prevent unapproved content from being rendered by the plugin.
- Conduct an audit of all active shortcodes on the WordPress instance to identify those that could expose sensitive data if triggered via this vulnerability.
Immediate actions
Upgrade WP Recipe Maker to the latest patched version
Mitigations
Enable strict comment moderation
CVE-2026-89274