CVE-2026-134765: Kirby 5.0.0 before 5.6.4 XSS via Chunked Upload Race Condition
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.
Affected Software
Event History
Frequently Asked Questions
Which users can exploit this issue?
An attacker must be authenticated and have permission to upload files. Exploitation also requires the ability to submit concurrent chunked uploads that share a filename.
What conditions are required for successful exploitation?
The attacker must win a race in the chunk-upload processing flow, using a benign SVG and a script-bearing SVG with the same filename. User interaction is required for the stored script to execute in the site origin.
Which deployments are affected?
Kirby versions from 5.0.0 before 5.6.4 are affected. The issue specifically concerns chunked uploads and SVG sanitization.
What is the remediation?
Update Kirby to version 5.6.4 or later. The referenced fix addresses the race condition in Kirby\Api\Upload::processChunk().