Skip to main content

Kirby CMS EUVDEUVD-2026-42668

| CVE-2026-54004 MEDIUM
Missing Authorization (CWE-862)
2026-06-18 https://github.com/getkirby/kirby GHSA-89cp-7p28-jffg
6.3
CVSS 4.0 · Vendor: https://github.com/getkirby/kirby
Share

Severity by source

Vendor (https://github.com/getkirby/kirby) PRIMARY
6.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
5.3 MEDIUM

Network-accessible, no authentication required (PR:N), but impact limited to confidentiality of files in specifically configured top-level draft pages (C:L).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/getkirby/kirby).

CVSS VectorVendor: https://github.com/getkirby/kirby

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

3
CVSS changed
Jul 09, 2026 - 19:22 NVD
6.3 (MEDIUM)
Source Code Evidence Fetched
Jun 18, 2026 - 16:02 vuln.today
Analysis Generated
Jun 18, 2026 - 16:02 vuln.today

DescriptionCVE.org

TL;DR

This vulnerability affects Kirby 5 sites that have the content.fileRedirects option enabled (set to true or a custom closure) as well as all Kirby 4 sites that haven't explicitly disabled this option.

It was possible to access clean file URLs of top-level drafts (e.g. /about-us/team.jpg) without providing authentication, without being authorized to access the top-level draft page, and without providing a valid preview token.

Sites on Kirby 5 using the default configuration are *not* affected by this vulnerability (the content.fileRedirects option is disabled by default since Kirby 5.0.0). It was also *not* possible to maliciously access clean file URLs for files stored in page drafts that are not on the top-level (such as /blog/article/resource.pdf).

----

Introduction

Missing authorization allows authenticated users to perform actions they are not intended to have access to.

The effects of missing authorization can include unauthorized access to sensitive information as well as unauthorized changes to content or system information.

Affected components

Clean file redirects allow visitors to access files stored in the content folder via natural URLs such as /about-us/team.jpg or /blog/article/resource.pdf. Kirby detects such requests and redirects them to the actual physical file URLs in the media folder.

Kirby 4.8.0 introduced the content.fileRedirects option that allowed disabling this behavior to protect against third-party access to original source files. Kirby 5.0.0 then made the secure behavior (disabled option) the default. It is also possible to set the option to a closure to dynamically control access for each individual file.

Files can be stored in pages. Pages can exist as drafts. In this draft state, the page preview is only accessible to users who are authenticated and authorized by the pages.access permission or to visitors who have received the direct preview URL with a valid preview token.

Impact

In affected releases, the clean file redirects didn't take access logic for drafts into account. When a file stored in a draft page was accessed via its clean file URL, Kirby immediately redirected to the physical media URL without first checking whether the draft page was accessible to the user or visitor. This only affected top-level drafts (direct children of the site) because clean file URLs currently don't work for drafts that are nested under another page.

The unauthorized clean file URL redirects for files in top-level drafts can lead to disclosure of sensitive information or data, e.g., ahead of the launch of a new product or post.

A successful attack requires knowledge of the full path to the draft page and file, and therefore requires knowing the full clean file URL.

Patches

The problem has been patched in Kirby 4.9.4 and Kirby 5.4.4. Please update to one of these or a later version to fix the vulnerability.

In all of the mentioned releases, we added an authorization check to the route that redirects clean file URLs of drafts. This route now performs the same checks as the draft preview route, i.e., it only performs the redirect if a user is logged in and has the pages.access permission on the draft, or if a valid preview token was provided in the request URL.

Credits

Thanks to @adamyordan for responsibly reporting the identified issue.

AnalysisAI

Unauthorized file disclosure in Kirby CMS allows unauthenticated remote visitors to access files stored in top-level draft pages by requesting their clean file URL (e.g., /about-us/team.jpg) without authentication, draft-page authorization, or a valid preview token. The clean file redirect mechanism failed to enforce draft access controls before issuing the HTTP redirect to the physical media URL, affecting all Kirby 4 installations where content.fileRedirects has not been explicitly disabled and Kirby 5 installations where the option has been manually enabled. No public exploit or CISA KEV listing has been identified at time of analysis; patches are available in Kirby 4.9.4 and Kirby 5.4.4.

Technical ContextAI

Kirby CMS (composer package getkirby/cms) implements a clean file redirect feature that intercepts requests to natural file URLs and redirects visitors to the actual physical file path in the media folder. Kirby 4.8.0 introduced the content.fileRedirects option to control this behavior, and Kirby 5.0.0 changed the default to disabled for security. The root cause is CWE-862 (Missing Authorization): the route handling clean file URL redirects for draft pages did not invoke the same access checks applied by the draft preview route - specifically, it did not verify that the requesting user holds the pages.access permission or that a valid preview token was supplied in the request. This bypass is constrained to top-level drafts (direct children of the site root) because the redirect routing logic only resolves clean URLs for that level of the content hierarchy. The affected packages are pkg:composer/getkirby/cms versions up to and including 4.9.3, and versions from 5.0.0-alpha.1 through 5.4.3.

RemediationAI

The primary remediation is to upgrade to Kirby 4.9.4 or Kirby 5.4.4 (or any later release), both of which add an authorization check to the clean file redirect route that mirrors the existing draft preview route logic. The fix requires either a valid pages.access permission for the authenticated user or a valid preview token in the request URL before the redirect is issued. For teams unable to upgrade immediately, the most effective compensating control on Kirby 4 is to explicitly set content.fileRedirects to false in site/config/config.php, which disables the redirect feature entirely; the trade-off is that visitors will no longer be able to access any content files via clean URLs and will need the physical media path instead. On Kirby 5, no action is needed if the default configuration is in use. Kirby 5 sites that have manually enabled content.fileRedirects should either disable it or upgrade immediately. The vendor advisory is at https://github.com/getkirby/kirby/security/advisories/GHSA-89cp-7p28-jffg.

Share

EUVD-2026-42668 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy