# CVE-2022-36037: Cross-site scripting (XSS) from dynamic options in the multiselect field in Kirby

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.01% (percentile 62, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-3f89-869f-5w76
- **Published:** 2022-08-29T17:34:36.000Z
- **Modified:** 2026-06-17T04:52:47.443Z

## Who should check

- Projects that depend on Packagist package getkirby/cms (\< 3.5.8.1)
- Anyone running getkirby kirby \< 3.5.8.1

## Description

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 and fixed versions

- Packagist `getkirby/cms`: affected \< 3.5.8.1; fixed 3.5.8.1 (osv)
- getkirby kirby: \< 3.5.8.1 (cvelist)

## Mitigation

- Upgrade getkirby/cms to 3.5.8.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-36037. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-36037.md
Affected: getkirby/cms < 3.5.8.1
Fixed in: 3.5.8.1

Steps:
1. Search this machine and project for getkirby/cms (Packagist), getkirby kirby: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-36037 being exploited?

There is no confirmed exploitation: CVE-2022-36037 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.01% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-36037?

Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2022-36037?

getkirby/cms \< 3.5.8.1.

### Is there a fix for CVE-2022-36037?

Yes. Fixed in 3.5.8.1. Upgrade getkirby/cms to 3.5.8.1 or later.

### How do I check if I'm affected by CVE-2022-36037?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/getkirby/kirby/security/advisories/GHSA-3f89-869f-5w76>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-36037>
- patch: <https://github.com/getkirby/kirby/commit/b5b8863885e17556abc070dde1e20aec15fbfdf5>
- other: <https://github.com/getkirby/kirby/releases/tag/3.5.8.1>
- other: <https://github.com/getkirby/kirby>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-36037>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-3f89-869f-5w76> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-36037> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-36037>
