Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as user with upload permission
-
DeliveryLaunch concurrent chunked uploads sharing a filename
-
ExploitWin race to swap validated SVG with script-bearing SVG
-
ExecutionMalicious SVG stored despite sanitization
-
ImpactAdmin opens file, stored XSS runs in Panel origin
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | Exploitation requires an authenticated account with file upload or replace permission (files.create or files.replace) in the Kirby Panel or REST API, or plugin code calling Kirby\Api\Api::upload(). A file blueprint must accept SVG (the default) or XML/SVGZ files. The attacker must trigger and win a race condition between two concurrent chunked uploads that share the same filename under different upload ids, so that a script-bearing SVG replaces the already-validated benign SVG before storage. Finally, a victim - ideally a higher-privileged user such as an admin - must open the stored file or view a page that embeds it inline for the JavaScript to execute. Limiting factors: authentication is required (PR:L), the race is timing-dependent and non-deterministic (AC:H/AT:P), passive user interaction is required (UI:P), and it only affects blueprints that accept SVG/XML/SVGZ; it cannot bypass filename/extension rules (no .php/.html) nor grant higher permissions unless a privileged user opens the file. Files uploaded before updating to 5.6.4 are not re-checked. |
| Impact | The vendor CVSS 4.0 vector (CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P, score 8.7) describes a network-reachable but preconditioned flaw: it requires an authenticated account (PR:L - a user with files.create/files.replace permission), a successful race between two concurrent chunked uploads (AC:H plus AT:P reflecting the timing-dependent attack requirement), and passive victim interaction (UI:P - a privileged user must later open or view the malicious SVG). The exploitation signals are not in agreement about urgency: there is no CISA KEV listing and no EPSS score supplied in the input, so widespread or automated exploitation cannot be inferred, yet the vuln.today decision label is 'this_week' and the issue was reported by VulnCheck with a vendor advisory and patch. On balance this is a genuine but second-tier priority - the compounding preconditions (authentication + winning a race + a trusted user opening the file) make mass, opportunistic exploitation unlikely and point toward targeted abuse by a semi-trusted insider rather than an internet-wide campaign, which is consistent with the 'this_week' (not act_now/emergency) decision. Missing data to note explicitly: no EPSS probability was provided, KEV status is absent (treated as not listed), and no confirmed working exploit code is referenced. |
| Exploit ScenarioDerived | An authenticated user holding only upload/replace permission starts two concurrent chunked uploads that share the same target filename, racing to have a benign SVG pass Kirby's sanitization check and then clobber it with a script-bearing SVG before the validated file is stored (a TOCTOU window in processChunk()). When a higher-privileged user such as an admin later opens that file or views a page that embeds it inline, the stored JavaScript executes in the site origin under the admin's Panel session. No confirmed public exploit is referenced in the input; reliably winning the upload race is the practical barrier. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
Stored cross-site scripting in Kirby CMS 5.0.0 through 5.6.3 lets authenticated users with file upload permissions race two concurrent chunked uploads that share a filename, swapping a benign SVG for a script-bearing SVG that bypasses upload sanitization. The vendor rates this 8.7 (CVSS 4.0) with high confidentiality and integrity impact, but exploitation requires a valid upload/replace account, a blueprint that accepts SVG or XML/SVGZ, winning a timing-dependent race, and a victim opening the stored file or an inline-embedding page. No public exploit code was identified at time of analysis.
RemediationAI
Upgrade to Kirby 5.6.4, which keeps each chunked upload's temporary file unique until it is stored; the fix commit is https://github.com/getkirby/kirby/commit/1d40fb5eda3727dd4b03fd3359f4a565452bec66 and the release is https://github.com/getkirby/kirby/releases/tag/5.6.4. If immediate upgrading is not possible, limit upload and replace permissions to fully trusted users and exclude SVG files in the accept option of all file blueprints, including files/default, as described in the advisory; note that files uploaded before the update are not re-checked.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The issue is a time-of-check-to-time-of-use race condition (CWE-367) in Kirby\Api\Upload::processChunk(), the handler for chunked uploads. On completion, the assembled upload was moved from a shared temporary path built from the submitted filename. Two concurrent chunked uploads using different upload ids but the same filename could therefore converge on that same temporary path, allowing the second upload to overwrite bytes that the first upload had already validated before storage. The fix adds a uniqid() component to the temporary filename so completed uploads cannot share a path, and the related advisory also classifies the resulting stored-script outcome as CWE-79. Successful exploitation bypasses SVG sanitization and stores script-bearing SVG/XML content, which can execute JavaScript in the site origin when a victim opens the file or views a page that embeds it inline. This cannot bypass filename or extension rules, so .php or .html uploads are not possible through this flaw.
Know when Kirby gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Authenticated uploader (PR:L), timing-dependent race (AC:H), victim must open the file (UI:R), and XSS executing in the site origin under another user's session crosses a privilege boundary (S:C) with high C/I and no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Technical POC Analysis
CWE-367 (time-of-check time-of-use race condition) leading to CWE-79 stored XSS.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Kirby CMS versions 5.0.0 through 5.6.3 contain a high-severity stored cross-site scripting vulnerability (CVE-2026-134765) that allows authenticated users with file upload permissions to bypass SVG sanitization via a race condition, enabling script execution in victims' browsers. This affects content editors and administrators who upload files, potentially compromising session integrity and data confidentiality. Leadership should prioritize patching given the elevated CVSS score of 8.7, though no public exploit code has been identified.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
An arbitrary file upload vulnerability in the Profile Image module of Kirby CMS v4.1.0 allows attackers to execute arbit
An HTML injection vulnerability exists in the Edit Content Layout module of Kirby CMS v4.1.0. Rated high severity (CVSS
Kirby is an open-source content management system. Rated medium severity (CVSS 6.3), this vulnerability is remotely expl
A stored cross-site scripting (XSS) vulnerability in the Edit Content Layout module of Kirby CMS v4.1.0 allows attackers
panel/login in Kirby v2.5.12 allows Host header injection via the "forget password" feature. Rated medium severity (CVSS
Kirby is a content management system. Rated critical severity (CVSS 10.0), this vulnerability is remotely exploitable, n
Kirby is an open source CMS. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack co
panel/login in Kirby v2.5.12 allows XSS via a blog name. Rated medium severity (CVSS 5.4), this vulnerability is remotel
Kirby is a CMS. Rated critical severity (CVSS 9.1), this vulnerability is remotely exploitable, low attack complexity. T
Kirby is a content management system. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, low at
Kirby v2.5.12 allows XSS by using the "site files" Add option to upload an SVG file. Rated medium severity (CVSS 4.8), t
Kirby CMS v4.1.0 was discovered to contain a reflected self-XSS vulnerability via the URL parameter. Rated medium severi
EUVD-2026-132808
GHSA-c4ph-8hv2-w854
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB