Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. getkirby/cms
  4. ›
  5. CVE-2026-54002

CVE-2026-54002: Kirby: Cross-site scripting (XSS) from incomplete HTML/XML sanitization in `Dom::sanitize()`

June 18, 2026

In affected releases, Dom::sanitize() did not sanitize nodes that had been unwrapped from their parent node. The affected child nodes would be copied into the resulting sanitized document without being sanitized.

An authenticated Panel user who can edit a writer or list field can store markup that survives sanitization and executes as JavaScript when the content is rendered, both in the Panel and on the site frontend. This allows a lower-privileged editor to run scripts in the context of higher-privileged users (for example admins) who view the content (“stored XSS”). Where a plugin or custom code cleans uploaded SVG/HTML with the Sane API, the same flaw leaves active content in the stored file, which executes when the file is served.

References

  • github.com/advisories/GHSA-wr9h-4r83-f4v6
  • github.com/getkirby/kirby/releases/tag/4.9.4
  • github.com/getkirby/kirby/releases/tag/5.4.4
  • github.com/getkirby/kirby/security/advisories/GHSA-wr9h-4r83-f4v6
  • nvd.nist.gov/vuln/detail/CVE-2026-54002

Code Behaviors & Features

Detect and mitigate CVE-2026-54002 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.9.4, all versions starting from 5.0.0-alpha.1 before 5.4.4

Fixed versions

  • 4.9.4
  • 5.4.4

Solution

Upgrade to versions 4.9.4, 5.4.4 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-87: Improper Neutralization of Alternate XSS Syntax

Source file

packagist/getkirby/cms/CVE-2026-54002.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:58 +0000.