github getkirby/kirby 5.6.4

latest release: 6.0.0-rc.1
one hour ago

Note

This release is part of our monthly security release series. Find out more about those releases and their background on our website: https://getkirby.com/buzz/security-update

🔒 Security

Patched security issues

Severity: High

Severity: Moderate

Severity: Low

Reporters

Thanks to the following reporters for responsibly reporting the identified issues

✨ Enhancements

  • New wildcard option for $model->version()->unlock('*') to unlock all changes in any language. #8756
  • New force option to force-unlock a version. $model→version()→unlock(force: true) no matter who owns it. #8756
  • Str::ascii() and Str::slug() accept a new $language argument. Set it to false to skip the language-specific slug rules and only use the default ASCII map. #8808

🏎️ Performance

  • Pages and files sections only build their items when they are rendered. Code that only needs the section config no longer builds every item. This covers content validation (e.g. when publishing a draft), creating and moving pages, the create dialog and section API actions. Building a section without rendering it is about 4 to 10 times faster, and rendering costs the same as before.

🐛 Bug fixes

  • Duplicated subpages no longer get the original's UUID #8752
  • $collection->not() now also excludes elements whose id matches an internal property name, e.g. pages with the slug data, parent or pagination. #8790
  • Tag images (e.g. in the link field or in pages/files field previews) stay square and no longer use the ratio from the blueprint's image options. #8791
  • Kirby\Toolkit\Dom::sanitize(): Fixed a possible PHP crash when a removed doctype's entities are still used in the document
  • Field names in content files no longer depend on the slug rules of the current language. Before, a field with non-ASCII characters could be stored under different keys in different language files. #8808
  • 'languages' => true in panel.viewButtons shows the languages button instead of breaking the view. #8813
  • Completed chunked uploads no longer share a temporary path, so two uploads of the same filename can't interfere with each other.
  • Values containing <!--<script> can no longer prevent the Panel from loading
  • Hooks now also run for nested events triggered from inside other hooks. Only a hook that is already running for the same event is skipped (to avoid endless loops).

🚨 Breaking changes due to security fixes

  • Plugins that call Panel dialogs, drawers, dropdowns, searches or request routes with their own fetch() have to send the CSRF token in the X-CSRF header (panel.system.csrf). panel.get(), panel.post() and panel.request() already send it.
  • data of the pages and files sections is now a method instead of a computed property. Plugin sections that extend these sections and read $this->data now get null and must call $this->data() instead. Plugin sections that define their own computed data keep working.
  • Kirby\Cms\Page::create() ignores the children and drafts, files and model props. Create child pages with their own Kirby\Cms\Page::create() call or $page->createChild().
  • Kirby\Cms\Fieldset::fields() and Kirby\Cms\Fieldset::tabs() return the field props as defined in the blueprint. The rendered props for the Panel are only part of Kirby\Cms\Fieldset::toArray(). This also applies to Kirby\Form\Field\BlocksField::fields().

🧹 Housekeeping

  • Kirby's Composer dependencies now allow patch and minor updates, so Composer installs get upstream security fixes without waiting for a Kirby release. #8806
  • Updated translations

Don't miss a new kirby release

NewReleases is sending notifications on new releases.