Skip to content

Releases: getkirby/kirby

3.6.6.1

24 Aug 09:11
3a753ae
Compare
Choose a tag to compare

🚨 Security release

Cross-site scripting (XSS) from content entered in the tags and multiselect fields

Severity: high (CVSS score 7.1)

The tags and multiselect fields allow to select tags from an autocompleted list. The tags field also allows to enter new tags or edit existing tags. Kirby already handled escaping of the autocompleted tags, but unfortunately the Panel used HTML rendering for new or edited tags as well as for custom tags from the content file.

This allowed attackers with Panel access to store malicious HTML code in a tag. The browser of the victim who visited the modified page in the Panel will then have rendered this malicious HTML code.

It also allowed self-inflicted XSS attacks in the tags field (meaning that malicious code is executed in the browser of the user who entered it). This could be used in social engineering attacks where a victim is convinced by an attacker to enter malicious code into a tags field.

Visitors without Panel access could only use this attack vector if your site allows changing the content of a tags or multiselect field from a frontend form (for example user self-registration or the creation of pages from a contact or other frontend form). If you validate or sanitize the provided form data, you are already protected against such attacks by external visitors.

You are also not affected by these vulnerabilities if your site doesn't have untrustworthy users with Panel access or a way to modify field values from the frontend or if you don't use the tags or multiselect fields.

Note: The fixes for these vulnerabilities have the side effect that values in the tags and multiselect fields that come from dynamic options are displayed with double escaping (e.g. the & character is displayed as &). We will fix the double escaping issues with a refactoring of the options fields (tags, multiselect, checkboxes, radio, select and toggles) in Kirby 3.8.

3.7.4-rc.1

18 Aug 08:52
8a3e608
Compare
Choose a tag to compare
3.7.4-rc.1 Pre-release
Pre-release

🎉 Features

  • Added support for hot module reloading (HMR) during plugin development using kirbyup #4541
  • New Helpers::handleErrors() method for custom PHP error handling
  • New F::unlink() method for idempotent deletion of files and links (native PHP unlink() without a warning when the file is already deleted)

✨ Enhancements

  • The toggles field preview now uses bubbles #4566

  • Reduced size of the Panel's vendor JS file by adding code splitting for the vuedraggable.js library #4504

    Before

    dist/css/style.css   106.29 KiB / gzip: 18.02 KiB
    dist/js/index.js     303.70 KiB / gzip: 71.99 KiB
    dist/js/vendor.js    375.31 KiB / gzip: 120.69 KiB

    After

    dist/js/vuedraggable.js   40.74 KiB / gzip: 14.12 KiB 
    dist/css/style.css        106.29 KiB / gzip: 18.01 KiB
    dist/js/index.js          304.26 KiB / gzip: 72.29 KiB
    dist/js/vendor.js         333.99 KiB / gzip: 106.81 KiB
  • Node dependencies have been updated #4568

  • k-text has a new html prop to pass content that should be rendered as HTML (instead of providing text via the default slot). Use carefully as rendering HTML can be a gateway for XSS attacks. #4578

  • Now text block field input extendable with preview #3016

🐛 Fixes

  • UI Kit typos fixed for reference docs #4562
  • Asset URLs no longer start with two slashes if the site's base URL was configured as / #4508
  • The intl date handler now consistently uses the configured default locale #4304
  • Deleting files throughout the codebase now happens in an idempotent way (if the file is already deleted, no error is thrown) to avoid race conditions, e.g. when cache entries or sessions are cleaned #3039

♻️ Refactoring

  • Allows modifying allowed schemes for Http\Uri when extending via Uri::$schemes property #4575
  • Our CI now checks frontend coding style again #4578

3.7.3

10 Aug 10:11
481349f
Compare
Choose a tag to compare

✨ Enhancements

🐛 Fixes

  • Values in the table layout are no longer escaped twice #4442
  • Pages field subpages option works correctly again #4309
  • The $page->childrenAndDrafts() collection is now immediately updated when a child page or draft is modified #2767
  • Text no longer jumps during dragging/sorting #4400

📈 Stats

  • 23 commits
  • 13 closed issues and PRs

3.7.3-rc.1

03 Aug 09:46
179f52d
Compare
Choose a tag to compare
3.7.3-rc.1 Pre-release
Pre-release

✨ Enhancements

  • Panel: the loading spinner has reduced opacity #4496

🐛 Fixes

  • Values in the table layout are no longer escaped twice #4442
  • Pages field subpages option works correctly again #4309
  • The $page->childrenAndDrafts() collection is now immediately updated when a child page or draft is modified #2767
  • Text no longer jumps during dragging/sorting #4400

3.7.2.1

29 Jul 11:17
368264f
Compare
Choose a tag to compare

