WP Recipe Maker Arbitrary Shortcode Execution via Approved Recipe Rating Comments (CVE-2026-89274)
Published: 2026-11-25 • Researcher: murrez (GitHub repo owner; commit author x99) — PoC; Wordfence Threat Intelligence (CNA / advisory)
- Severity
- Critical
- CVE
- CVE-2026-89274
- Category
- web
- Affected product
- WP Recipe Maker plugin for WordPress (wp-recipe-maker)
- Affected versions
- All versions up to and including 10.8.1; fixed in 10.8.2 (per the source repository and vendor advisory)
- Disclosed
- 2026-11-25
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-89274
- https://github.com/murrez/CVE-2026-89274
- https://www.wordfence.com/threat-intel/vulnerabilities/id/d6ad49ff-85eb-4d05-ba23-51d89695add3?source=cve
- https://plugins.trac.wordpress.org/browser/wp-recipe-maker/tags/10.8.1/includes/public/class-wprm-metadata.php#L1028
- https://plugins.trac.wordpress.org/browser/wp-recipe-maker/tags/10.8.1/includes/public/class-wprm-metadata.php#L181
- https://plugins.trac.wordpress.org/browser/wp-recipe-maker/tags/10.8.1/includes/public/class-wprm-metadata.php#L553
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3699793%40wp-recipe-maker&new=3699793%40wp-recipe-maker
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-09-19 |
| Author / Researcher | murrez (GitHub repo owner; commit author x99) — PoC; Wordfence Threat Intelligence (CNA / advisory) |
| CVE / Advisory | CVE-2026-89274 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.1 (CVSSv3.1: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N) |
| Status | PoC — exploit path is implemented and verifiable, but limited: it requires the malicious comment to be approved before execution, and demonstrated impact is shortcode-output disclosure, not code execution |
| Tags | WordPress, WP-Recipe-Maker, shortcode-injection, CWE-94, unauthenticated, plugin, JSON-LD, comment-approval, data-disclosure, Python |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | WP Recipe Maker plugin for WordPress (wp-recipe-maker) |
| Versions Affected | All versions up to and including 10.8.1; fixed in 10.8.2 (per the source repository and vendor advisory) |
| Language / Platform | PHP (WordPress plugin); Python 3.9+ PoC client |
| Authentication Required | No — unauthenticated comment submission; the malicious comment must subsequently be approved (auto-approval or moderator action) |
| Network Access Required | Yes — HTTP/HTTPS to the WordPress site and a recipe page that loads the comment rating form |
Summary
WP Recipe Maker, a popular WordPress recipe plugin, executes arbitrary registered shortcodes that an unauthenticated attacker plants in a recipe rating comment. The plugin’s metadata sanitizer runs WordPress shortcode processing over every scalar field of the recipe metadata array, including the review body field that is copied verbatim from the comment content of approved rating comments, before any shortcode stripping happens. Once the comment is approved, the injected shortcode runs server-side on every load of the recipe page, and its output is embedded in the page’s JSON-LD review body metadata and disclosed to all visitors. The public PoC checks plugin versions and recipe pages and then submits a rating comment carrying a shortcode payload, verifying the leak by searching the rendered JSON-LD.
Vulnerability Details
Root Cause
WPRM_Metadata::sanitize_metadata() recursively calls do_shortcode() on every scalar field of the recipe’s structured metadata array, including reviewBody, which is populated verbatim from the comment_content of approved wprm-comment-rating comments. Shortcode tokens are therefore executed before any sanitization: the later wp_strip_all_tags() and strip_shortcodes() calls only clean the already-rendered output string, so they cannot prevent server-side shortcode invocation. This is CWE-94 (Improper Control of Generation of Code).
Attack Vector
An unauthenticated attacker submits a comment to a post containing a WPRM recipe, including the wprm-comment-rating field and a shortcode payload in the comment body (for example a caption shortcode plus a unique marker). The built-in WordPress comment endpoint (/wp-comments-post.php) is used; the bundled PoC optionally also tries the premium user-rating REST route. The payload only executes after the comment passes the site’s approval threshold, then executes on every subsequent recipe page render.
Impact
Server-side execution of any registered shortcode, with the resulting output embedded in the JSON-LD reviewBody metadata of the recipe page. This can disclose content exposed by installed shortcodes (attachment captions, private post fields, or other shortcode-provided data) to all visitors. Impact is bounded by which shortcodes are registered on the target; the reference PoC uses harmless probes and confirms reflection only, and it does not demonstrate remote code execution, privilege escalation, or persistent access.
Environment / Lab Setup
OS: Linux (Docker or VM)
Target: WordPress with WP Recipe Maker <= 10.8.1, a published recipe post,
and the recipe comment rating form enabled; comments either
auto-approved or approvable by a moderator account
Attacker: Python 3.9+ with requests and urllib3 (see requirements.txt)
Tools: curl, browser (to view page JSON-LD), Python 3Setup Steps
| |
Proof of Concept
Step-by-Step Reproduction
Fingerprint the target — check mode looks for the plugin’s enqueued asset version (
?ver=10.8.1) and reportscandidate,patched(>= 10.8.2),no_plugin, orplugin_no_recipe_comments. It also records candidate recipe pages, post IDs, and recipe IDs incandidates.jsonl.Shell script1python3 poc.py -u http://127.0.0.1:8080 --mode checkSelect a recipe page with a rating form — exploit mode re-verifies the version is not patched, discovers or uses the supplied recipe permalink, and parses the comment form context (post ID, recipe ID, rating field).
Shell script1 2python3 poc.py -u http://127.0.0.1:8080 --mode exploit \ --recipe-url /recipe-post/ --shortcode "[caption]PROBE[/caption]" --verifySubmit the payload comment — the PoC posts the shortcode plus a random marker (
wprm89274_<8 chars>) ascommentto/wp-comments-post.php, with a rating value and a generated author/email. If the comment lands in moderation, the result row reportspending_moderation.Approve the comment — as a moderator, approve the rating comment (this is the documented prerequisite for execution).
Verify execution — fetch the recipe page again, extract every
application/ld+jsonblock, collectreviewBodystrings, and confirm the marker/shortcode output appears there. Mass verification of prior submissions is supported via--mode verifywith asubmitted_mass.txtlist.Shell script1 2python3 poc.py -u http://127.0.0.1:8080 --mode verify \ --recipe-url /recipe-post/ --marker wprm89274_ab12cd34
Exploit Code
See
poc.pyin this folder (the full upstream client) andupstream-README.mdfor usage. Dependencies are pinned inrequirements.txt; sample target list intargets.example.txt.
The core of the exploit path (comment submission with the shortcode payload) is:
| |
Expected Output
Illustrative result row (field names from poc.py; values depend on the lab):
| |
If the comment awaits moderation, the row instead reports "status": "pending_moderation" and exploited stays false until the comment is approved and re-verified.
Detection & Indicators of Compromise
- New comments on recipe posts containing shortcode tokens (
[caption],[gallery],[embed], or unknown bracket syntax), especially from free-mail domains or generated author names such aswprmprobe*. - Comments carrying
wprm-comment-ratingthat contain bracketed tokens; legitimate ratings normally contain plain text only. - Recipe page JSON-LD
reviewBodyvalues that contain shortcode output, markers matchingwprm89274_[a-z0-9]{8}, or content that normally does not appear in review text (captions, private post fields). - Repeated POSTs to
/wp-comments-post.phpto many posts from one client, or use of the/wp-json/wp-recipe-maker/v1/user-rating/<id>route with bracketed comment bodies. - Requests for the plugin asset with
?ver=values <= 10.8.1 while the page is being probed (--mode checkbehavior).
SIEM / IDS rule (example):
| |
Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade WP Recipe Maker to 10.8.2 or later (fixed version per the source repository); see the WordPress.org changeset and Wordfence advisory in References for the vendor build details. |
| Workaround | Disable the recipe comment rating form if it is not needed, and hold all comments for moderation so no attacker-controlled comment is approved automatically; re-render/clear caches after the update so previously poisoned review bodies are removed. |
| Config Hardening | Keep WordPress and all plugins current, restrict comment auto-approval, review existing approved rating comments for bracketed tokens, and audit which shortcodes are registered — impact scales with what installed plugins expose through shortcodes. |
References
- CVE-2026-89274 — NVD
- murrez/CVE-2026-89274 — source PoC
- Wordfence Threat Intelligence advisory
- Vulnerable source: WPRM_Metadata::sanitize_metadata() (10.8.1, line 1028)
- Vulnerable source: reviewBody population (10.8.1, line 181)
- Vulnerable source: shortcode handling (10.8.1, line 553)
- WordPress.org plugin changeset 3699793
Notes
Auto-ingested from https://github.com/murrez/CVE-2026-89274 on 2026-11-25.
Review verdict: this is a genuine PoC with an exploit implementation, not a pure detector. The check mode is reconnaissance (plugin version + recipe page with a rating form), but exploit mode actually submits the shortcode payload through the comment endpoint and verify mode confirms execution by finding the marker in the page JSON-LD reviewBody. It was therefore ingested rather than skipped.
Limitations: successful exploitation depends on the malicious comment being approved by an auto-approval rule or a moderator, which the repository README states explicitly and which is inherent to the vulnerability. The achieved impact is server-side shortcode execution with output disclosed in structured data; the tool’s own README notes that --verify only confirms JSON-LD reflection, not full RCE, and that real impact depends on which other plugins/themes register exploitable shortcodes. Bulk runs against internet-wide target lists are out of scope for this archive; use only against systems you own or are authorized to test.
Files archived: poc.py (main exploit client), upstream-README.md, requirements.txt, targets.example.txt, and LICENSE. The upstream repository is MIT licensed (Copyright (c) 2026 CVE-2026-89274 PoC contributors); a research-only disclaimer header was added to poc.py. No exploit code was executed during ingestion.
| |