CVE-2026-69127: Kirby: System path exposure from error messages in the REST API

Published Aug 7, 2026
·
Updated

TL;DR

This vulnerability affects all Kirby sites that have not disabled the REST API with the 'api' => false option.

It was possible to trigger a PHP error in the API backend that would expose the full filesystem path of the Kirby installation on the server. This could be used to guess the default content.salt or prepare specialized attacks.

----

Introduction

An information exposure occurs when system data or debugging information leaves the program through an output stream or logging function that makes it accessible to unauthorized parties. Using other weaknesses, an attacker could cause errors to occur; the response to these errors can reveal detailed system information, along with other impacts. An attacker can use messages that reveal technologies, operating systems, and product versions to tune the attack against known vulnerabilities in these technologies. A product may use diagnostic methods that provide significant implementation details such as stack traces as part of its error handling mechanism.

Affected components

Kirby's REST API at /api returns JSON data for each request. If an error occurs during processing of the request, a special error handler converts this error to JSON data that API frontends can handle.

The returned data for errors depends on the debugging mode. If the debug option is enabled, the JSON data contains fields for the path and line of the affected file, the internal exception class and the API route that caused the error. This data is omitted from error responses in production (when the debug option is disabled).

Impact

Some internal errors may contain sensitive information in the error message itself. This is often the case with PHP errors.

In affected releases, the REST API error handler did not sanitize error messages for sensitive information.

This exposed system information like the full source path to external API users, including users without authentication. This could be used to guess the default content.salt or prepare specialized attacks.

Patches

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

In all of the mentioned releases, Kirby has hardened the API error handler to only expose full error messages for exceptions in the Kirby\Exception namespace. All other errors are only exposed in debug mode (with disguised paths, keeping only the paths relative to the Kirby installation). Outside of debug mode, general exceptions and PHP errors are replaced with a generic error message.

Credits

Thanks to Peter Levashov (@petersevera) for responsibly reporting the identified issue.

Other sources

Kirby is an open-source content management system. Prior to 4.9.5 and from 5.0.0 through 5.5.1, the REST API error handler can return unsanitized PHP error messages that expose the full filesystem path of the Kirby installation to unauthenticated API users. This vulnerability affects all Kirby sites that have not disabled the REST API with the 'api' => false option. This issue is fixed in versions 4.9.5 and 5.5.2.

— MITRE

Affected Software

3 affected componentsFixes available
Kirby Kirby<4.9.5, >=5.0.0<=5.5.1
composer/getkirby/cms>=5.0.0<5.5.2
5.5.2
composer/getkirby/cms<=4.9.4
4.9.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/getkirby/cms to a version that resolves this vulnerability.

    Fixed in 5.5.2
  2. Upgrade

    Upgrade composer/getkirby/cms to a version that resolves this vulnerability.

    Fixed in 4.9.5
  3. Upgrade

    Upgrade Kirby to a version that resolves this vulnerability.

    Fixed in 4.9.5
  4. Upgrade

    Upgrade Kirby to a version that resolves this vulnerability.

    Fixed in 5.5.2
  5. Configuration

    Disable Kirby's REST API by setting `'api' => false` (this vulnerability affects sites that have not disabled the REST API).

    Kirby REST API api = false

Event History

Aug 7, 2026
CVE Published
via MITRE·06:33 PM
Data Sourced
via MITRE·06:33 PM
DescriptionWeakness
Data Sourced
via NVD·07:18 PM
DescriptionSeverityWeakness
Sep 1, 2026
Advisory Published
via GitHub·04:37 PM
Data Sourced
via GitHub·04:37 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-69127?

CVE-2026-69127 has a risk score of 16, indicating a medium severity vulnerability.

2

How do I fix CVE-2026-69127?

To fix CVE-2026-69127, upgrade to Kirby version 4.9.5 or any version from 5.5.2 onwards.

3

What types of systems are affected by CVE-2026-69127?

CVE-2026-69127 affects all Kubernetes sites that use versions prior to 4.9.5 and from 5.0.0 to 5.5.1.

4

What kind of information is exposed in CVE-2026-69127?

CVE-2026-69127 exposes the full filesystem path of the Kirby installation through unsanitized error messages in the REST API.

5

Is user authentication a factor in CVE-2026-69127?

CVE-2026-69127 can be exploited by unauthenticated API users, making it critical to address.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203