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
- Cross-site scripting (XSS) via a race condition in chunked file uploads - CVSS Score 7.4
- Cross-site scripting (XSS) via CDATA sections in SVG and XML files - CVSS Score 7.4
- Cross-site scripting (XSS) via raw text elements in SVG and XML files - CVSS Score 7.4
- Cross-site scripting (XSS) via user names in the
usersfield preview - CVSS Score 7.4
Severity: Moderate
- Bypass of the per-account login limit via the letter case of the email address - CVSS Score 6.3
- Authorization bypass of hooks in batch deletion and file uploads - CVSS Score 5.3
- Access permissions are not checked when field options are resolved from a query - CVSS Score 5.3
- Denial of service (DoS) of the Panel via the site title - CVSS Score 5.3
- Bypass of content validation when creating published pages - CVSS Score 5.3
Severity: Low
- File template path traversal in FileActions allows page blueprints to override file permissions - CVSS Score 2.3
- File existence disclosure via the router for PHP's built-in server - CVSS Score 2.3
- Cross-site scripting (XSS) via invalid UTF-8 in URL validation - CVSS Score 2.0
Reporters
Thanks to the following reporters for responsibly reporting the identified issues
- Thomas Günther (@medienbaecker)
- Fernando Viana (@capivara-research)
- Shinya Murakami (@4n86rakam1)
- Marcus Chaves (@vinniboy021-blip)
- Daniel Coles (@manus-pi)
- Arpit Jain (@arpitjain099)
- Immanuel Tikhonov (@immanuwell)
- @overtimepog
- @Cbdlll
- @iefken
✨ Enhancements
- New wildcard option for
$model->version()->unlock('*')to unlock all changes in any language. #8756 - New
forceoption to force-unlock a version.$model→version()→unlock(force: true)no matter who owns it. #8756 Str::ascii()andStr::slug()accept a new$languageargument. Set it tofalseto 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 slugdata,parentorpagination. #8790- Tag images (e.g. in the link field or in pages/files field previews) stay square and no longer use the
ratiofrom the blueprint'simageoptions. #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' => trueinpanel.viewButtonsshows 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 theX-CSRFheader (panel.system.csrf).panel.get(),panel.post()andpanel.request()already send it. dataof thepagesandfilessections is now a method instead of a computed property. Plugin sections that extend these sections and read$this->datanow getnulland must call$this->data()instead. Plugin sections that define their own computeddatakeep working.Kirby\Cms\Page::create()ignores thechildrenanddrafts,filesandmodelprops. Create child pages with their ownKirby\Cms\Page::create()call or$page->createChild().Kirby\Cms\Fieldset::fields()andKirby\Cms\Fieldset::tabs()return the field props as defined in the blueprint. The rendered props for the Panel are only part ofKirby\Cms\Fieldset::toArray(). This also applies toKirby\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