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-96357 Overview
CVE-2026-96357 is a stored Cross-Site Scripting (XSS) vulnerability in the Drupal Webform contributed module. The flaw results from improper neutralization of user-supplied input during web page generation, allowing an authenticated attacker to persist malicious scripts that execute in the browsers of subsequent viewers. The vulnerability affects Webform versions 0.0.0 through 6.2.12 and 6.3.0 through 6.3.1. The issue is tracked under CWE-79 and documented in Drupal Security Advisory 2026-172.
Critical Impact
An authenticated low-privilege user can inject stored JavaScript that executes in other users' sessions, enabling session theft, administrative action hijacking, and content manipulation within the Drupal site context.
Affected Products
- Drupal Webform module versions 0.0.0 to 6.2.12
- Drupal Webform module versions 6.3.0 to 6.3.1
- Drupal sites running the Webform contributed module with form submission enabled
Discovery Timeline
- 2026-10-22 - CVE CVE-2026-96357 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-96357
Vulnerability Analysis
The Webform module provides form-building capabilities for Drupal sites, handling user-submitted data across configurable fields. CVE-2026-96357 arises when the module renders attacker-controlled input into HTML output without applying adequate escaping or sanitization. A user with permission to submit or configure webform content can embed script payloads that persist in storage and execute each time an authorized viewer renders the affected page.
Stored XSS in a form-handling module is particularly consequential because form submissions and configurations are routinely reviewed by site administrators. When an administrator opens an affected submission or form view, the injected script runs with their session context. Attackers can leverage this access to perform state-changing actions, exfiltrate session cookies, or pivot into further administrative compromise.
Exploitation requires low privileges and user interaction, and the attack is delivered over the network. The scope remains unchanged, but confidentiality and integrity are both impacted at a limited level per the published metrics.
Root Cause
The root cause is improper neutralization of input during web page generation [CWE-79]. The Webform module paths that render user-provided content fail to apply Drupal's Twig auto-escaping or the Html::escape() and Xss::filter() safeguards consistently, allowing HTML and JavaScript to be interpreted by the browser rather than rendered as text.
Attack Vector
The attack is delivered remotely over the network. An authenticated user with permission to submit webform data or edit webform elements supplies a crafted payload containing HTML or JavaScript. The payload is stored by the module and later rendered to any user who views the affected submission, element, or form page. User interaction is required because a victim must load the page where the malicious content is rendered. Refer to Drupal Security Advisory 2026-172 for the specific affected code paths and payload surfaces.
Detection Methods for CVE-2026-96357
Indicators of Compromise
- Webform submission records containing HTML tags such as <script>, <img onerror=>, <svg onload=>, or javascript: URI schemes in fields expected to hold plain text.
- Unexpected outbound HTTP requests originating from administrator browser sessions shortly after viewing webform submissions.
- Drupal watchdog or syslog entries showing unusual admin-session activity following submission review.
- New or modified Drupal user accounts, roles, or permissions created without an authorized change ticket.
Detection Strategies
- Query the webform_submission_data table for payload patterns containing script tags, event handlers (onerror, onload, onclick), or encoded JavaScript references.
- Deploy Content Security Policy (CSP) reporting to capture inline script execution attempts and script-src violations on pages that render webform content.
- Review web application firewall (WAF) logs for POST requests to webform endpoints containing XSS payload signatures.
Monitoring Recommendations
- Monitor administrator and editor session activity for anomalous requests immediately following access to /admin/structure/webform or submission review pages.
- Alert on changes to user roles, permissions, or Webform module configuration performed outside expected maintenance windows.
- Track installed Webform module version across Drupal sites and flag any instance still running vulnerable versions.
How to Mitigate CVE-2026-96357
Immediate Actions Required
- Upgrade the Webform module to a fixed release as specified in Drupal Security Advisory 2026-172.
- Audit existing webform submissions and configurations for stored payloads containing HTML or JavaScript before upgrading.
- Restrict permissions to submit or configure webforms to trusted accounts until patching is complete.
- Invalidate active administrator sessions and rotate credentials if compromise is suspected.
Patch Information
Drupal has released fixed versions of the Webform module addressing CVE-2026-96357. Site administrators should upgrade beyond 6.2.12 on the 6.2.x branch and beyond 6.3.1 on the 6.3.x branch. Consult Drupal Security Advisory 2026-172 for the exact fixed version numbers and release notes.
Workarounds
- Temporarily revoke the Webform submission and configuration permissions from untrusted roles until the module is upgraded.
- Enforce a strict Content Security Policy that blocks inline scripts and restricts script-src to trusted origins to limit payload execution.
- Place the Drupal site behind a WAF with rules that strip or block common XSS payload patterns on webform submission endpoints.
# Upgrade the Drupal Webform module using Composer
composer update drupal/webform --with-dependencies
drush updatedb
drush cache:rebuild
# Verify the installed version
drush pm:list --type=module --status=enabled | grep webform
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

