- Product
- Webform (Drupal module)
- Versions
- Before 6.2.12 · fixed in 6.2.126.3.0 to before 6.3.1 · fixed in 6.3.1
- Severity
- MediumLess critical
- CVE
- CVE-2026-96398, assigned by Drupal · SA-CONTRIB-2026-173
- Found by
- Mustafa Ahmed, Fortress MSSP
- Published
- November 11, 2026CVE published by Drupal on October 22, 2026
Description
Incorrect Authorization vulnerability in Drupal Webform allows Forceful Browsing. This issue affects Webform versions: from 0.0.0 to 6.2.12, from 6.3.0 to 6.3.1.
From the CVE record · CWE-863 Incorrect Authorization
Technical analysis
WebformSubmissionViewBuilder::view() let a request body parameter, '_webform_submissions_view_mode', replace the view mode used to render a webform submission. The parameter exists so modules such as Webform Entity Print can choose a view mode, but any nonempty value was used as is, without checking it against the view modes that hook is meant to select. SA-CONTRIB-2026-173 describes the effect: under certain conditions a user who can already view a submission could reach a more permissive view mode and see fields that would otherwise be restricted.
public function view(EntityInterface $entity, $view_mode = 'full', $langcode = NULL) {
// Allow modules to set custom webform submission view mode.
// @see \Drupal\webform_entity_print\Plugin\WebformExporter\WebformEntityPrintWebformExporter::writeSubmission
if ($webform_submissions_view_mode = \Drupal::request()->request->get('_webform_submissions_view_mode')) {
$view_mode = $webform_submissions_view_mode;
}
// Apply variants.
/** @var \Drupal\webform\WebformSubmissionInterface $entity */
/** @var \Drupal\webform\WebformInterface $webform */
$webform = $entity->getWebform();
$webform->applyVariants($entity);
return parent::view($entity, $view_mode, $langcode);
}
The fixed view() accepts only 'html' or 'table' from '_webform_submissions_view_mode' and switches to 'twig' only when the internal $entity->webformViewModeTwig property is set (as the Entity Print Attachment element does). Any other value is ignored. The commit's test asserts that the YAML view mode can no longer be forced through this parameter by a user who is denied the YAML submission route.
public function view(EntityInterface $entity, $view_mode = 'full', $langcode = NULL) {
// Allow modules to set custom webform submission view mode.
// @see \Drupal\webform_entity_print\Plugin\WebformExporter\WebformEntityPrintWebformExporter::writeSubmission
$webform_submissions_view_mode = \Drupal::request()->request->get('_webform_submissions_view_mode');
if (isset($entity->webformViewModeTwig)) {
$view_mode = 'twig';
}
elseif (in_array($webform_submissions_view_mode, ['html', 'table'])) {
$view_mode = $webform_submissions_view_mode;
}
// Apply variants.
/** @var \Drupal\webform\WebformSubmissionInterface $entity */
/** @var \Drupal\webform\WebformInterface $webform */
$webform = $entity->getWebform();
$webform->applyVariants($entity);
return parent::view($entity, $view_mode, $langcode);
}
Fortress’s reading of the public source code at the versions shown.
Severity
Drupal rates it Less critical. CISA’s ADP scores it 4.3 (medium) in the CVE record.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NCISA ADP
Remediation
Update Webform to 6.2.12 or later, or to 6.3.1 or later if you run 6.3.0.
Disclosure timeline
- Fix committed to the project repository (dd9ab69).
- CVE ID reserved by Drupal.
- Version 6.2.12 released.
- Public date given by Drupal in the CVE record.
- CVE published by Drupal.
- Published on this site.
Credit
Found and reported by Mustafa Ahmed of Fortress MSSP. The CVE record credits Mustafa Ahmed (mustafa007) as finder. It credits Jacob Rockowitz (jrockowitz) and Mustafa Ahmed (mustafa007) as remediation developers. It credits Bram Driesen (bramdriesen), cilefen (cilefen), Greg Knaddison (greggles), Juraj Nemec (poker10) and Jess (xjm) as coordinators.