SA-CONTRIB-2026-372: Critical severity composer/drupal/allowed_formats vulnerability
This module allows site builders to hide the text format help and guidelines. In the past, the module also allowed site owners to restrict the text formats used by a text field (a feature that has since been moved to Drupal core). In certain conditions, the module allows regular editors to access text formats that were not allowed for a certain field, potentially leading to malicious content. This vulnerability is mitigated by the fact only sites which installed the module in previous versions are affacted. A fresh 3.x install is not vulnerable.
Credit
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/drupal/allowed_formatsto a version that resolves this vulnerability.Fixed in 3.0.2
Event History
Frequently Asked Questions
Which sites are affected?
Only sites that installed the module in previous versions are affected. Fresh 3.x installations are not vulnerable.
What access does an attacker need to exploit this issue?
An attacker would need regular editor access. Under certain conditions, those editors can access text formats that are not allowed for a particular field.
What is the potential impact of exploitation?
Access to an otherwise disallowed text format could allow an editor to submit malicious content through the affected field.