CVE-2026-55839: Kestra Cross-Site Scripting Vulnerability
HIGHCVE-2026-55839 is a HIGH (CVSS 8.7) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Kestra libraries in the Maven ecosystem. The issue involves kestra vulnerable to stored xss via custom markdown [[link]] attribute injection. Remediation is available by upgrading affected packages to version 1.3.24.
CVE-2026-55839 at a Glance
Security Impact
CVSS: 8.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2026-55839
To remediate this vulnerability, upgrade all affected Kestra dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>io.kestra</groupId>
<artifactId>kestra</artifactId>
<version>1.3.24</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=io.kestra
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-55839, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=io.kestra
Analyze the terminal output to locate any version of Kestra in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.24), your application is affected.
Note: The mvn dependency:tree -Dincludes=io.kestra command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Kestra, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-55839 Affected Kestra Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.kestra:kestra
|
Maven |
< 1.3.24
|
1.3.24
|
References
Frequently Asked Questions
What is CVE-2026-55839?
Which Kestra versions are affected?
What version fixes CVE-2026-55839?
Is kestra affected?
What is the CVSS score of CVE-2026-55839?
What CWE is associated with CVE-2026-55839?
How can I check Maven dependencies for CVE-2026-55839?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-34pm-923j-7wf8",
"modified" : "2026-08-18T16:31:38Z",
"published" : "2026-08-18T16:31:38Z",
"aliases" : [ "CVE-2026-55839" ],
"summary" : "Kestra vulnerable to stored XSS via custom Markdown [[link]] attribute injection",
"details" : "## Summary\n\nKestra’s Markdown renderer supports a custom `[[link ...]]` syntax that is converted into a custom HTML element. The custom Markdown parser allows attacker-controlled attributes to be rendered into the generated element without proper allowlisting or sanitization.\n\nAs a result, a user who can create or edit Markdown-rendered content, such as a Flow description, can inject JavaScript event-handler attributes. When another user views or interacts with the affected Markdown-rendered UI element, the JavaScript executes in that user’s browser.\n\nThis is not a normal raw-HTML Markdown payload such as `<img onerror=...>`. The payload uses Kestra’s custom `[[link]]` Markdown syntax, and the dangerous HTML attributes are introduced by Kestra’s own Markdown plugin.\n\n## Affected version\n\nTested on Kestra `1.3.22`.\n\n## Affected components\n\nSource review identified the issue in the custom Markdown link renderer:\n\n* `ui/src/utils/markdown_plugins/link.ts`\n* `ui/src/utils/markdown.ts`\n* `ui/src/components/layout/Markdown.vue`\n\nThe vulnerable code path renders parsed attributes directly into an HTML string:\n\n```ts\nconst attrs = token.attrs\n ? token.attrs.map(([name, value]) => `${name}=\"${value}\"`).join(\"\")\n : \"\";\n\nreturn `<router-md ${attrs}>`;\n```\n\nThe implementation does not safely restrict attribute names or values before inserting the generated HTML into the DOM.\n\n## Proof of concept\n\nCreate or edit a Flow with the following YAML:\n\n```yaml\nid: markdown_xss_flow_desc\nnamespace: company.team\ndescription: |\n [[link x=\"y\" style=\"position:fixed;inset:0;z-index:9999;background:rgba(255,0,0,0.05)\" onmouseover=\"alert(document.domain)\"]]\n\ntasks:\n - id: hello\n type: io.kestra.plugin.core.log.Log\n message: hello\n```\n\nSave the Flow.\n\nThen navigate to the Flow list:\n\n```text\nhttp://localhost:8080/ui/main/flows\n```\n\nClick the description/info icon next to the malicious Flow.\n\n## Actual result\n\nThe browser executes JavaScript from the Flow description. In the PoC, an alert is triggered showing the current domain.\n\n## Expected result\n\nMarkdown-rendered Flow descriptions should not be able to inject arbitrary JavaScript event handlers or attacker-controlled HTML attributes into the page.\n\nThe custom `[[link]]` syntax should only generate safe attributes required for the intended router-link behavior.\n\n## Security impact\n\nAn attacker with permission to create or update a Flow in a namespace can store a malicious Markdown payload in the Flow description. When another Kestra user views the Flow list and opens the Flow description/info panel, attacker-controlled JavaScript executes in the victim’s browser.\n\nDepending on the victim’s privileges, this may allow the attacker to perform actions as the victim within the Kestra UI, access data visible to the victim, or pivot into more privileged namespace or administrative functionality.\n\nThis crosses a security boundary in multi-user Kestra deployments where Flow authors are less privileged than administrators or other operators who review workflows.\n\n## Suggested remediation\n\nThe custom Markdown link plugin should not render arbitrary attributes into raw HTML.\n\nRecommended fixes:\n\n1. Allowlist only the exact attributes required by the custom router link component.\n2. Reject all attributes beginning with `on`, such as `onclick`, `onmouseover`, and `onfocus`.\n3. Reject or sanitize dangerous attributes such as `style`.\n4. HTML-escape all attribute values before rendering.\n5. Ensure attributes are joined safely with spaces.\n6. Sanitize the final rendered Markdown output before passing it to `v-html`.\n7. Add regression tests for custom `[[link]]` payloads containing event-handler attributes.\n\n## Minimal payload\n\n```md\n[[link x=\"y\" style=\"position:fixed;inset:0;z-index:9999;background:rgba(255,0,0,0.05)\" onmouseover=\"alert(document.domain)\"]]\n```\n\n## Evidence collected\n\n* The payload was stored in a Flow description.\n* The Flow list displayed the malicious Flow.\n* Opening the Flow description/info panel triggered JavaScript execution in the browser.\n* The payload did not require execution of the Flow.\n* The payload used Kestra’s custom `[[link]]` syntax rather than raw HTML.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.kestra:kestra"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.24"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/kestra-io/kestra/security/advisories/GHSA-34pm-923j-7wf8"
}, {
"type" : "WEB",
"url" : "https://github.com/kestra-io/kestra/commit/6c8e6d099ed172cbb6b003b7fb30b7bb1f8f710e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kestra-io/kestra"
}, {
"type" : "WEB",
"url" : "https://github.com/kestra-io/kestra/releases/tag/v1.3.24"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-18T16:31:38Z",
"nvd_published_at" : null
}
}