Install
To start a new Drupal project with version 12.0.0-rc1@RC:To update your site and all dependencies to the latest version of Drupal:
To update your site to this specific release:
Using Composer to manage Drupal site dependencies
Downloads
Release notes
This is a release candidate for the next major version of Drupal. Release candidates are not supported for production sites, but they are intended for widespread testing in preparation for the upcoming stable release. More information on release candidates.
Refer to Preparing your site to upgrade to a newer major version for tools you can use to check the Drupal 12 compatibility of modules, themes, and sites. Drupal 12 will be supported until December 2030.
This release fixes security vulnerabilities present in Drupal 12.0.0-beta2:
- Drupal core - Highly critical - Remote code execution - SA-CORE-2026-017
- Drupal core - Moderately critical - Gadget chain - SA-CORE-2026-018
- Drupal core - Highly critical - Access bypass - SA-CORE-2026-019
For more information on 12.0.x development, see [meta] Release Drupal 12 in 2026. The 12.0.x branch also includes all the latest commits that have been backported to 11.5.x and earlier branches. 12.0.x will be nearly identical to 11.5.x except that:
- Deprecated code will be removed, including entire deprecated modules.
- Dependencies will be updated to new major versions as appropriate.
For all other changes, refer to the 11.5.x branch.
Sites should update to the latest release of 11.3 prior to updating to Drupal 12
Drupal sites running 11.2.x or earlier versions must first update to 11.3.0 or later prior to updating to Drupal 12, because all core updates added prior to 11.3.0 have been removed. In general, sites should update to the most recent release of their current major branch before updating to the next major release.
Important changes since 12.0.0-beta2
- The recommended PHP version is now 8.5.13 or higher.
- Translations may need to be added or updated for strings that now use the
@countplaceholder instead of "1" or "one" as the singular. -
.htaccesshas been updated to address the deprecation of assertion options. Site owners should change the following section of their.htaccessfiles:<IfModule mod_php.c> php_value assert.active 0 </IfModule>Replace this section with:
<IfModule mod_php.c> php_value zend.assertions 0 </IfModule>You can also change your hosting configuration
php.inifile according to PHP's documentation on thezend.assertionsdirective.-1is recommended for production websites for performance, but cannot be set at runtime in an.htaccessfile.If you do set it to
-1, remove the section from the.htaccessinstead, as it will cause warnings in the site logs. - A UX update to the user creation form that was present in 12.0.0-beta2 has since been reverted: #3481627: Update user creation form to hide password and status fields when user is notified
- Contrib and custom code that extends core classes may break, because many constructors now use promoted properties with native types. Subclasses that redeclare these properties without the same type cause a fatal error, and some constructor parameters were renamed, which breaks calls that use named arguments.
PHP dependency changes
-
Symfony has been updated to v8.2.0-RC1.
-
Twig has been updated to v3.31.1 for a number of published CVEs.
-
Numerous other dependencies have received minor- and patch-level updates to the latest versions.
Frontend dependency changes
-
CKEditor has been updated to v49.1.0. This update changes some CKEditor styling. If your site has custom CKEditor plugins or custom styles for the editor, read the CKEditor 49 theming and API changes change record.
-
jQuery has been updated to 4.1.0.
-
HTMX has been updated to 4.0.2.
-
Other dependencies have received minor- and patch-level updates to the latest versions.
Development dependency changes
-
Composer has been updated to 2.11.3 to fix a security issue.
-
PHPStan has been updated to 2.3.6, and PHPStan level 3 is now used for core.
Known issues
- Some contributed modules are incorrectly specifying custom asset weights for library definitions in relation to custom weights that were removed from core library definitions. #3642203: Deprecate and ignore custom weights for assets in libraries will ignore custom weights altogether but until then follow individual issues for any affected contributed modules.
Search the issue queue for known issues
All changes since Drupal 12.0.0-beta2
- fix: #3641672 WorkspaceManager::executeInWorkspace() and executeOutsideWorkspace() do not restore the active workspace properly
- task: #3123401 Stop caching route lookups with query parameters or without results
- Revert "fix: #3616328 Key the typed data prototype cache by the definition, not by root type and property path"
- fix: #3616328 Key the typed data prototype cache by the definition, not by root type and property path
- task: #3641618 Update Symfony
- task: #3638354 Rebuild dictionaries
- fix: #3328425 CKEditor 5 balloons invisible when CKEditor 5 is used inside a modal
- fix: #3122231 Singular variant for plural string must contain @count, otherwise Drupal displays wrong data for untranslated strings
- task: #3633600 Use key/value over state in ImageModuleTestHooks
- fix: SA-CORE-2026-019
- fix: #3641543 Update Composer to 2.11.3
- task: #3641267 Update Twig to v3.31.1
- Revert "fix: #3328425 CKEditor 5 balloons invisible when CKEditor 5 is used inside a modal"
- test: #3633416 Errors in performance tests with inaccessible external CSS/JS assets
- fix: #3328425 CKEditor 5 balloons invisible when CKEditor 5 is used inside a modal
- fix: #3637097 Fast 404 is skipped for 404s caused by ParamNotConvertedException
- task: #3635402 Promote remaining properties in constructors and add @param docs where needed
- task: #3050199 Fix PHPStan errors after revert.
- Revert "task: #3050199 Remove entity level constraint MenuSettingsConstraint that validates property only added in a form"
- task: #3638970 Update JavaScript dependencies for 12.0.0
- task: #3639808 Recommend PHP 8.5.13 on D12
- Revert "feat: #3481627 Update user creation form to hide password and status fields when user is notified"
- task: #3639196 Bump PHPStan to version 2.3.6 and friends
- task: #3639248 Remove deprecated class properties
- fix: #3591548 Drupal\update\MailHandler service missing autowire: true causes ArgumentCountError on instantiation in 11.4+
- task: #3638867 Update PHP dependencies for 12.0.0
- fix: SA-CORE-2026-018
- fix: SA-CORE-2026-017
- task: #3638074 Update to Symfony 8.2.0-BETA2
- task: #3638086 GuzzleHttp\Utils::defaultUserAgent() is deprecated Since guzzlehttp/guzzle 8.5
- fix: #3637899 Page title needs more top margin
- task: #3634418 Implement better messaging for Assert for css in libraries discovery
- fix: #3628789 CallableResolver exception doesn't properly handle a bad array definition
- fix: #3630286 Details arrow in the node edit form sidebar is not vertically centered
- fix: #2703349 Show as expanded checkbox is not necessary when No menu entry is selected
- task: #3579889 Replace @return void with native void return types
- task: #3560682 Remove words not needed in cspell:ignore
- task: #3622391 Use tagged iterators in CacheTagsInvalidator
- fix: #3636099 commit-code-check.sh fails if PHPStan ignores all the files
- task: #3634655 Update to Symfony 8.2.0-BETA1
- task: #3623380 (follow-up) Create OOP replacement for hook_install_tasks and hook_install_tasks_alter
- task: #3630529 Remove KentR as accessibility maintainer
- task: #3633177 Add test coverage for SA-CORE-2026-003
- fix: #3626014 DrupalKernel::terminate() leaves the main request on the stack when termination throws
- fix: #3624877 Navigation icons contain hardcoded colors
- fix: #3466047 BlockContentBlock does not inherit block content entity cacheable dependency
- task: #3617943 Deprecate DateTimePlus::prepareFormat()
- fix: #3622503 View entity type's translation context is passed to the wrong TranslatableMarkup() argument
- task: #3635620 Bump PHPStan to version 2.3.5 and friends
- docs: #3618622 Some cleanup related to OrderOperation for hooks
- fix: #3631040 (follow-up) MetadataCollection::isCovers() was removed in PHPUnit 12
- fix: #3631040 MetadataCollection::isCovers() was removed in PHPUnit 12
- fix: #3631067 Entity query Condition::compile() compares the AND conjunction case-sensitively when it shouldn't
- task: #3630772 PHPUnit 12 deprecated using #[CoversClass] to target traits
- task: #3615585 Optimize EntityDefinitionUpdateMultipleTypesTest
- task: #3633288 Add test coverage for SA-CORE-2026-001
- fix: #3273334 Unable to unselect a multi select exposed filter in ajax view
- task: #3570206 Delete UserAuthenticationTest::testAuthenticateWithZeroPassword()
- task: #3635924 Upgrade htmx to 4.0.1
- fix: #3620626 Data integrity issues with deleting languages and node revisions
- fix: #3631325 ViewPageController::handle() should not ask for upcast route parameters
- task: #3631208 Explicitly set Twig macro argument value in views-view-table.html.twig
- fix: #3578936 Navigation module and Admin theme should use the same Inter font
- fix: #3624341 Default Admin theme's file_link template does not support empty file_size
- docs: #3422895 (follow-up) Document when ConfigurableLanguageManagerInterface::getLanguageConfigOverride() and LanguageConfigFactoryOverrideInterface::getOverride() return an empty object
- fix: #3403394 [regression] CKEditor 5 throws an exception when the default theme is not installed
- docs: #3422895 Document when ConfigurableLanguageManagerInterface::getLanguageConfigOverride() and LanguageConfigFactoryOverrideInterface::getOverride() return an empty object
- fix: #3619623 Empty FilterUrl maximum link text length setting trims to ellipsis only
- docs: #3628805 Remove Project Browser from MAINTAINERS.txt
- docs: #3624887 Remove obsolete hook_extension() and hook_render_template() documentation
- task: #3629689 Fix usage of with*() without expects() in mocks - round 3
- fix: #3630627 Htmx::boost() is missing functionality for v.4
- task: #3633459 Update CKEditor to 49.1.0
- fix: #3384819 Can't add class attribute to hr
- fix: #3626006 DefaultExceptionHtmlSubscriber leaves the router with a detached GET request context after error-page subrequests
- fix: #3403394 [regression] CKEditor 5 throws an exception when the default theme is not installed
- task: #3623380 Create OOP replacement for hook_install_tasks and hook_install_tasks_alter
- task: #3619733 Deprecate .module file extension
- fix: #3634917 [random test failure] “cache_file_parsing” table does not exist in functional tests on PostgreSQL and SQLite
- fix: #3611423 FieldStorageReuseForm aria-label "Reuse" vs visible "Re-use"
- task: #3620948 [November 2026] Refactor test code via Rector
- task: #3555692 [November 2026] Replace @legacy-covers method level annotations with @see and prevent new ones from being added
- Revert "task: #2171395 OptionsWidgetBase should use WidgetInterface::massageFormValues()"
- task: #3278431 [November 2026] Use PHP 8 constructor property promotion for existing code
- fix: #3633186 [regression] core/scripts/dr and core/scripts/drupal fail to find the autoloader when the docroot is web/
- fix: #3635165 Resolve InstallTasksTest PHPStan level 3 errors
- fix: #3619744 Removing an item from a multiple value field widget discards the weight order
- task: #3619507 Remove CSS weights from system.libraries.yml
- fix: #3625458 Form error text in dark mode has low contrast
- fix: #3620907 Logo and navigation icons don't align in the collapsed sidebar
- task: #3633064 Update masterminds/html5 to 2.12.0
- fix: #3634443 Remove weights from Admin theme JS library files
- task: #3633167 Add test coverage for SA-CORE-2026-008
- task: #3633170 Add test coverage for SA-CORE-2026-006
- task: #3633178 Add test coverage for SA-CORE-2026-002
- task: #3425412 [November 2026] Bump PHPStan rule level to 3
- task: #3410389 Remove the sdc module from core
- fix: #3627936 Active workspace has a broken styling in dark mode
- task: #3633176 Add test coverage for SA-CORE-2026-004
- task: #3629920 [12.0.x backport] Bump PHPStan to version 2.3.4
- fix: #3631365 Remove stale PinnedDevDependencies composer.json and fix dependent PHPStan test
- fix: #3634044 symfony/error-handler 8.1.10 - DrupalDebugClassLoader throws TypeError when Symfony records NULL metadata for generic return types
- fix: #2980380 Inline error messages are not using proper theming mechanisms
- fix: #2350049 filter_autop() returns
but should return
for HTML5 - task: #3628411 [ci] Share compiled scripts between PHPUnit processes with opcache.file_cache
- Revert "fix: #2735997 Decimal separator and precision settings unavailable when aggregating decimal fields"
- fix: #3631912 Fix spell checking only on main and the write lint caches job
- task: #3629594 PHPUnit 13.2 - Replace expectExceptionMessage() with expectExceptionMessageIs*() - later additions
- fix: #3631472 Fix description of the definition in IconPackManager::validateDefinition
- fix: #3619924 LanguageConfigSchemaTest makes a pointless assertion
- task: #3618406 Move DiffArrayTest and TagsTest to the correct namespace
- fix: #3473763 locale_string_is_safe should accept "" as being safe
- task: #3633166 Add test coverage for SA-CORE-2026-009
- task: #3633160 Add test coverage for SA-CORE-2026-010
- task: #3633173 Add test coverage for SA-CORE-2026-005
- docs: #3551942 Exception when using a closure in #pre_render
- task: #3633156 Add test coverage for SA-CORE-2026-012
- task: #3633157 Add test coverage for SA-CORE-2026-011
- fix: #3624237 incorrect schema in module_installer_config_test.schema.yml
- fix: #3536252 LazyPluginCollection::initializePlugin() doesn't document it can throw exceptions
- fix: #3609975 UrlHelper::uncompressQueryParameter() should set a gzuncompress() character limit
- fix: #3621157 Admin theme should override top-bar.html.twig directly
- fix: #3624512 Document LogMessageParserInterface::parseMessagePlaceholders() array shape
- task: #3630648 Improve balancing of CI test jobs
- fix: #2735997 Decimal separator and precision settings unavailable when aggregating decimal fields
- fix: #3631439 Fix plural strings with the same singular as another string
- task: #3632086 Update lockfile versions of Symfony components, Guzzle, Composer
- fix: #3631912 Fix spell checking only on main and the write lint caches job
- task: #3398033 Fix deprecated assert.active directive
- fix: #3607178 Pass LoggerInterface to Error::logException() in EntityLinks filter
- fix: #3613882 Aggregation settings form builds and submits with different handlers
- fix: #3029364 "None" Argument Validator for Views Contains an Undefined Variable
- fix: #3622469 Fix field.settings:purge_batch_size config name and key
- docs: #3477815 Investigate need for unused variables in DriverSpecificTransactionTestBase
- fix: #2879023 Batch is dependent on the order of query string parameters
- test: #3615599 Split up SandboxManagerBaseTest
- task: #3631272 Remove testing configuration for the Search module
- task: #3631331 [ci] Cache Composer vendor directory
- task: #3223012 oEmbed system should validate that downloaded thumbnails are valid images
- fix: #3330159 Potentially confusing description in text area widget settings
- fix: #3623811 Navigation module's 'eye' icon does not respect currentColor
- fix: #3617719 Field block does not display placeholder fallback in preview mode
- fix: #3114467 'Negate' form value for condition plugins should be cast to boolean in validation.
- fix: #3614737 Reset button doesn't appear for table column sort
- task: #3471113 Update to selenium/standalone-chrome:134+
- Revert "task: #3629920 Bump PHPStan to version 2.3.1"
- task: #3630408 Reduce CPU request for unit tests
- fix: #3619969 Fix StaticMap migrate process plugin doc variable names in examples
- task: #3560542 Improve documentation for migrate-plugin concat
- Back to dev.
- Drupal 12.0.0-beta2
- fix: #3628096 Default Admin attaches a library it doesn't define
- task: #3627629 Remove search module coverage from robots.txt
- task: #3629920 Bump PHPStan to version 2.3.1
- Drupal 12.0.0-beta2