Skip to main content
Vulnerability Database/CVE-2026-96355

CVE-2026-96355: Drupal Webform RCE Vulnerability

CVE-2026-96355 is a code injection flaw in Drupal Webform that enables remote code execution through improper template engine neutralization. This article covers technical details, affected versions, and mitigation strategies.

Published:

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-96355 Overview

CVE-2026-96355 is a code injection vulnerability in the Drupal Webform module caused by improper neutralization of special elements used in a template engine [CWE-1336]. The flaw affects Webform versions 0.0.0 through 6.2.12 and 6.3.0 through 6.3.1. Attackers can inject template syntax that the engine evaluates server-side, resulting in arbitrary code execution within the Drupal application context. The issue is remotely exploitable over the network without authentication or user interaction, and it impacts both confidentiality and integrity of the host application.

Critical Impact

Unauthenticated remote attackers can inject template directives into Webform submissions and execute code on the Drupal host.

Affected Products

  • Drupal Webform module versions 0.0.0 through 6.2.12
  • Drupal Webform module versions 6.3.0 through 6.3.1
  • Drupal sites using the Webform contributed module

Discovery Timeline

  • 2026-10-22 - CVE-2026-96355 published to the National Vulnerability Database (NVD)
  • 2026-10-22 - Last updated in NVD database
  • 2026-10-22 - Drupal Security Advisory SA-CONTRIB-2026-175 published

Technical Details for CVE-2026-96355

Vulnerability Analysis

The Webform module processes user-controlled input through a server-side template engine without adequately neutralizing special syntax characters. When attacker-controlled data reaches the template rendering pipeline, the engine interprets injected directives as executable template logic rather than literal strings. This is a Server-Side Template Injection (SSTI) class of flaw, categorized under [CWE-1336] (Improper Neutralization of Special Elements Used in a Template Engine).

Successful exploitation yields code execution in the Drupal PHP runtime. From that position, an attacker can read site configuration, exfiltrate database credentials, modify content, and pivot to adjacent systems. The CVSS vector indicates confidentiality and integrity impacts without an availability dimension, consistent with injection flaws that focus on data access and manipulation rather than service disruption.

Root Cause

The root cause is insufficient sanitization of input passed to the template engine used by Webform rendering logic. User-supplied values intended as data are concatenated into template contexts where the engine evaluates expressions and tags. Because template delimiters are not escaped or stripped, submitted content is parsed as template source.

Attack Vector

An unauthenticated remote attacker submits crafted input to a Webform endpoint containing template syntax recognized by the backend engine. When Drupal renders the submission, email notification, or confirmation view, the engine evaluates the injected directives. No privileges or user interaction are required to trigger the condition.

No verified proof-of-concept code has been published. See the Drupal Security Advisory SA-CONTRIB-2026-175 for vendor-provided technical details.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-96355

Indicators of Compromise

  • Webform submission payloads containing template delimiters such as {{, }}, {%, or %} in unexpected fields
  • Outbound network connections from the Drupal web server to attacker-controlled hosts shortly after form submissions
  • Unexpected PHP processes spawning shell utilities (sh, bash, curl, wget) from the web server user context
  • New or modified files in sites/default/files/ or module directories that do not correspond to deployments

Detection Strategies

  • Inspect web server access logs for POST requests to Webform endpoints containing template metacharacters or encoded variants
  • Review Drupal watchdog logs for template rendering errors that may indicate failed injection attempts
  • Correlate form submission events with child process creation on the host to identify execution chains

Monitoring Recommendations

  • Enable verbose logging on the Webform module and forward logs to a centralized analytics platform for retention and search
  • Monitor the Drupal file system for integrity changes to PHP files and configuration under the site document root
  • Alert on anomalous egress traffic from web server workloads to uncommon destinations or non-standard ports

How to Mitigate CVE-2026-96355

Immediate Actions Required

  • Upgrade the Webform module to a fixed release as directed in Drupal Security Advisory SA-CONTRIB-2026-175
  • Audit existing Webform submissions for payloads containing template syntax prior to the upgrade
  • Rotate Drupal site credentials, API keys, and database passwords if evidence of exploitation is found
  • Restrict public access to non-essential Webform endpoints until patching completes

Patch Information

Drupal has released fixed versions of the Webform module. Administrators should upgrade past the vulnerable ranges 0.0.0 through 6.2.12 and 6.3.0 through 6.3.1. Refer to Drupal Security Advisory SA-CONTRIB-2026-175 for the exact patched versions and upgrade instructions.

Workarounds

  • Temporarily disable the Webform module on affected sites until patches are applied
  • Place a web application firewall (WAF) rule in front of Webform endpoints to block requests containing template delimiter sequences
  • Limit Webform submission access to authenticated users where business requirements permit
bash
# Example: upgrade the Webform module using Composer
composer require 'drupal/webform:^6.3.2' --update-with-dependencies
drush updatedb
drush cache:rebuild

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.