Install
Works with Drupal: ^10.5 || ^11.2 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
First stable release of the 2.1.x line. It includes everything from the original Bootstrap theme up to 8.x-3.45, including a security fix. All sites on 2.0.0 or a 2.1.0 release candidate should update.
Security
This release fixes a cross-site scripting vulnerability in the optional tooltip and popover features, the same one fixed by SA-CONTRIB-2026-236 in the original Bootstrap theme. The behaviors passed an element's own data-* attributes to the Bootstrap plugin as options. A content author allowed to write data-sanitize="false" could therefore turn off the HTML sanitizer for that tooltip or popover. The behaviors now drop sanitize, sanitizeFn and whiteList from the element data (#3595886).
Bootstrap 3 is not covered by the security advisory policy, so no separate advisory will be published for this project. If you cannot update right away, disable tooltips and popovers in the theme settings (/admin/appearance/settings/YOUR_THEME).
Requirements
- Drupal 10.5 or later, or 11.2 or later. Sites on 10.4 or 11.1 must update core first.
- The jquery_ui, jquery_ui_draggable and jquery_ui_resizable modules, as in 2.0.0.
- Drupal 12: the info file already allows it, but the theme cannot be installed there yet, because the jquery_ui modules have no release that supports Drupal 12.
Upgrade notes
- Run database updates (
drush updb). A post-update clears cached HTTP responses that newer Symfony versions can no longer unserialize. - The default CDN version is now Bootstrap library v3.4.10. Sites that use the default version get it automatically. Sites that pinned a CDN version should select 3.4.10 in the theme settings.
Changes since 2.0.0
Security and library
- #3595886: Backport the bootstrap 8.x-3.45 changes (tooltip and popover XSS fix, library v3.4.10)
- #3630726: Upgrade the Bootstrap library from v3.4.8 to v3.4.9 (CVE-2025-1647)
Bug fixes
- #3628721: Region content is empty after core renders regions through
#theme - #3522678: Cannot assign a ParameterBag to
Request::$requestwhen unserializing cached responses - #3558024: Inverted filter logic in DrupalBootstrapStyles causes duplicate CSS files
- #3542168: Do not use Drupal core's version for libraries
- #3560258: "Array to string conversion" warning on Drupal 11.3
- #3557071: TypeError in the breadcrumb title when there is no route
Drupal 11.3 and 12 compatibility
- #3595883: Backport the bootstrap 8.x-3.41 and 8.x-3.42 changes, build the theme registry with the Drupal 11.3 and 12 constructor signatures, fix a recursive call in
bootstrap3_get_theme_info() - #3595881: Automated Drupal 12 compatibility fixes
- #3582937: Stop using the deprecated
getBaseThemes()
Tests and maintenance
- #3595884: Backport the bootstrap 8.x-3.43 changes
- #3595885: Backport the bootstrap 8.x-3.44 changes
- #3629695: JavaScript test coverage (node test suite, run in CI)
- #3536372: phpcs fixes, info file aligned with composer.json
- cspell fixes
Thanks to joseph.olstad, Phill Tran, Hendrik Osterholz, Madelyn Cruz and everyone who contributed to these issues in the original Bootstrap theme.