drupal/block_permissions - SA-CONTRIB-2024-046
This module enables you to manage blocks from specific modules in the specific themes.
The module doesn't sufficiently check permissions under the scenario when a block is added using the form "/admin/structure/block/add/{plugin_id}/{theme}" (route "block.admin_add"). The attacker can add the block to the theme where they can't manage blocks.
This vulnerability is mitigated by the fact that an attacker must have a role with the permission "administer blocks provided by [provider]".
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | drupal/block_permissions | >= 1.0.0, < 1.2.0 | 1.2.0 |
| Drupal module | drupal/block_permissions | >= 1.0.0, < 1.2.0 | 1.2.0 |
References
- Weakness (CWE)
-- Platform
- Composer, Drupal
- Package
drupal/block_permissions- Disclosed
- 09.10.2024
- Updated
- 11.10.2026 12:18
Sources and licenses
OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2024-046 - CC BY-SA 2.0; code GPL-2.0-or-later
Vulnerability history: drupal/block_permissions
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.