{"answers":{"affected":"2 open source packages ship an affected version, including craftcms/webhooks.","exploited":"There is no known exploitation of CVE-2026-32261 in the wild and no public exploit code.","fix":"Upgrade craftcms/webhooks to 3.2.0 or later.","what":"CVE-2026-32261 is a high-severity code injection vulnerability in craftcms webhooks, published on 16 Mar 2026. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-32261 and fix it if it is affected.\n\nWhat it is: CVE-2026-32261 is a high-severity code injection vulnerability in craftcms webhooks, published on 16 Mar 2026. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-32261 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- craftcms/webhooks (Packagist): affected from 3.0.0; fixed in 3.2.0\n- craftcms/webhooks (Packagist): affected from 3.0.0; fixed in 3.2.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-32261/ (Markdown: https://insights.sbomify.com/CVE-2026-32261/index.md)","id":"CVE-2026-32261","markdown":"https://insights.sbomify.com/CVE-2026-32261/index.md","name":"CVE-2026-32261","record":{"aliases":["GHSA-8wg7-wm29-2rvg"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Craft CMS plugin","requires_auth":"high_privilege","summary":"Authenticated users with Webhooks plugin access can execute arbitrary PHP code via Twig template injection in Craft CMS.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.5,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"description":"Webhooks for Craft CMS plugin adds the ability to manage “webhooks” in Craft CMS, which will send GET or POST requests when certain events occur. From version 3.0.0 to before version 3.2.0, the Webhooks plugin renders user-supplied template content through Twig’s renderString() function without sandbox protection. This allows an authenticated user with access to the Craft control panel and permissions to access the Webhooks plugin to inject Twig template code that calls arbitrary PHP functions. This is possible even if allowAdminChanges is set to false. This issue has been patched in version 3.2.0.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"RCE via SSTI for users with permissions to access the Craft CMS Webhooks plugin","id":"CVE-2026-32261","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Craft CMS has a Path Traversal Vulnerability in AssetsController","id":"CVE-2026-32262"},"packages":[{"ecosystem":"Packagist","fixed":["3.2.0"],"introduced":["3.0.0"],"last_affected":[],"package":"craftcms/webhooks","purl":null,"source":"GHSA-8wg7-wm29-2rvg"},{"ecosystem":"Packagist","fixed":["3.2.0"],"introduced":["3.0.0"],"last_affected":[],"package":"craftcms/webhooks","purl":"pkg:composer/craftcms/webhooks","source":"GHSA-8wg7-wm29-2rvg"}],"prev":{"headline":"Command Injection via incomplete shell metacharacter blocklist in node:child_process (bypass of CVE-2026-27190 fix)","id":"CVE-2026-32260"},"products":["webhooks"],"published":"2026-03-16","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-16","vendors":["craftcms"]},"summary":"Authenticated users with Webhooks plugin access can execute arbitrary PHP code via Twig template injection in Craft CMS.","url":"https://insights.sbomify.com/CVE-2026-32261/"}