CVE-2026-32261: Craftcms/webhooks Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-8wg7-wm29-2rvg
CWE-1336
Published
Advisory Summary

CVE-2026-32261 is a HIGH remote code execution vulnerability (CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine) affecting Craftcms/webhooks libraries in the Packagist ecosystem. The issue involves rce via ssti for users with permissions to access the craft cms webhooks plugin. Remediation is available by upgrading affected packages to version 3.2.0.

CVE-2026-32261 at a Glance

CVE Identifier CVE-2026-32261
GHSA Identifier GHSA-8wg7-wm29-2rvg
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
Affected Product Craftcms/webhooks
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2026-32261

To remediate this vulnerability, upgrade all affected Craftcms/webhooks dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

craftcms/webhooks fixed: 3.2.0
Upgrade craftcms/webhooks to 3.2.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for craftcms/webhooks

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-32261, inspect your project dependencies for Craftcms/webhooks:

inspect dependencies for craftcms/webhooks

Analyze the terminal output to locate any version of Craftcms/webhooks in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine, where the product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine. In Craftcms/webhooks, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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`. Affected users should update to version 3.2.0 to mitigate the issue.

CVE-2026-32261 Affected Craftcms/webhooks Versions

1 component(s)
Fixed Versions:
3.2.0
Product / Package Ecosystem Affected Versions Fixed Version
craftcms/webhooks
Packagist
≥ 3.0.0
< 3.2.0
3.2.0

References

Frequently Asked Questions

What is CVE-2026-32261?
CVE-2026-32261 is a security vulnerability in Craftcms/webhooks involving RCE via SSTI for users with permissions to access the Craft CMS Webhooks plugin under CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine.
Which Craftcms/webhooks versions are affected?
Affected versions include releases prior to 3.2.0 across affected packages: craftcms/webhooks.
What version fixes CVE-2026-32261?
Upgrading to 3.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is craftcms/webhooks affected?
Yes, craftcms/webhooks is affected in releases prior to 3.2.0. Upgrade your dependency to 3.2.0 or later.
What CWE is associated with CVE-2026-32261?
CVE-2026-32261 is classified under CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine (The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.).
How can I check Packagist dependencies for CVE-2026-32261?
Run the dependency tree command: 'inspect dependencies for craftcms/webhooks'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8wg7-wm29-2rvg",
  "modified" : "2026-03-16T21:57:13Z",
  "published" : "2026-03-16T18:11:23Z",
  "aliases" : [ "CVE-2026-32261" ],
  "summary" : "RCE via SSTI for users with permissions to access the Craft CMS Webhooks plugin",
  "details" : "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.\n\nThis is possible even if `allowAdminChanges` is set to `false`.\n\nAffected users should update to version 3.2.0 to mitigate the issue.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "craftcms/webhooks"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/webhooks/security/advisories/GHSA-8wg7-wm29-2rvg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-32261"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/webhooks/commit/88344991a68b07145567c46dfd0ae3328c521f62"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/craftcms/webhooks"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1336" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-16T18:11:23Z",
    "nvd_published_at" : "2026-03-16T19:16:17Z"
  }
}