Skip to main content
Menu
CVEs

Get Kirby CMS stored XSS via race in chunked upload handling

CVE-2026-134765Published November 22, 2026, updated

8.7HighCNA
Exploited
No known exploitation
Fix
Fixed in 5.6.4
Who is exposed
Specific setups only

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

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

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

“Kirby 5.0.0–5.6.3”

github.com

What to do

  1. Check whether your setup matches what the bug needs.

    Kirby versions 5.0.0 through 5.6.3 (fixed in 5.6.4) A file blueprint accepts SVG files (the default) or XML/SVGZ files
  2. Upgrade to a fixed version: 5.6.4.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

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"}.

Affected versions

cve.now Index

27Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure8/25Specific setups only, reachable over the network
  • Reach10/20Affects Packagist packages
  • Severity8.7/10CVSS 8.7
  • No patch0/5No signal

What would change the score

  • Would score about 77 if added to CISA KEV
  • Would score about 72 if CISA's SSVC rates exploitation active
  • Would score about 34 if CISA's SSVC rates it automatable

Timeline

  1. CVE published
  2. First seen by cve.now

Evidence 7

Questions about CVE-2026-134765

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: cve.now feed data

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: github.com

Which versions are affected by CVE-2026-134765?

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

Source: cve.now feed data

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: github.com

How do I fix CVE-2026-134765?

Upgrade Kirby to 5.6.4, which is the fixed version.

Source: github.com

No corrections so far. Something wrong on this page? Report an error.