{"id":"CVE-2026-40099","aliases":["CVE-2026-40099","GHSA-w942-j9r6-hr6r"],"related":[],"kind":"vulnerability","state":"published","title":"Kirby's page creation API bypasses the changeStatus permission check via unfiltered isDraft parameter","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### TL;DR\n\nThis 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.\n\nUsers' 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.\n\n----\n\n### Introduction\n\nAn 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.\n\nThe effects of an authorization bypass can include unauthorized access to sensitive information as well as unauthorized changes to content or system information.\n\n### Impact\n\nKirby'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.\n\nFor 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.\n\nNew 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.\n\n### Patches\n\nThe problem has been patched in [Kirby 4.9.0](https://github.com/getkirby/kirby/releases/tag/4.9.0) and [Kirby 5.4.0](https://github.com/getkirby/kirby/releases/tag/5.4.0). Please update to one of these or a [later version](https://github.com/getkirby/kirby/releases) to fix the vulnerability.\n\nIn 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.\n\n### Credits\n\nKirby thanks @offset for responsibly reporting the identified issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-04-23T21:24:58.000Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"version":"< 4.9.0","status":"affected"},{"version":">= 5.0.0, < 5.4.0","status":"affected"}],"vendor":"getkirby","product":"kirby","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.9.0"}],"ecosystem":"Packagist","package":"getkirby/cms","purl":"pkg:composer/getkirby/cms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.4.0"}],"ecosystem":"Packagist","package":"getkirby/cms","purl":"pkg:composer/getkirby/cms","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.9.0"},{"status":"affected","introduced":"5.0.0","fixed":"5.4.0"}],"vendor":"getkirby","product":"kirby","cpe":"cpe:2.3:a:getkirby:kirby:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/getkirby/kirby/security/advisories/GHSA-w942-j9r6-hr6r","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/getkirby/kirby/releases/tag/4.9.0","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/getkirby/kirby/releases/tag/5.4.0","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40099","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/getkirby/kirby","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-25T01:41:45.982Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40099","url":"https://www.cve.org/CVERecord?id=CVE-2026-40099","licence":"CVE Terms of Use","modified":"2026-04-25T01:41:56.640Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w942-j9r6-hr6r","url":"https://github.com/advisories/GHSA-w942-j9r6-hr6r","licence":"CC-BY-4.0","modified":"2026-05-05T15:59:46.191Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40099","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40099","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:19.447Z","epss":{"score":0.00286,"percentile":0.22725,"date":"2026-12-01T12:00:22.000Z"}}