This patch fixes an issue in the structure field. If you don't use the structure field in your application, you don't have to update.

🐛 Fixed bugs

  • Structure field no longer overwrites existing data #4537

3.7.2

27 Jul 13:32
0f4890a
Compare
Choose a tag to compare

🚨 Attention

Unfortunately, we introduced a regression in structure fields in this release. Please use the patch release instead https://github.com/getkirby/kirby/releases/tag/3.7.2.1

✨ Enhancements

  • During logout, the session and Kirby's internal state is now more thoroughly cleaned

🐛 Fixes

  • The border radius for items in the multiselect field is now consistent with the tags field. #4483
  • The “Login” button was renamed “Log in”
  • Fixed an exception happening in PHP 8.1 when pasting text with empty paragraphs into a blocks field #4503
  • The quote block preview now matches the writer field in the drawer better. #4502
  • Trailing \n characters of YAML-encoded values no longer cause Kirby to consider a field multi-line. #4505
  • Added missing onInput handler of the structure field #4513
  • Fixed sortable issue when search is active for sections #4512
  • $block->prev() & $block->next() no longer return hidden blocks from a visible block #4480
  • The "Back" button during a password reset or two-step login works again #4397

♻️ Refactoring

  • Upgraded to vite 3.0 and vitest 0.18.0 #4470

🚨 Breaking changes

  • The Panel view account.logout of the account area was replaced by the logout view of the new logout area

Yep, minor releases should not have breaking changes, but we consider this a non-breaking breaking change that helps fix a bug. The old account.logout view was such an internal feature. We are confident that it has never been extended by anyone.

📈 Stats

  • 31 commits
  • 14 closed issues and PRs

3.7.2-rc.1

22 Jul 12:01
3a6645b
Compare
Choose a tag to compare
3.7.2-rc.1 Pre-release
Pre-release

✨ Enhancements

  • During logout, the session and Kirby's internal state is now more thoroughly cleaned

🐛 Fixes

  • The border radius for items in the multiselect field is now consistent with the tags field. #4483
  • The “Login” button was renamed “Log in”
  • Fixed an exception happening in PHP 8.1 when pasting text with empty paragraphs into a blocks field #4503
  • The quote block preview now matches the writer field in the drawer better. #4502
  • Trailing \n characters of YAML-encoded values no longer cause Kirby to consider a field multi-line. #4505
  • Added missing onInput handler of the structure field #4513
  • Fixed sortable issue when search is active for sections #4512
  • $block->prev() & $block->next() no longer return hidden blocks from a visible block #4480
  • The "Back" button during a password reset or two-step login works again #4397

♻️ Refactoring

  • Upgraded to vite 3.0 and vitest 0.18.0 #4470

🚨 Breaking changes

  • The Panel view account.logout of the account area was replaced by the logout view of the new logout area

Yep, minor releases should not have breaking changes, but we consider this a non-breaking breaking change that helps fix a bug. The old account.logout view was such an internal feature. We are confident that it has never been extended by anyone.

3.7.1

12 Jul 11:23
cfac315
Compare
Choose a tag to compare

✨ Enhancements

  • Plugins that only provide Panel styles and/or scripts don't need to add an index.php anymore, index.js and index.css will still be loaded in the Panel #4445
  • New bool column type for the Database classes #4433
  • Translations now also check for simple language codes when using complex locales (e.g. es for es_ES) #4447
  • Kirby now detects reverse proxy URLs from the standardized Forwarded header
  • If a reverse proxy is used but does not pass the X-Forwarded-Host header or host key in the Forwarded header, Kirby falls back to the server name; this improves compatibility with CloudFlare #4443
  • Kirby now takes the Forwarded header into account when checking whether the Panel is installable on a local installation #4490

🐛 Fixes

  • Blocks no longer output error messages unless debug mode is active #4448
  • Blocks field don’t activate multi-select mode anymore when changing tabs #4349
  • Writer fields with inline: true only store first paragraph when multiple are pasted #4310
  • It is possible again to override the url option from domain-specific config files. #4311

♻️ Refactoring

  • Our code is now indented using tabs instead of spaces to increase accessibility and reduce code size #4454
  • Upgraded to Vue 2.7.4 #4491
  • The $collection->__set() methods consistently no longer return the class instance to match PHP's definition for this method #4458

📈 Stats

  • 73 commits
  • 24 closed issues and PRs

3.7.0.2

01 Jul 08:31
9e89103
Compare
Choose a tag to compare

🐛 Fixed bugs

  • Url::query() and $uri->query() no longer return empty results #4446

3.7.0.1

28 Jun 09:39
eccee2a
Compare
Choose a tag to compare

🐛 Fixed bugs

  • Image KirbyTag with caption doesn't trigger deprecation warning anymore #4435
  • Files field - change button works again when uploads: false is set #4436