5.3medium
Kirby's page creation API bypasses the changeStatus permission check via unfiltered isDraft parameter
- Severity
- 5.3medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.40% (higher than 26% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-w942-j9r6-hr6r
Description
Kirby is an open-source content management system. Kirby's user permissions control which user role is allowed to perform specific actions to content models in the CMS. These permissions are defined for each role in the user blueprint (`site/blueprints/users/...`). It is also possible to customize the permissions for each target model in the model blueprints (such as in `site/blueprints/pages/...`) using the `options` feature. The permissions and options together control the authorization of user actions. For pages, Kirby provides the `pages.create` and `pages.changeStatus` permissions (among others). Prior to versions 4.9.0 and 5.4.0, Kirby checked these permissions independently and only for the respective action. However the `changeStatus` permission didn't take effect on page creation. New pages are created as drafts by default and need to be published by changing the page status of an existing page draft. This is ensured when the page is created via the Kirby Panel. However the REST API allows to override the `isDraft` flag when creating a new page. This allowed authenticated attackers with the `pages.create` permission to immediately create published pages, bypassing the normal editorial workflow. The problem has been patched in Kirby 4.9.0 and Kirby 5.4.0. Kirby has added a check to the page creation rules that ensures that users without the `pages.changeStatus` permission cannot create published pages, only page drafts.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| getkirby kirby | < 4.9.0, >= 5.0.0, < 5.4.0, before 4.9.0, from 5.0.0 before 5.4.0 | CVE List, NVD |
| getkirby/cms (Packagist) | before 4.9.0, from 5.0.0 before 5.4.0 | GitHub Advisory Database |
All scores
| GitHub_M | 5.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Kirby is an open-source content management system. Kirby's user permissions control which user role is allowed to perform specific actions to content models in the CMS. These permissions are defined for each role in the user blueprint (`site/blueprints/users/...`). It is also possible to customize the permissions for each target model in the model blueprints (such as in `site/blueprints/pages/...`) using the `options` feature. The permissions and options together control the authorization of user actions. For pages, Kirby provides the `pages.create` and `pages.changeStatus` permissions (among others). Prior to versions 4.9.0 and 5.4.0, Kirby checked these permissions independently and only for the respective action. However the `changeStatus` permission didn't take effect on page creation. New pages are created as drafts by default and need to be published by changing the page status of an existing page draft. This is ensured when the page is created via the Kirby Panel. However the REST API allows to override the `isDraft` flag when creating a new page. This allowed authenticated attackers with the `pages.create` permission to immediately create published pages, bypassing the normal editorial workflow. The problem has been patched in Kirby 4.9.0 and Kirby 5.4.0. Kirby has added a check to the page creation rules that ensures that users without the `pages.changeStatus` permission cannot create published pages, only page drafts.
GitHub Advisory Database
TL;DR
This vulnerability affects all Kirby sites where users have the permission to create pages (pages.create permission is enabled) but not the permission to change the status of pages (pages.changeStatus permission is disabled). This can be due to configuration in the user blueprint(s), via options in the page blueprint(s) or via a combination of both settings.
Users' Kirby sites are not affected if their use case does not consider the creation of published pages a malicious action. The vulnerability can only be exploited by authenticated users.
Introduction
An authorization bypass allows authenticated users to perform actions they should not be allowed to perform based on their configured permissions, thereby causing a privilege escalation.
The effects of an authorization bypass can include unauthorized access to sensitive information as well as unauthorized changes to content or system information.
Impact
Kirby's user permissions control which user role is allowed to perform specific actions to content models in the CMS. These permissions are defined for each role in the user blueprint (site/blueprints/users/...). It is also possible to customize the permissions for each target model in the model blueprints (such as in site/blueprints/pages/...) using the options feature. The permissions and options together control the authorization of user actions.
For pages, Kirby provides the pages.create and pages.changeStatus permissions (among others). In affected releases, Kirby checked these permissions independently and only for the respective action. However the changeStatus permission didn't take effect on page creation.
New pages are created as drafts by default and need to be published by changing the page status of an existing page draft. This is ensured when the page is created via the Kirby Panel. However the REST API allows to override the isDraft flag when creating a new page. This allowed authenticated attackers with the pages.create permission to immediately create published pages, bypassing the normal editorial workflow.
Patches
The problem has been patched in Kirby 4.9.0 and Kirby 5.4.0. Please update to one of these or a later version to fix the vulnerability.
In all of the mentioned releases, Kirby has added a check to the page creation rules that ensures that users without the pages.changeStatus permission cannot create published pages, only page drafts.
Credits
Kirby thanks @offset for responsibly reporting the identified issue.
NVD (es)
Kirby es un sistema de gestión de contenido de código abierto. Los permisos de usuario de Kirby controlan qué rol de usuario tiene permitido realizar acciones específicas en los modelos de contenido en el CMS. Estos permisos se definen para cada rol en el esquema de usuario (’site/blueprints/users/...’). También es posible personalizar los permisos para cada modelo objetivo en los esquemas de modelo (como en ’site/blueprints/pages/...’) usando la característica ’options’. Los permisos y las opciones juntos controlan la autorización de las acciones del usuario. Para las páginas, Kirby proporciona los permisos ’pages.create’ y ’pages.changeStatus’ (entre otros). Antes de las versiones 4.9.0 y 5.4.0, Kirby verificaba estos permisos de forma independiente y solo para la acción respectiva. Sin embargo, el permiso ’changeStatus’ no surtía efecto en la creación de páginas. Las nuevas páginas se crean como borradores por defecto y deben publicarse cambiando el estado de la página de un borrador de página existente. Esto se asegura cuando la página se crea a través del Panel de Kirby. Sin embargo, la API REST permite anular el indicador ’isDraft’ al crear una nueva página. Esto permitía a atacantes autenticados con el permiso ’pages.create’ crear inmediatamente páginas publicadas, eludiendo el flujo de trabajo editorial normal. El problema ha sido parcheado en Kirby 4.9.0 y Kirby 5.4.0. Kirby ha añadido una verificación a las reglas de creación de páginas que asegura que los usuarios sin el permiso ’pages.changeStatus’ no pueden crear páginas publicadas, solo borradores de página.
References
| https://github.com/getkirby/kirby/security/advisories/GHSA-w942-j9r6-hr6r | patch, vendor-advisory, web | |
| https://github.com/getkirby/kirby/releases/tag/4.9.0 | release-notes, web | |
| https://github.com/getkirby/kirby/releases/tag/5.4.0 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-40099 | advisory | |
| https://github.com/getkirby/kirby | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40099 changed 2026-04-25 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w942-j9r6-hr6r changed 2026-05-05 | CC-BY-4.0 |
| NVD | CVE-2026-40099 changed 2026-10-26 | Public domain |