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-96367 Overview
CVE-2026-96367 is a stored Cross-Site Scripting (XSS) vulnerability in the Drupal Webform contributed module. The flaw stems from a Privilege Defined With Unsafe Actions weakness [CWE-267], where authenticated users with specific Webform privileges can inject persistent JavaScript payloads. Affected releases include Webform versions 0.0.0 through 6.2.12 and 6.3.0 through 6.3.1. Exploitation requires low privileges and user interaction, so the attack surface is limited to sites that grant form-building permissions to untrusted contributors. Successful exploitation can lead to session theft, administrative action abuse, and content defacement within the Drupal site context.
Critical Impact
Authenticated attackers with webform management privileges can store malicious scripts that execute in the browsers of other users, including administrators who view affected forms or submissions.
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 with the contributed Webform module enabled
Discovery Timeline
- 2026-10-22 - CVE CVE-2026-96367 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-96367
Vulnerability Analysis
The Drupal Webform module provides form-building capabilities with granular field and configuration options. CVE-2026-96367 arises because the module grants privileged actions that allow script-bearing input to be persisted without sufficient output encoding. When a user with the vulnerable privilege submits crafted content, the payload is stored and later rendered to other site users. The Common Weakness Enumeration category CWE-267 (Privilege Defined With Unsafe Actions) indicates that the issue is rooted in the permission model itself: a role intended for safe form administration unintentionally authorizes actions that enable persistent script injection. Impact scope remains unchanged (Scope: Unchanged), meaning the executed script operates within the same security context as the viewing user.
Root Cause
The root cause is improper restriction of actions tied to a Webform permission. The module permits input or configuration that is rendered as HTML to downstream users without consistent sanitization through Drupal's Xss filter or Twig autoescaping. Combined with a permission scope broader than the risk warrants, this allows a low-privileged editor to influence output viewed by higher-privileged users.
Attack Vector
An attacker must authenticate to the Drupal site and hold the vulnerable Webform permission. The attacker crafts a webform element, label, or configuration field containing JavaScript. When another authenticated user, such as a site administrator, loads the form, submissions list, or configuration page, the browser executes the stored payload. Resulting actions can include stealing session cookies, performing CSRF-style requests under the victim's identity, or modifying site content. The vulnerability is network-reachable and does not require physical or local access.
No verified public proof-of-concept is available. Refer to the Drupal Security Advisory for technical details.
Detection Methods for CVE-2026-96367
Indicators of Compromise
- Webform configuration entities containing <script>, onerror=, onload=, or javascript: payloads in labels, descriptions, or default values.
- Unexpected outbound requests from administrator browsers to attacker-controlled domains shortly after viewing a form or submission.
- Audit log entries showing non-administrator accounts creating or editing webforms immediately before administrator session anomalies.
Detection Strategies
- Query the Drupal configuration and webform_submission tables for HTML event handlers and script tags inside stored form definitions.
- Review the Webform module version via drush pm:list or the Drupal admin reports page and flag any instance at or below 6.2.12 or between 6.3.0 and 6.3.1.
- Inspect web server access logs for POST requests to /admin/structure/webform/* originating from accounts that are not full administrators.
Monitoring Recommendations
- Enable Drupal's database logging and watchdog alerts for configuration changes to Webform entities.
- Monitor browser-side Content Security Policy (CSP) violation reports to catch inline script execution on administrative pages.
- Track authentication events and session token reuse from unexpected IP addresses following administrator access to webform pages.
How to Mitigate CVE-2026-96367
Immediate Actions Required
- Upgrade the Drupal Webform module to a fixed release above 6.2.12 for the 6.2.x branch or above 6.3.1 for the 6.3.x branch, as directed in the vendor advisory.
- Audit all accounts holding Webform administrative permissions and revoke access for users who do not require it.
- Review existing webform configurations and submissions for injected markup before restoring normal operations.
Patch Information
The Drupal Security Team has published remediation guidance in SA-CONTRIB-2026-162. Apply the fixed Webform release referenced in the advisory and clear the Drupal cache after the upgrade using drush cr.
Workarounds
- Restrict the vulnerable Webform permissions to trusted administrator roles only until the module is patched.
- Deploy a strict Content Security Policy that disallows inline scripts on administrative routes to reduce XSS impact.
- Place a web application firewall rule in front of /admin/structure/webform paths to inspect submissions for script payloads.
# Configuration example
# Upgrade the Webform module with Composer and apply database updates
composer update drupal/webform --with-dependencies
drush updatedb -y
drush cache:rebuild
# Verify the installed version is above the affected ranges
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

