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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:H/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: High; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.48% (percentile 34, 2026-11-26)
- **CWE:** CWE-91
- **Aliases:** GHSA-9wfj-c55w-j9qr
- **Published:** 2026-04-23T21:21:17.000Z
- **Modified:** 2026-10-26T22:10:00.163Z

## Who should check

- Projects that depend on Packagist package getkirby/cms (\< 4.9.0)
- Anyone running getkirby kirby \< 4.9.0; \>= 5.0.0, \< 5.4.0

## Description

Kirby is an open-source content management system. 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, prior to versions 4.9.0 and 5.4.0, 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. The problem has been patched in Kirby 4.9.0 and Kirby 5.4.0. In all of the mentioned releases, Kirby has added additional checks that only allow unchanged \`CDATA\` passthrough if the entire string is made up of valid \`CDATA\` blocks and no structured data. This protects all uses of the method against the described vulnerability.

## Affected and fixed versions

- Packagist `getkirby/cms`: affected \< 4.9.0; fixed 4.9.0, 5.4.0 (osv)
- getkirby kirby: \< 4.9.0; \>= 5.0.0, \< 5.4.0 (cvelist)

## Mitigation

- Upgrade getkirby/cms to one of 4.9.0, 5.4.0 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-32870. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-32870.md
Affected: getkirby/cms < 4.9.0
Fixed in: 4.9.0, 5.4.0

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.
```

## FAQ

### Is CVE-2026-32870 being exploited?

There is no confirmed exploitation: CVE-2026-32870 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.48% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-32870?

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-32870?

getkirby/cms \< 4.9.0.

### Is there a fix for CVE-2026-32870?

Yes. Fixed in 4.9.0, 5.4.0. Upgrade getkirby/cms to one of 4.9.0, 5.4.0 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-32870?

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.

## References

- vendor: <https://github.com/getkirby/kirby/security/advisories/GHSA-9wfj-c55w-j9qr>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-32870>
- other: <https://github.com/getkirby/kirby/releases/tag/4.9.0>
- other: <https://github.com/getkirby/kirby/releases/tag/5.4.0>
- other: <https://github.com/getkirby/kirby>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-32870>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-9wfj-c55w-j9qr> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-32870> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-32870>
