CVE-2022-36037: Cross-site scripting from dynamic options in the multiselect field

Published Aug 29, 2022
·
Updated

Introduction

Cross-site scripting (XSS) is a type of vulnerability that allows to execute any kind of JavaScript code inside the Panel session of the same or other users. In the Panel, a harmful script can for example trigger requests to Kirby's API with the permissions of the victim.

Such vulnerabilities are critical if you might have potential attackers in your group of authenticated Panel users. They can escalate their privileges if they get access to the Panel session of an admin user. Depending on your site, other JavaScript-powered attacks are possible.

Impact

The multiselect field allows to select tags from an autocompleted list. Unfortunately, the Panel in Kirby 3.5 used HTML rendering for the raw option value.

This allowed attackers with influence on the options source (e.g. content of sibling pages or an API endpoint) to inject HTML code. If a page in the Panel that uses the manipulated multiselect options was visited by a victim and the victim opened the autocomplete dropdown, the victim's browser will then have rendered this malicious HTML code.

You are not affected by this vulnerability if you don't use the multiselect field or only use it with options that cannot be manipulated by attackers.

Patches

The problem has been patched in Kirby 3.5.8.1. Please update to this or a later version to fix the vulnerability.

Workarounds

We recommend to update to the patch release. If you cannot update immediately, you can work around the issue by disabling the multiselect field. This can be done by uncommenting this field from all your blueprints.

Other sources

Cross-site scripting from dynamic options in the multiselect field

— Packagist

kirby is a content management system (CMS) that adapts to many different projects and helps you build your own ideal interface. Cross-site scripting (XSS) is a type of vulnerability that allows execution of any kind of JavaScript code inside the Panel session of the same or other users. In the Panel, a harmful script can for example trigger requests to Kirby's API with the permissions of the victim. If bad actors gain access to your group of authenticated Panel users they can escalate their privileges via the Panel session of an admin user. Depending on your site, other JavaScript-powered attacks are possible. The multiselect field allows selection of tags from an autocompleted list. Unfortunately, the Panel in Kirby 3.5 used HTML rendering for the raw option value. This allowed attackers with influence on the options source to store HTML code. The browser of the victim who visited a page with manipulated multiselect options in the Panel will then have rendered this malicious HTML code when the victim opened the autocomplete dropdown. Users are not affected by this vulnerability if you don't use the multiselect field or don't use it with options that can be manipulated by attackers. The problem has been patched in Kirby 3.5.8.1.

Affected Software

3 affected componentsFixes available
getkirby Kirby<3.5.8.1
composer/getkirby/cms<3.5.8.1
3.5.8.1
composer/getkirby/cms<3.5.8.1
3.5.8.1

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 3.5.8.1
  2. Upgrade

    Upgrade Kirby to a version that resolves this vulnerability.

    Fixed in 3.5.8.1
  3. Configuration

    Disable the multiselect field by uncommenting this field from all blueprints until Kirby is updated.

    Kirby multiselect field multiselect field availability = disabled

Event History

Aug 29, 2022
Advisory Published
via GitHub·05:34 PM
Data Sourced
via GitHub·05:34 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·05:34 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·05:35 PM
Data Sourced
via MITRE·05:35 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-36037?

CVE-2022-36037 has a moderate severity rating due to its potential for cross-site scripting vulnerabilities.

2

How do I fix CVE-2022-36037?

To fix CVE-2022-36037, upgrade to Kirby version 3.5.8.1 or later.

3

What is CVE-2022-36037?

CVE-2022-36037 is a cross-site scripting (XSS) vulnerability found in Kirby CMS that allows execution of JavaScript code.

4

What versions of Kirby are affected by CVE-2022-36037?

All versions of Kirby prior to 3.5.8.1 are affected by CVE-2022-36037.

5

How can CVE-2022-36037 impact my website?

CVE-2022-36037 can allow attackers to execute malicious scripts in the context of a user's session, potentially compromising user data.

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