Description
The Webform module allows site builders to create forms, collect submissions, and configure access to forms and submission data. Form submissions may include uploaded files.
The module does not sufficiently force certain uploaded file types to download when served. Under certain site configurations, a file uploaded through a webform could be rendered inline by a browser, resulting in a cross-site scripting vulnerability.
This vulnerability is mitigated by the fact that a user with permission to create or edit webforms must configure the form to allow the affected file extensions, and a user must specifically open the uploaded file.
This is a backport of SA-CONTRIB-2026-172.
Solution
Install the latest version.
If you use the Webform module for Drupal 7, upgrade to the latest version.
If you use the 7.x-3.x branch, upgrade to 7.x-3.32:
If you use the 7.x-4.x branch, upgrade to 7.x-4.28:
Reported by
Fixed by
- Jacob Rockowitz (jrockowitz)
- Lee Rowlands (larowlan) of the Drupal Security Team
- Tag1 D7ES
Coordinated by
- Swan Kalata (akalata) of the Drupal Security Team
- Bram Driesen (bramdriesen) of the Drupal Security Team
- Greg Knaddison (greggles) of the Drupal Security Team
- Jess (xjm) of the Drupal Security Team
- Tag1 D7ES