# CVE-2024-27087: Kirby cross-site scripting (XSS) in the link field "Custom" type

- Severity: Medium 4.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2024-02-26T16:44:31.105Z
- Modified: 2026-09-10T03:50:09.744Z
- Also known as: GHSA-63h4-w25c-3qv4
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Kirby is a content management system. The new link field introduced in Kirby 4 allows several different link types that each validate the entered link to the relevant URL format. It also includes a "Custom" link type for advanced use cases that don't fit any of the pre-defined link formats.  As the "Custom" link type is meant to be flexible, it also allows the javascript: URL scheme. In some use cases this can be intended, but it can also be misused by attackers to execute arbitrary JavaScript code when a user or visitor clicks on a link that is generated from the contents of the link field. This vulnerability is patched in 4.1.1.

(As written by CVE List.)

## Affected

- getkirby kirby: >= 4.0.0, < 4.1.1; from 4.0.0 before 4.1.1
- getkirby/cms (Packagist): from 4.0.0 before 4.1.1

## Every score

- GitHub_M: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/getkirby/kirby/security/advisories/GHSA-63h4-w25c-3qv4> (vendor-advisory, web)
- <https://github.com/getkirby/kirby/commit/cda3dd9a15228d35e62ff86cfa87a67e7c687437> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-27087> (advisory)
- <https://github.com/getkirby/kirby> (package)
- <https://github.com/getkirby/kirby/releases/tag/4.1.1> (web)

## Sources

- CVE List: [CVE-2024-27087](https://www.cve.org/CVERecord?id=CVE-2024-27087), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-63h4-w25c-3qv4](https://github.com/advisories/GHSA-63h4-w25c-3qv4), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-27087](https://nvd.nist.gov/vuln/detail/CVE-2024-27087), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27087 · Whole record: https://cve.day/CVE-2024-27087.json · Rebuilt by cve.day 2026-11-25T22:58:37.065Z
