drupal/webform - SA-CONTRIB-2021-004
The Webform module for Drupal 8/9 includes a default Contact webform, which sends a notification email to the site owner and a confirmation email to the email address supplied via the form.
The confirmation email can be used as an open mail relay to send an email to any email address.
This vulnerability is mitigated by the fact that the site owner's email address is also receiving a notification email, which should alert the site owner to the exploitation. If the site owner's mailbox is not monitored, the open mail relay can be more easily exploited.
With the Webform module's latest release, the default Contact's confirmation email will only be sent to an authenticated user's email address. Anonymous users will no longer receive a confirmation email.
If anonymous users need to receive a confirmation email, we recommend you add SPAM protection to the form and update the email handler.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | drupal/webform | < 5.25.0, = 6.0.0, = 6.0.1 | 5.25.0 |
| Drupal module | drupal/webform | < 5.25.0, = 6.0.0, = 6.0.1 | 5.25.0 |
References
- Weakness (CWE)
-- Platform
- Composer, Drupal
- Package
drupal/webform- Disclosed
- 03.03.2021
- Updated
- 11.10.2026 13:17
Sources and licenses
OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2021-004 - CC BY-SA 2.0; code GPL-2.0-or-later
Vulnerability history: drupal/webform
All published vulnerabilities of this package (Drupal module), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 31
- First → latest
- 05.2020 09.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Unrated 31
Disclosures per year
- 2020: 8
- 2021: 3
- 2022: 0
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 20
-
drupal/webform - SA-CONTRIB-2021-004 this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.