SA-CONTRIB-2026-368: Critical severity composer/drupal/section_library vulnerability
This module enables the creation of reusable section templates for the Drupal core Layout Builder module. The module doesn't sufficiently sanitize the template label when it is displayed. This vulnerability is mitigated by the fact that an attacker must have a role with the permission Add section library templates.
Credit
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/drupal/section_libraryto a version that resolves this vulnerability.Fixed in 2.0.3Fixed in 1.2.4
Event History
Frequently Asked Questions
Who can exploit this vulnerability?
An attacker must have a role with the Add section library templates permission. The issue is therefore mitigated by restricting that permission to trusted users.
What input is affected?
The affected input is the section template label when it is displayed. The module does not sufficiently sanitize that label.