# CVE-2026-34587: Kirby has Server-Side Template Injection (SSTI) via double template resolution in option rendering

- Severity: High 7.6 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-04-23T21:24:00.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-jcjw-58rv-c452
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Kirby is an open-source content management system. Prior to versions 4.9.0 and 5.4.0, 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. The problem has been patched in Kirby 4.9.0 and Kirby 5.4.0. Kirby has updated the `Options` logic to no longer double-resolve queries in option values coming from `OptionsQuery` or `OptionsApi` sources. Kirby now only resolves queries that are directly configured in the blueprints.

(As written by CVE List.)

## Affected

- getkirby kirby: < 4.9.0; >= 5.0.0, < 5.4.0; before 4.9.0; from 5.0.0 before 5.4.0
- getkirby/cms (Packagist): before 4.9.0; from 5.0.0 before 5.4.0

## Every score

- GitHub_M: CVSS:4.0 7.6 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/getkirby/kirby/security/advisories/GHSA-jcjw-58rv-c452> (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-34587> (advisory)
- <https://github.com/getkirby/kirby> (package)

## Sources

- CVE List: [CVE-2026-34587](https://www.cve.org/CVERecord?id=CVE-2026-34587), CVE Terms of Use, modified 2026-04-24
- GitHub Advisory Database: [GHSA-jcjw-58rv-c452](https://github.com/advisories/GHSA-jcjw-58rv-c452), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-34587](https://nvd.nist.gov/vuln/detail/CVE-2026-34587), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-34587 · Whole record: https://cve.day/CVE-2026-34587.json · Rebuilt by cve.day 2026-11-25T22:59:19.446Z
