Kirby CMS CVE-2026-44175
HIGHSeverity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Authenticated low-priv editor injects via API (PR:L, AC:L); victim must load frontend page (UI:R); stored XSS crosses into victims' sessions (S:C) with high C/I and no availability impact.
Primary rating from Vendor (https://github.com/getkirby/kirby).
CVSS VectorVendor: https://github.com/getkirby/kirby
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
5DescriptionCVE.org
TL;DR
This vulnerability affects all Kirby sites that use the list field or list block, when content is authored by users who may not be fully trusted. The attack requires an authenticated Panel user with update permission to any list field or list block.
This vulnerability is of high severity for affected sites.
Kirby sites are *not* affected if they don't use the list field (or blocks field with the list block) in any of their blueprints, or if every user who can edit content is fully trusted. The attack only surfaces in the site frontend (i.e. in the consuming project's templates). The Panel itself is unaffected and will not execute JavaScript that was injected into list field content.
----
Introduction
Cross-site scripting (XSS) is a type of vulnerability that allows to execute any kind of JavaScript code inside the site frontend or Panel session of the same or other users. In the Panel, a harmful script can for example trigger requests to Kirby's API with the permissions of the victim.
In a *stored* XSS attack, the malicious payload is saved into the content data and has the potential to affect other users or site visitors.
Such vulnerabilities are critical if applications might have potential attackers in their group of authenticated Panel users. They can escalate their privileges if they get access to the Panel session of an admin user. Depending on the site, other JavaScript-powered attacks are possible.
A specific class of stored XSS is auto-firing, meaning the malicious injected JavaScript code is executed by the browser when the page loads without the victim having to perform a specific action.
Affected components
Kirby's list field stores its formatted content as HTML code. Unlike with other field types, it is not possible to escape HTML special characters against cross-site scripting (XSS) attacks, otherwise the formatting would be lost.
Impact
In affected releases, Kirby did not securely sanitize the contents of list fields on save. This allowed attackers to inject malicious HTML code into the content file by sending it to Kirby's API directly without using the Panel. This malicious HTML code would then be displayed on the site frontend and executed in the browsers of site visitors and logged in users who are browsing the site.
Patches
The problem has been patched in Kirby 4.9.1 and Kirby 5.4.1. Please update to one of these or a later version to fix the vulnerability.
In all of the mentioned releases, Kirby has added HTML sanitization (like in the writer field) to the backend code that handles updates to the contents of list fields.
Credits
Kirby thanks @offset for responsibly reporting the identified issue.
AnalysisAI
Stored cross-site scripting in Kirby CMS (versions before 4.9.1 and 5.4.1) allows an authenticated Panel user with update permission to a list field or list block to inject unsanitized HTML directly via Kirby's API, which is later rendered and executed in the browsers of frontend visitors and logged-in users. Because the list field intentionally stores formatted HTML and was not sanitized on save, an attacker can plant auto-firing JavaScript that runs when affected pages load. No public exploit identified at time of analysis, and the EPSS score is very low (0.04%), consistent with a privilege-gated, non-KEV issue rather than mass exploitation.
Technical ContextAI
Kirby is a PHP-based flat-file CMS whose Panel authoring interface offers a 'list field' (and a 'list' block within the blocks field) that stores its formatted output as raw HTML rather than escaped markup, since escaping would destroy the intended formatting. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): the backend update path that persists list field content to the content file performed no HTML sanitization, so hostile markup submitted directly to the API survived into stored content and into template rendering. The fix applies the same HTML sanitization already used by Kirby's writer field. Affected packages are identified by CPE pkg:composer/getkirby_cms, i.e. the Composer-distributed getkirby/cms package.
RemediationAI
Vendor-released patch: upgrade to Kirby 4.9.1 (https://github.com/getkirby/kirby/releases/tag/4.9.1) or Kirby 5.4.1 (https://github.com/getkirby/kirby/releases/tag/5.4.1), or any later release, which add writer-field-style HTML sanitization to the list field update handler. Until you can patch, the practical compensating controls are to remove the list field and list block from all blueprints (this disables the vulnerable authoring path but breaks any existing list-based content and editing workflows), and to restrict list-field update permission to fully trusted users only via blueprint/role permissions, since untrusted authenticated editors are the required attacker. Because the payload can be injected directly through Kirby's API rather than the Panel UI, front-end-only filtering is insufficient; where feasible, add output-side HTML sanitization or a strict Content-Security-Policy in your templates to reduce script execution, accepting that CSP tuning may block legitimate inline scripts. See advisory GHSA-5fhx-9q32-q257 for details.
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today
GHSA-5fhx-9q32-q257