Servers and applications
CVE-2026-54002
Cross-site scripting (XSS) from incomplete HTML/XML sanitization in `Dom::sanitize()`
- Severity
- High 8.5
- Published
- 17 Jun 2026
- Last changed
- 17 Jun 2026
- Added to UpHeron
- 3 Nov 2026
- Fixed in
- 5.4.4
- Exploit chance
- 0.5% in the next 30 daysHigher than 46% of CVEs. EPSS by FIRST, 19 Nov 2026
- Attack
- Over the network · Needs a user account · Needs someone to view a page or file
- Attacker can
- Read data · Change data
- CVSS vector
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- Also known as
- GHSA-wr9h-4r83-f4v6
- Sources
- Project advisories (GitHub)
Description
This vulnerability affects Kirby sites and plugins that use the writer or list fields or that use $dom->sanitize(), Sane::sanitize(), Sane\Html::sanitize(), Sane\Svg::sanitize(), Sane\Xml::sanitize(), Sane::sanitizeFile() or $file->sanitizeContents() with untrusted input.
It was possible to inject malicious markup as children of an unknown HTML/XML tag, which would then be passed through Dom::sanitize() without being correctly sanitized according to the provided sanitization rules, causing a cross-site scripting (XSS) risk.
Cross-site scripting (XSS) is a type of vulnerability that allows executing 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.
Affected software
| Software | Affected versions |
|---|---|
KirbyServers and applications · github:getkirby/kirby |
|
About Kirby
proprietary flat-file content management system
- Monthly downloads (Packagist)
- 52,017Packagist, 15 Nov 2026
- Total downloads (Packagist)
- 731,120Packagist, 15 Nov 2026
- GitHub stars
- 1,539GitHub, 15 Nov 2026
- Forks
- 195GitHub, 15 Nov 2026
- Latest release
- 5.6.3GitHub, 15 Nov 2026
- Released
- 5 Nov 2026GitHub
- Written in
- PHP, Vue.jsWikidata
- First published on GitHub
- 6 Oct 2017GitHub
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 5 | 5.6.3 | Yes |
| 3.10 | 3.10.1.2 | Ended 27 Nov 2025 |
| 4 (A new era) | 4.9.7 | Until 28 Nov 2026 |
| 3.9 (Brookesia) | 3.9.8.3 | Ended 27 Nov 2025 |
| 3.8 (Rhampholeon) | 3.8.4.4 | Ended 16 Jan 2025 |
| 3.7 (Kinyongia) | 3.7.5.5 | Ended 5 Oct 2024 |
From endoflife.date.
Vulnerabilities in Kirby
- In our list
- 82
- Published in the last 12 months
- 50
- Critical, last 12 months
- 1
- High, last 12 months
- 25
- Known exploited
- 0
- GHSA-f8jh-fv44-3h24File template path traversal in FileActions allows page blueprints to override file permissionsLow 2.3 18 Nov 2026
- GHSA-4wg7-c5fw-wm4qFile existence disclosure via the router for PHP's built-in serverLow 2.3 18 Nov 2026
- GHSA-575m-76vr-vwqgCross-site scripting (XSS) via user names in the `users` field previewHigh 7.4 18 Nov 2026
- GHSA-w945-7gg9-jm4vCross-site scripting (XSS) via invalid UTF-8 in URL validationLow 2.0 18 Nov 2026
- GHSA-m5vp-x463-4mh9Cross-site scripting (XSS) via raw text elements in SVG and XML filesHigh 7.4 18 Nov 2026
- GHSA-h4vj-7f3m-24rpBypass of content validation when creating published pagesMedium 5.3 18 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-54002
- GitHub Advisory Database https://github.com/advisories/GHSA-wr9h-4r83-f4v6
- github.com https://github.com/getkirby/kirby/security/advisories/GHSA-wr9h-4r83-f4v6