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

CVE-2026-32870: Kirby has XML injection in its XML creator toolkit

April 23, 2026 (updated April 27, 2026)

Kirby’s Xml::value() method has special handling for <![CDATA[ ]]> blocks. If the input value is already valid CDATA, it is not escaped a second time but allowed to pass through. However it was possible to trick this check into allowing values that only contained a valid CDATA block but also contained other structured data outside of the CDATA block. This structured data would then also be allowed to pass through, circumventing the value protection.

The Xml::value() method is used in Xml::tag(), Xml::create() and in the Xml data handler (e.g. Data::encode($string, 'xml')).

Both the vulnerable methods and the data handler are not used in the Kirby core. However they may be used in site or plugin code, e.g. to create XML strings from input data. If those generated files are passed to another implementation that assigns specific meaning to the XML schema, manipulation of this system’s behavior is possible.

Kirby sites that don’t use XML generation in site or plugin code are not affected.

References

  • github.com/advisories/GHSA-9wfj-c55w-j9qr
  • github.com/getkirby/kirby
  • github.com/getkirby/kirby/releases/tag/4.9.0
  • github.com/getkirby/kirby/releases/tag/5.4.0
  • github.com/getkirby/kirby/security/advisories/GHSA-9wfj-c55w-j9qr
  • nvd.nist.gov/vuln/detail/CVE-2026-32870

Code Behaviors & Features

Detect and mitigate CVE-2026-32870 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.0, all versions starting from 5.0.0 before 5.4.0

Fixed versions

  • 4.9.0
  • 5.4.0

Solution

Upgrade to versions 4.9.0, 5.4.0 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-91: XML Injection (aka Blind XPath Injection)

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:19:39 +0000.