drupal/theme_rule - SA-CONTRIB-2026-012
This module allows site builders to create so-called "theme_rule" config entities. These theme rules can render pages with different themes than the default when certain conditions match.
The module uses simple GET request to disable or enable theme rules, which allows attackers to disable or enable theme rules by tricking site administrators to click on links.
This vulnerability is mitigated by the fact that an attacker must know the machine name of the theme rule.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | drupal/theme_rule | < 1.2.1 | 1.2.1 |
| Drupal module | drupal/theme_rule | < 1.2.1 | 1.2.1 |
References
- Weakness (CWE)
-- Platform
- Composer, Drupal
- Package
drupal/theme_rule- Disclosed
- 25.02.2026
- Updated
- 11.10.2026 12:18
Sources and licenses
OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2026-012 - CC BY-SA 2.0; code GPL-2.0-or-later
Vulnerability history: drupal/theme_rule
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
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.