Releases: getkirby/kirby
3.6.6.1
🚨 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
🎉 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 PHPunlink()
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 #4504Before
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 newhtml
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
3.7.3
✨ Enhancements
- Panel: the loading spinner has reduced opacity #4496
- New @ alias path supported for IDEs, especially/known for Jetbrains and VSCode. Based on SO solution: https://stackoverflow.com/a/66878724/1769465 #4556
🐛 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
3.7.2.1
3.7.2
🚨 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 theaccount
area was replaced by thelogout
view of the newlogout
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
✨ 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 theaccount
area was replaced by thelogout
view of the newlogout
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
✨ Enhancements
- Plugins that only provide Panel styles and/or scripts don't need to add an
index.php
anymore,index.js
andindex.css
will still be loaded in the Panel #4445 - New
bool
column type for theDatabase
classes #4433 - Translations now also check for simple language codes when using complex locales (e.g.
es
fores_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 orhost
key in theForwarded
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