CVE-2026-21896: Kirby is missing permission checks in the content changes API
TL;DR This vulnerability affects all Kirby sites where user permissions are configured to prevent specific role(s) from performing write actions, specifically by disabling the update permission with the intent to prevent modifications to site content. If developers haven't configured any user permissions that deviate from the default of allowing all actions, their site is not affected.
Published Jan 8, 2026
Affected packages
getkirby/cms
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.0.0, <= 5.2.1
- Fixed in
- 5.2.2
- Check
composer show getkirby/cms
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
TL;DR
This vulnerability affects all Kirby sites where user permissions are configured to prevent specific role(s) from performing write actions, specifically by disabling the update permission with the intent to prevent modifications to site content.
If developers haven't configured any user permissions that deviate from the default of allowing all actions, their site is *not* affected.
----
Introduction
Kirby allows to restrict the permissions of specific user roles. Users of that role can only perform permitted actions.
Permissions for updating content have already existed and could be configured for each model type, but were not enforced by Kirby's API backend code during operations to the changes version.
The changes version is the content version that contains unsaved changes of existing models (pages, users, files or the site).
Impact
The missing permission checks allowed attackers with Panel access to create or discard a changes version or update the content fields in an existing changes version. All of these actions could affect arbitrary models.
This could cause the following impact:
- Attackers could maliciously create changes versions for all models of the site, creating editing locks that would prevent other authenticated users from making content changes until those locks were cleared.
- Attackers could update the content in a malicious way, for example by adding defamatory or spam content or by including malicious links or scripts. While this updated content would not immediately be published to the site, an inattentive editor with update permissions could inadvertently publish these changes in the belief that an authorized user has made them.
- Attackers could discard extensive changes, making editors lose their content work.
Patches
The problem has been patched in Kirby 5.2.2. Please update to this or a later version to fix the vulnerability.
In the mentioned release, we have added checks for the model update permissions that ensure that users without this permission cannot create, edit or discard the changes version of the respective model.
A future Kirby release will add separate edit and save permissions that will make it possible to control write actions to model content more granularly.
Credits
Thanks to Lukas Kleinschmidt (@lukaskleinschmidt) for responsibly reporting the identified issue.
Credited to lukaskleinschmidt.
References
- https://github.com/getkirby/kirby/security/advisories/GHSA-4j78-4xrm-cr2f
- https://nvd.nist.gov/vuln/detail/CVE-2026-21896
- https://github.com/getkirby/kirby/commit/f5ce1347b427b819bf193acf11fd0da232f7af47
- https://github.com/getkirby/kirby/releases/tag/5.2.2
- https://github.com/advisories/GHSA-4j78-4xrm-cr2f
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-75592
Kirby: Access to image files outside of the site root via path traversal in the media handling
medium6.9Sep 2, 2026CVE-2026-69127
Kirby: System path exposure from error messages in the REST API
medium6.9Sep 1, 2026CVE-2026-71415
Kirby: File upload permissions are not checked during processing of chunk data
high7.1Aug 31, 2026CVE-2026-75594
Kirby: Access to image files and limited access to JSON files outside of the site root via path traversal in the media handling
high8.2Aug 31, 2026CVE-2026-49274
Kirby: `pages.access` permission is not checked in the pages picker for parent pages
medium5.3Jun 18, 2026CVE-2026-49276
Kirby: Self cross-site scripting (self-XSS) in the writer field
high7.4Jun 18, 2026
