{"id":"CVE-2026-54004","aliases":["CVE-2026-54004","GHSA-89cp-7p28-jffg"],"related":[],"kind":"vulnerability","state":"published","title":"Kirby: Access to files of top-level drafts is not protected by permissions","summary":"Kirby is an open-source content management system. Prior to 4.9.4 and 5.4.4, Kirby sites with content.fileRedirects enabled could redirect unauthenticated clean file URL requests for files stored in top-level draft pages to physical media URLs without checking page access permissions or preview tokens, leading to disclosure of draft file contents. This issue is fixed in versions 4.9.4 and 5.4.4.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Kirby is an open-source content management system. Prior to 4.9.4 and 5.4.4, Kirby sites with content.fileRedirects enabled could redirect unauthenticated clean file URL requests for files stored in top-level draft pages to physical media URLs without checking page access permissions or preview tokens, leading to disclosure of draft file contents. This issue is fixed in versions 4.9.4 and 5.4.4.","source":"cvelist"},{"lang":"en","text":"### TL;DR\n\nThis 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.\n\nIt 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.\n\nSites 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`).\n\n----\n\n### Introduction\n\nMissing authorization allows authenticated users to perform actions they are not intended to have access to.\n\nThe effects of missing authorization can include unauthorized access to sensitive information as well as unauthorized changes to content or system information.\n\n### Affected components\n\nClean 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.\n\nKirby 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.\n\nFiles 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.\n\n### Impact\n\nIn 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.\n\nThe 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.\n\nA successful attack requires knowledge of the full path to the draft page and file, and therefore requires knowing the full clean file URL.\n\n### Patches\n\nThe problem has been patched in [Kirby 4.9.4](https://github.com/getkirby/kirby/releases/tag/4.9.4) and [Kirby 5.4.4](https://github.com/getkirby/kirby/releases/tag/5.4.4). Please update to one of these or a [later version](https://github.com/getkirby/kirby/releases) to fix the vulnerability.\n\nIn 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.\n\n### Credits\n\nThanks to @adamyordan for responsibly reporting the identified issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Kirby es un sistema de gestión de contenido de código abierto. Anteriormente a las versiones 4.9.4 y 5.4.4, los sitios de Kirby con content.fileRedirects habilitado podían redirigir solicitudes de URL de archivos limpios no autenticadas para archivos almacenados en páginas de borrador de nivel superior a URL de medios físicos sin verificar los permisos de acceso a la página o los tokens de vista previa, lo que llevaba a la divulgación del contenido de los archivos de borrador. Este problema se ha corregido en las versiones 4.9.4 y 5.4.4.","source":"nvd"}],"published":"2026-06-18T15:05:05.000Z","modified":"2026-10-25T17:10:00.197Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-862"],"affected":[{"ranges":[{"version":"< 4.9.4","status":"affected"},{"version":">= 5.0.0, < 5.4.4","status":"affected"}],"vendor":"getkirby","product":"kirby","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.9.4"}],"ecosystem":"Packagist","package":"getkirby/cms","purl":"pkg:composer/getkirby/cms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0-alpha.1","status":"affected","fixed":"5.4.4"}],"ecosystem":"Packagist","package":"getkirby/cms","purl":"pkg:composer/getkirby/cms","source":"ghsa"}],"references":[{"url":"https://github.com/getkirby/kirby/security/advisories/GHSA-89cp-7p28-jffg","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/getkirby/kirby/commit/5b9a0ed587575e39156d37fa42ca7f6c73e121f7","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/getkirby/kirby/commit/bc721080cd8dd4dcb7fc20b3fd0460ee8d0603b0","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/getkirby/kirby/releases/tag/4.9.4","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/getkirby/kirby/releases/tag/5.4.4","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/getkirby/kirby","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-09T19:47:55.357Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54004","url":"https://www.cve.org/CVERecord?id=CVE-2026-54004","licence":"CVE Terms of Use","modified":"2026-07-09T19:48:01.785Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-89cp-7p28-jffg","url":"https://github.com/advisories/GHSA-89cp-7p28-jffg","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:48.946Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54004","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54004","licence":"Public domain","modified":"2026-10-25T17:10:00.197Z"}],"updatedAt":"2026-11-25T22:59:27.540Z","epss":{"score":0.00312,"percentile":0.26016,"date":"2026-12-01T12:00:22.000Z"}}