CVE-2026-54002
Kirby: Cross-site scripting (XSS) from incomplete HTML/XML sanitization in `Dom::sanitize()`
Also known as GHSA-wr9h-4r83-f4v6
Mitigation
- Upgrade getkirby/cms to one of 4.9.4, 5.4.4 (or later in the same release line).
Who should check
- Projects that depend on Packagist package getkirby/cms (< 4.9.4)
- Anyone running getkirby kirby < 4.9.4; >= 5.0.0, < 5.4.4
Vulnerability facts
- Affected
- getkirby/cms < 4.9.4
- Fixed in
- 4.9.4, 5.4.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 8.5 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: Low
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.55% chance of exploitation in 30 days (percentile 39, 2026-11-26)
- CWE
- CWE-79, CWE-87
- Modified
Description
Kirby is an open-source content management system. Prior to 4.9.4 and 5.4.4, Kirby sites and plugins that use the writer or list fields or call Dom::sanitize(), Sane::sanitize(), Sane::Html::sanitize(), Sane::Svg::sanitize(), Sane::Xml::sanitize(), Sane::sanitizeFile(), or file sanitizeContents() with untrusted input allow malicious markup injected as children of an unknown HTML or XML tag to pass through Dom::sanitize() without being correctly sanitized, causing stored cross-site scripting. This issue is fixed in versions 4.9.4 and 5.4.4.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist getkirby/cms | < 4.9.4 | 4.9.4, 5.4.4 | osv |
| getkirby kirby | < 4.9.4; >= 5.0.0, < 5.4.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-54002. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-54002.md Affected: getkirby/cms < 4.9.4 Fixed in: 4.9.4, 5.4.4 Steps: 1. Search this machine and project for getkirby/cms (Packagist), getkirby kirby: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://github.com/getkirby/kirby/commit/0f0437b5128c910103cbc78fc34d94b2a3faef4c
- https://github.com/getkirby/kirby/commit/7ad76cf9c7387462828e6ebfc8404e31b37829e9
- https://github.com/getkirby/kirby/commit/9ec1873864441dbc06479ef7823da348ec7f2700
- https://github.com/getkirby/kirby/commit/bb2562e16c754493a403b8df84c9883108871e4c
FAQ
Is CVE-2026-54002 being exploited?
There is no confirmed exploitation: CVE-2026-54002 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.55% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-54002?
High: CVSS 8.5 (v4.0, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-54002?
getkirby/cms < 4.9.4.
Is there a fix for CVE-2026-54002?
Yes. Fixed in 4.9.4, 5.4.4. Upgrade getkirby/cms to one of 4.9.4, 5.4.4 (or later in the same release line).
How do I check if I'm affected by CVE-2026-54002?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.