Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Kirby Panel as low-priv user
-
DeliveryInject {{ query }} into untrusted option source
-
ExploitVictim/attacker loads Panel field view
-
ExecutionValue double-resolved by query parser
-
PersistExecute method or read protected data
-
ImpactDisclose credentials or delete/alter content
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
|
| Exploitation Conditions | Exploitation requires (1) the target Kirby site to use at least one option field (checkboxes, color, multiselect, select, radio, tags, or toggles) or the Options package configured in 'options from query' or 'options from API' mode, or direct plugin/site use of the OptionsApi/OptionsQuery classes; (2) the dynamic option source to contain attacker-influenced data (e.g. a page title, content field, or external API response the attacker can control); and (3) either the attacker to already hold an authenticated Kirby Panel account (PR:L) or another authenticated user to open the affected Panel view (the AT:P attack requirement / user interaction that enables the higher-privilege write path). Sites are NOT exploitable if they use none of these fields/classes, define all options statically in blueprints, or draw all dynamic options only from fully trusted sources - these non-default-configuration constraints substantially limit real-world reach despite the network attack vector. |
| Impact | The CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H, score 7.6) signals a network-reachable but privilege- and precondition-bound issue: PR:L confirms an authenticated Panel account is required, and AT:P reflects the attack requirement that the attacker either belong to the authenticated Panel user group or rely on interaction from another authenticated user. SSVC aligns with 'high but not urgent': Exploitation=none (no observed activity), Automatable=no (requires an authenticated foothold and a site actually configured with untrusted dynamic options), but Technical Impact=total. EPSS is 0.04% (11th percentile) and the CVE is not in CISA KEV, consistent with a targeted, insider-or-multi-user vulnerability rather than mass-exploitable. The key limiting factor is configuration dependence: sites using only static blueprint options or fully trusted dynamic sources are not affected, so raw impact (total) should be weighed against the narrow preconditions before treating this as an emergency. |
| Exploit ScenarioDerived | A low-privileged Panel author edits a page whose title (or a linked external API record they control) is used as a dynamic option source and sets it to {{ page.delete }} or {{ users.first.password }}. When a colleague or administrator opens the Panel view that renders that option field, Kirby re-parses the value as a query and executes it server-side, deleting content or exposing a password hash. No public exploit code is identified at time of analysis, but the technique is straightforward for anyone with the required authenticated foothold. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Server-Side Template Injection in Kirby CMS (versions before 4.9.0 and 5.0.0-5.3.x) lets an authenticated Panel user achieve remote code execution and unauthorized read/write actions by planting malicious query templates in untrusted dynamic option sources. Affected sites are those using option fields (checkboxes, color, multiselect, select, radio, tags, toggles) or the Options package with values sourced from a query or API, where the double-resolution of dynamic values re-parses attacker-controlled strings such as {{ users.first.password }} or {{ page.delete }}. There is no public exploit identified at time of analysis and EPSS is very low (0.04%), but vendor-rated severity is high; SSVC technical impact is total.
RemediationAI
Vendor-released patch: upgrade to Kirby 5.4.0 (https://github.com/getkirby/kirby/releases/tag/5.4.0) or, if remaining on the 4.x line, to Kirby 4.9.0 (https://github.com/getkirby/kirby/releases/tag/4.9.0), which is a backport of the 5.4.0 fix; the vendor recommends moving to Kirby 5. These releases stop double-resolving queries in option values from OptionsQuery/OptionsApi and only resolve queries configured directly in blueprints. If immediate patching is not possible, reduce exposure by converting affected option fields to statically defined blueprint options, or restrict options-from-query/options-from-API and direct OptionsApi/OptionsQuery usage to data sources whose values are fully trusted (e.g. remove fields whose options derive from user-editable page titles or third-party API content); note the trade-off that this disables dynamic option population and may require content-model changes. As a further compensating control, tighten Panel access so untrusted users cannot obtain accounts or edit content that feeds dynamic options, limiting who can plant malicious template strings.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Kirby is a PHP file-based CMS whose Panel offers option fields that populate their choices either statically (in blueprints) or dynamically via the Options package classes OptionsQuery (Kirby query language) and OptionsApi (external/remote API data). Kirby's query syntax {{ query }} / {< query >} is intended to be resolved only when defined in trusted blueprints. The root cause is CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine), realized here as double template resolution: values returned from dynamic (untrusted) sources were passed through the query parser a second time, causing text embedded in a page title, content field, or attacker-controlled API response to be interpreted as a Kirby query rather than a literal string. Because Kirby queries can invoke object methods and traverse the site/user model, this template injection escalates to method calls like page.delete or disclosure of user credential hashes.
Know when Ssti gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable Panel but AC:H for the required untrusted-dynamic-options configuration and multi-user precondition, PR:L for the authenticated account; high confidentiality and integrity, no availability metric.
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3DescriptionGitHub Advisory
TL;DR
This vulnerability affects all Kirby sites that use option fields (checkboxes, color, multiselect, select, radio, tags or toggles) with options from a query or API whose values may not be fully trusted. It also affects direct uses of the OptionsApi or OptionsQuery classes of Kirby's Options package from plugin or site code. The attack requires either an attacker in the group of authenticated Panel users or user interaction of another authenticated user.
This vulnerability is of high severity for affected sites.
Users' Kirby sites are *not* affected if they are not using any of the mentioned fields or the Options package, if all options are defined statically in the blueprints or if all dynamically gathered options are to be trusted.
----
Introduction
Server-Side Template Injection vulnerabilities (SSTI) occur when user input is embedded in a template in an unsafe manner and results in remote code execution on the server.
Injected user input is wrongly treated as a template command instead of as a literal string of text. This allows attackers to query arbitrary information from the affected system or call arbitrary methods to perform actions.
In a Kirby site this can be used to access protected site information, alter site content or break site behavior.
Impact
Kirby provides field types (checkboxes, color, multiselect, select, radio, tags and toggles) that offer a fixed set of options from a configured list. This configured list can be statically defined in the blueprint or it can come from a Kirby query or (external) API source. Options coming from a query or API are treated as dynamic.
Static options can contain queries in the form {{ query }} or {< query >} that are then evaluated to a static value. Because the queries are defined in the blueprint, they can be trusted and cannot be controlled by attackers.
However, dynamic options can often not be trusted. This is why the "options from query" and "options from API" modes are intended to resolve the option values and text strings based on queries not defined within the data source but within the blueprint.
Unfortunately, the results of these trusted queries on untrusted source data are run through the query parser a second time in affected Kirby releases.
Because of the double-resolution of dynamic option values and text strings, attackers could place malicious query templates such as {{ users.first.password }} or {{ page.delete }} in the option sources such as page titles or external API data controlled by the attacker. These queries would then be executed when the field is loaded in the Panel. When the attacker directly accesses the respective Panel view, they could get access to information normally hidden from them. As the malicious query templates are loaded for all users, it could also lead to malicious write access when another user with a higher permission level accesses the manipulated Panel view.
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 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.
Credits
Kirby thanks to @offset for responsibly reporting the identified issue.
Executive ViewAI
Kirby CMS versions before 4.9.0 and 5.0.0-5.3.x (CVE-2026-34587) contain a template injection flaw enabling authenticated Panel users to execute arbitrary code on affected servers; no public exploit identified at time of analysis. However, the vulnerability poses critical remote code execution risk from insider threats or compromised administrative credentials. Immediate patching is required to eliminate this attack vector.
Apply vendor patch. Until patching is complete, restrict Kirby Panel access to fully trusted administrative personnel, disable any automated workflows or integrations that accept user-supplied query templates, and implement network-level access controls limiting Panel exposure to known internal IP ranges.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Rejetto HTTP File Server, up to and including version 2.3m, is vulnerable to a template injection vulnerability. Rated c
Invision Community 5.0.0 through 5.0.6 contains an unauthenticated remote code execution vulnerability in the template e
Remote code execution in the WPML WordPress multilingual plugin (versions up to and including 4.6.12) allows Contributor
Server-side template injection in Adobe Commerce, Adobe Commerce B2B, and Magento Open Source allows remote unauthentica
Server-Side Template Injection in OpenCTI notifier templates allows privileged administrators with 'Manage customization
Unauthenticated remote code execution in Rejetto HFS2 (HTTP File Server) through version 2.4.0 lets an attacker execute
Tandoor Recipes is an application for managing recipes, planning meals, and building shopping lists. Rated critical seve
changedetection.io is an open source web page change detection, website watcher, restock monitor and notification servic
A server side template injection vulnerability in CrushFTP in all versions before 10.7.1 and 11.1.0 on all platforms all
Remote code execution in WGDashboard 4.3.2 and earlier lets authenticated attackers inject Server-Side Template Injectio
Gibbon through 26.0.00 allows /modules/School%20Admin/messengerSettings.php Server Side Template Injection leading to Re
Server-side template injection in the TYPO3 'Powermail' extension lets an anonymous user submit Fluid template syntax th
EUVD-2026-25369
GHSA-jcjw-58rv-c452
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB