Improper Neutralization of Special Elements Used in a Template Engine Affecting getkirby/cms package, versions >=3.8.0-rc.1, <4.9.0>=5.0.0-alpha.1, <5.4.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.03% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-GETKIRBYCMS-16300165
  • published26 Apr 2026
  • disclosed24 Apr 2026
  • creditUnknown

Introduced: 24 Apr 2026

NewCVE-2026-34587  (opens in a new tab)
CWE-1336  (opens in a new tab)

How to fix?

Upgrade getkirby/cms to version 4.9.0, 5.4.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements Used in a Template Engine via the Option::render() and Options::factory() code paths in the Option, Options, OptionsApi, and OptionsQuery classes. An attacker can inject template/query syntax into the text or info option fields by supplying crafted option data or by influencing API- or query-backed option sources, causing those expressions to be re-evaluated during rendering. This lets user-controlled content be interpreted as Kirby queries rather than treated as literal text, so rendered option labels can disclose unintended page data or other resolved content to the user.

Notes

  • The vulnerable path is not limited to blueprint-defined static options: it also covers option lists built from OptionsApi and OptionsQuery, which means attacker-controlled or editor-controlled source data can be reinterpreted when those providers are used in Panel fields such as select, radio, tags, multiselect, checkboxes, color, and toggles.

Workarounds

  • If your site uses the Options package directly from plugin or site code, do not feed it untrusted query/API-backed option data until you can upgrade, because those sources can otherwise be rendered as executable Kirby queries.

CVSS Base Scores

version 4.0
version 3.1