Race condition in Kirby chunked uploads enables stored XSS via SVG
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Passive
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Kirby from 5.0.0 before 5.6.4 contains a race condition in the chunked upload handling of Kirby\Api\Upload::processChunk() that is a time-of-check time-of-use flaw (CWE-367). An authenticated user with upload permission can race concurrent chunked uploads that share a filename to swap a benign SVG for a script-bearing one after sanitization. The injected script runs as stored cross-site scripting in the site origin.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Update Kirby to version 5.6.4 or later, which fixes the flaw in the 5.x line.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
- Fix · CNA kirby (getkirby) Fixed in 5.6.4
Timeline
- 2026-11-22 Threatist record created from CVE-2026-134765
- 2026-11-23 Alias added: GHSA-c4ph-8hv2-w854
- 2026-11-23 CISA SSVC decision points changed
References
More getkirby vulnerabilities
- TI-2024-17440 An arbitrary file upload vulnerability in the Profile Image module of Kirby CMS v4.1.0… CVSS 3.1HIGH 8.8
- TI-2024-17439 An HTML injection vulnerability exists in the Edit Content Layout module of Kirby CMS… CVSS 3.1HIGH 7.1
- TI-2026-23396 Kirby CMS through 5.1.4 allows an authenticated user with 'Editor' permissions to cause a… CVSS 3.1MEDIUM 6.5
- TI-2024-17441 A stored cross-site scripting (XSS) vulnerability in the Edit Content Layout module of… CVSS 3.1MEDIUM 6.1
- TI-2018-10413 An issue was discovered in Kirby 2.5.12. CVSS 3.1MEDIUM 5.4
- TI-2024-17438 Kirby CMS v4.1.0 was discovered to contain a reflected self-XSS vulnerability via the URL parameter. CVSS 3.1MEDIUM 4.7
Sources
- CVE-2026-134765 · CVE Program
- CVE-2026-134765 · NVD
- FIRST EPSS
- GHSA-c4ph-8hv2-w854 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences