Skip to main content

CVE-2026-45368

HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-05-27 https://github.com/getkirby/kirby GHSA-qvjf-922g-pj44
8.4
CVSS 4.0 · Vendor: https://github.com/getkirby/kirby
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Jul 16, 2026

Stored cross-site scripting in Kirby CMS (versions before 4.9.1 and 5.4.1) lets a low-privileged, authenticated Panel user inject dangerous-scheme links (javascript:, vbscript:, data:, livescript:, mocha:, jar:) through the (link:) and (image: link:) KirbyTags, the image block link field, or the blocks HTML importer. When a visitor or admin clicks the injected link on the site frontend, script runs in the site origin — typically the same origin as the Panel — enabling session hijack and escalation to admin. No public exploit is identified at time of analysis and EPSS is very low (0.06%), but exploitation is straightforward on any affected site that accepts content from partially-trusted authors.

Earlier versions of this analysis (1)
v1 May 27, 2026 - 20:29

Stored cross-site scripting in Kirby CMS (versions ≤ 4.9.0 and 5.0.0 through 5.4.0) lets a semi-trusted, authenticated Panel editor smuggle dangerous-scheme URLs (most notably the javascript://x%0A… form) into link targets that are later rendered as <a href> on the public site frontend. When a visitor or signed-in user clicks such a link, the injected script runs in the site's origin-the same origin as the Panel API-allowing session hijacking and privilege escalation toward an admin account. The vendor rates this high severity for affected sites; there is no public exploit identified at time of analysis, and no CVSS, EPSS, or CISA KEV data was provided.

Affected Packages

composer getkirby/cms fix: 4.9.1, 5.4.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/getkirby/kirby) PRIMARY 8.4 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/getkirby/kirby) · only source for this CVE.

CVSS VectorVendor: https://github.com/getkirby/kirby

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Jul 16, 2026 - 22:29 vuln.today
v2 - CVSS changed
CVSS changed
Jul 16, 2026 - 22:22 NVD
8.4 (HIGH)
CVE Published
Jun 22, 2026 - 06:03 cve.org
HIGH

DescriptionCVE.org

TL;DR

This vulnerability affects all Kirby sites that allow the use of the (link: …) KirbyTag, the link: parameter of the (image: …) KirbyTag, the built-in image block with a link or the HTML importer for blocks, when content is authored by users who may not be fully trusted. The attack requires an authenticated Panel user with update permission to any textarea or blocks field, or write access to content files through another vector (e.g. a frontend form or content sync pipeline). Another attack vector is the use of Html::a() or Html::link() with untrusted user input.

This vulnerability is of high severity for affected sites.

Kirby sites are *not* affected if none of the mentioned KirbyTags or block types are used, or if every user who can edit content is fully trusted. The attack only surfaces in the site frontend (i.e. in its templates). The Panel itself is unaffected and will not execute JavaScript that was injected into the textarea or blocks field content.

---

Introduction

Cross-site scripting (XSS) is a type of vulnerability that allows to execute any kind of JavaScript code inside the site frontend or 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.

In a *stored* XSS attack, the malicious payload is saved into the content data and has the potential to affect other users or site visitors.

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

A specific class of stored XSS exploits the javascript: URI scheme in HTML <a href> attributes. When a browser processes a click action on a link with href="javascript:…", it executes the value as JavaScript in the origin of the current page. Because the site usually runs on the same origin as the Panel API, a successful exploit in the site frontend can give the attacker full control of the victim's Panel session.

Affected components

Kirby provides four first-party renderers that produce <a href="…"> output from editor-supplied field values:

  1. The (link: …) KirbyTag
  2. The link: parameter of the (image: …) KirbyTag, when the parameter does not resolve to a known file or 'self'
  3. The link field of the built-in image block
  4. The HTML importer for the blocks field (which accepted the same malicious input as the image block link field)

Impact

In affected releases, the underlying URL methods for these components did not filter out malicious URL values that resolve to script execution. While simple javascript: URLs were already deactivated by treating them as a relative path and prepending a single slash to the URL, the use of URLs of the format javascript://x%0A… bypasses this protection. The vbscript:, data:, livescript:, mocha: and jar: schemes are affected by the same underlying gap.

The vulnerability allows attackers to inject malicious links into content. The malicious links would then be rendered on the site frontend. If a site visitor or logged in user browsing the site would click such a link, the malicious script code would then be executed in the browser.

Patches

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

In all of the mentioned releases, a new Url::hasDangerousScheme() method detects URI schemes that must never appear in a rendered href or src attribute (javascript:, vbscript:, livescript:, mocha:, jar:, data:).

Url::isAbsolute() now returns false for any URL that hasDangerousScheme() identifies as dangerous, so the URL component no longer passes these values through makeAbsolute() unchanged.

Html::link() now replaces the href with an empty string when a dangerous scheme is detected, so the rendered <a> tag links back to the current page rather than executing the injected script.

The HTML importer for blocks strips link targets with a dangerous scheme.

Due to the hardening in these underlying URL methods, the affected KirbyTags and block no longer allow dangerous schemes in link targets.

Credits

Kirby thanks @offset for responsibly reporting the identified issue.

Executive ViewAI

Why It Matters

Kirby CMS versions prior to 4.9.1 and 5.4.1 contain a vulnerability allowing authenticated content editors to inject malicious links that execute in visitor and administrator browsers. No public exploit has been identified at time of analysis, but exploitation is straightforward for users with Panel access, enabling administrative session hijacking and full site control. Organizations with partially-trusted content authors face direct risk of account compromise and unauthorized site modifications.

Recommended Action

Within 24 hours, identify all Kirby CMS instances and determine which are running versions prior to 4.9.1 (for the 4.x branch) or 5.4.1 (for the 5.x branch). Within 7 days, apply the vendor-released patch by upgrading to Kirby CMS 4.9.1 or 5.4.1 as appropriate. Within 30 days, conduct a security audit of the Panel and frontend to identify any injected malicious links, and review Panel access logs for unauthorized login attempts or suspicious activity.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 80% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Affected Products (CPE)CVE.org

pkg:composer/getkirby_cms
pkg:composer/getkirby_cms

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy