CVE-2026-134765

Kirby 5.0.0 before 5.6.4 XSS via Chunked Upload Race Condition

Published Nov 22, 2026 CVSS 4.0 · 8.7 High EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Kirby 5.0.0 through 5.6.3 contains a race condition in the chunked file upload routine. The flaw allows an authenticated user with upload permission to bypass the SVG sanitization step, enabling the substitution of a benign SVG with a malicious one that contains executable JavaScript. This stored cross‑site scripting can run in the browser context of any visitor to the site, potentially leading to credential theft, defacement, or further lateral movement within the site’s domain. The weakness is a classic race condition (CWE‑367).

Affected Systems

The vulnerable product is Kirby, version 5.0.0 up to 5.6.3 inclusive, used by sites running that content‑management system. All installations of getkirby:kirby falling within this range are affected; later releases, including 5.6.4 and newer, contain the fix.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity, and while an EPSS score is not available, the vulnerability is still considered significant. Attackers must have authenticated upload permissions, so the risk is tied to accounts that can perform uploads. Because the flaw permits stored XSS, the potential impact on site users is wide‑ranging, and the mechanism is straightforward enough that exploitation could occur without advanced tooling.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Kirby to version 5.6.4 or later, which includes the race‑condition fix.
  • If an upgrade cannot be applied immediately, suspend the ability for authenticated users to perform chunked uploads until the patch is installed.
  • Optionally, enforce a file‑name‑lock or verify that an SVG file does not already exist before accepting a new upload to prevent accidental overwrites.

Generated by OpenCVE AI on November 22, 2026 at 22:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title Kirby 5.0.0 before 5.6.4 XSS via Chunked Upload Race Condition
First Time appeared Getkirby
Getkirby kirby
Weaknesses CWE-367
CPEs cpe:2.3:a:getkirby:kirby:*:*:*:*:*:*:*:*
Vendors & Products Getkirby
Getkirby kirby
References
Metrics cvssV3_1

{'score': 7.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N'}

cvssV4_0

{'score': 8.7, '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'}

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 22, 2026, 9:22 PM
Reserved
Nov 22, 2026, 3:32 PM
Status
Deferred
Published
Nov 22, 2026, 10:17 PM
Modified
Nov 22, 2026, 10:17 PM