SA-CONTRIB-2026-162: Critical severity drupal/webform vulnerability
The Webform module allows site builders to create forms, collect submissions, and configure access to forms and submission data. The module does not sufficiently restrict access to the custom attributes YAML editor. Users with permission to create or edit webforms (but without permission to edit webform source) may be able to add custom attributes, leading to cross-site scripting. This vulnerability is mitigated by the fact that an attacker must have a role with permission to create or edit webforms.
Credit
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
drupal/webformto a version that resolves this vulnerability.Fixed in 6.2.12Fixed in 6.3.1
Event History
Frequently Asked Questions
Who is realistically able to exploit this issue?
A user must have a role that permits creating or editing webforms. Users without webform creation or editing permissions are not identified as able to exploit it.
Does an attacker need permission to edit webform source?
No. The issue affects users who can create or edit webforms even when they do not have permission to edit webform source, because access to the custom attributes YAML editor is not sufficiently restricted.
What is the likely impact of successful exploitation?
An attacker may be able to add custom attributes through the YAML editor, resulting in cross-site scripting.