Drupal Release: 10.1.6
Tag Name: 10.1.6
Release Date: 11/1/2023
DrupalHighly flexible, open-source content management system known for complex, scalable web applications. Preferred by government, educational, and large enterprise websites requiring advanced customization and security features. Robust module ecosystem.
TL;DR
Drupal 10.1.6: Security Fixes and Bug Fixes
This minor release of Drupal 10.1.6 focuses primarily on security updates and bug fixes. It addresses several security vulnerabilities in dependencies (composer/composer and postcss), fixes issues with error logging, CKEditor 5 in Firefox, and resolves various PHP 8 compatibility issues. The release also improves accessibility with better contrast for required field indicators and enhances the Site-building Components (SDC) functionality.
Highlight of the Release
- Security updates for composer/composer (CVE-2023-43655) and postcss (CVE-2023-44270)
- Fixed CKEditor 5 error in Firefox when used in a modal dialog
- Improved accessibility with better contrast for required field indicators
- Enhanced error logging by preventing HTTP 4XX errors from being logged to PHP logger channel
- Fixed PHP 8 compatibility issues and warnings
Migration Guide
No significant migration steps are required for this minor update. This is a standard security and bug fix release that should be applied using your normal update process:
- Back up your database and site files
- Put your site into maintenance mode
- Update Drupal core using your preferred method (Composer recommended)
- Run the database updates
- Clear caches
- Take your site out of maintenance mode
If you're using Composer, the recommended update command is:
composer update drupal/core-recommended --with-all-dependencies
Followed by:
drush updatedb
drush cache:rebuild
Upgrade Recommendations
This release contains important security updates and bug fixes. It is strongly recommended that all sites running Drupal 10.1.5 or earlier in the 10.1.x series upgrade to this version as soon as possible.
The security updates address vulnerabilities in dependencies (composer/composer and postcss), which could potentially affect your site's security. Additionally, the bug fixes resolve several issues that could impact site functionality, particularly for sites using CKEditor 5 in Firefox and those running on PHP 8.
This is a minor release with no known breaking changes, so the upgrade process should be straightforward for most sites. As always, test the update in a development environment before applying it to your production site.
Bug Fixes
Core System Fixes
- Fixed issue where
_TARGET_DB_TYPEwas undefined in certain contexts - Resolved problem where
ExceptionLoggingSubscriberwas incorrectly logging HTTP 4XX errors using PHP logger channel - Fixed issue where config saved during import did not have correct initial values set
- Corrected issue where password is null if user has never logged in, which caused PHP 8 warnings
- Fixed issue where
AssetResolver::getCssAssets()was trying to sort and optimize when$cssis empty
UI and Editor Fixes
- Fixed CKEditor 5 error in Firefox where
event.target.classList is undefinedwhen the editor is used in a modal - Resolved issue where large placeholders were not being processed correctly
- Fixed dialog options not being honored when opening a dialog using GET method
Entity and Block Management Fixes
- Fixed issue where adding or editing a block through the UI was saving the entity twice
- Corrected problem where BlockContent JSON:API collection endpoint wasn't returning unpublished blocks when filtered without proper permissions
- Fixed issue where
BaseFieldOverridewasn't inheriting internal property from the base field - Corrected wrong comment display for sites configuring base field display in the UI
- Fixed issue with block content type checking in BlockPluginId process plugin
Code and Documentation Improvements
- Updated return type declarations in various methods for better PHP 8 compatibility
- Fixed
@returninstead of@returnsin documentation - Improved cspell directives for better code quality
- Corrected dependencies declaration in decoupled menus test module
New Features
Enhanced Site-building Components (SDC)
-
Improved ComponentElement: The SDC ComponentElement now transforms slots scalar values to #plain_text instead of throwing an exception, making component usage more flexible and user-friendly.
-
Better Twig Node Visitors: Now allows other Twig node visitors to modify 'display_start' and 'display_end', enhancing extensibility for theme developers.
Improved Documentation
- Updated documentation for the
getSetting()method to specify what happens when a setting doesn't exist, providing clearer guidance for developers.
Security Updates
-
Composer Security Update: Updated composer/composer to address CVE-2023-43655, protecting against potential security vulnerabilities.
-
PostCSS Security Update: Updated postcss to address CVE-2023-44270, fixing a security vulnerability in this dependency.
-
Improved Error Logging: Modified
ExceptionLoggingSubscriberto not log HTTP 4XX errors using PHP logger channel, reducing log pollution and potential information disclosure.
Performance Improvements
Performance Enhancements
-
Reduced Redundant Operations: Fixed issue where
AssetResolver::getCssAssets()was attempting to sort and optimize when$cssis empty, eliminating unnecessary processing. -
Optimized Block Saving: Resolved an issue where adding or editing a block through the UI was saving the entity twice, reducing database operations and improving performance.
-
Improved File Management: Removed more of the aggregate stale file threshold and state entry, streamlining file handling processes.
-
Build Process Optimization: Excluded copying 'core/node_modules' in getCodebaseFinder, improving build performance and reducing unnecessary file operations.
Impact Summary
Drupal 10.1.6 is a security and bug fix release that addresses several important issues. The most significant impacts include:
-
Enhanced Security: Updates to composer/composer and postcss address known vulnerabilities (CVE-2023-43655 and CVE-2023-44270), improving the overall security posture of Drupal sites.
-
Improved Editor Experience: Fixes for CKEditor 5 in Firefox when used in modals and better handling of large placeholders will result in a more stable editing experience for content creators.
-
Better Accessibility: Improved contrast for required field indicators (red asterisks) enhances compliance with WCAG contrast minimum requirements, making forms more accessible to users with visual impairments.
-
PHP 8 Compatibility: Several fixes address PHP 8 warnings and compatibility issues, ensuring smoother operation on modern PHP environments.
-
Enhanced Developer Experience: Improved type declarations, documentation updates, and fixes to the Site-building Components (SDC) functionality provide a better development experience.
This release demonstrates Drupal's ongoing commitment to security, accessibility, and code quality. While it doesn't introduce major new features, it strengthens the foundation of the platform through targeted improvements and fixes.
Statistics:
User Affected:
- Benefit from security updates to dependencies
- Experience improved error logging with HTTP 4XX errors no longer being logged to PHP logger channel
- Will see fixed dialog options when opening dialogs using GET method
