CVE-2026-55839: Kestra Cross-Site Scripting Vulnerability

HIGH
Advisory Identifier: GHSA-34pm-923j-7wf8
CVSS 8.7
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-55839
GHSA Identifier GHSA-34pm-923j-7wf8
Severity HIGH
CVSS v3.1 Base Score 8.7
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Kestra
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

io.kestra:kestra fixed: 1.3.24
<dependency>
    <groupId>io.kestra</groupId>
    <artifactId>kestra</artifactId>
    <version>1.3.24</version>
</dependency>
Verify Direct and Transitive Dependencies

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

## Summary Kestra’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. As 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. This 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. ## Affected version Tested on Kestra `1.3.22`. ## Affected components Source review identified the issue in the custom Markdown link renderer: * `ui/src/utils/markdown_plugins/link.ts` * `ui/src/utils/markdown.ts` * `ui/src/components/layout/Markdown.vue` The vulnerable code path renders parsed attributes directly into an HTML string: ```ts const attrs = token.attrs ? token.attrs.map(([name, value]) => `${name}="${value}"`).join("") : ""; return `<router-md ${attrs}>`; ``` The implementation does not safely restrict attribute names or values before inserting the generated HTML into the DOM. ## Proof of concept Create or edit a Flow with the following YAML: ```yaml id: markdown_xss_flow_desc namespace: company.team description: | [[link x="y" style="position:fixed;inset:0;z-index:9999;background:rgba(255,0,0,0.05)" onmouseover="alert(document.domain)"]] tasks: - id: hello type: io.kestra.plugin.core.log.Log message: hello ``` Save the Flow. Then navigate to the Flow list: ```text http://localhost:8080/ui/main/flows ``` Click the description/info icon next to the malicious Flow. ## Actual result The browser executes JavaScript from the Flow description. In the PoC, an alert is triggered showing the current domain. ## Expected result Markdown-rendered Flow descriptions should not be able to inject arbitrary JavaScript event handlers or attacker-controlled HTML attributes into the page. The custom `[[link]]` syntax should only generate safe attributes required for the intended router-link behavior. ## Security impact An 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. Depending 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. This crosses a security boundary in multi-user Kestra deployments where Flow authors are less privileged than administrators or other operators who review workflows. ## Suggested remediation The custom Markdown link plugin should not render arbitrary attributes into raw HTML. Recommended fixes: 1. Allowlist only the exact attributes required by the custom router link component. 2. Reject all attributes beginning with `on`, such as `onclick`, `onmouseover`, and `onfocus`. 3. Reject or sanitize dangerous attributes such as `style`. 4. HTML-escape all attribute values before rendering. 5. Ensure attributes are joined safely with spaces. 6. Sanitize the final rendered Markdown output before passing it to `v-html`. 7. Add regression tests for custom `[[link]]` payloads containing event-handler attributes. ## Minimal payload ```md [[link x="y" style="position:fixed;inset:0;z-index:9999;background:rgba(255,0,0,0.05)" onmouseover="alert(document.domain)"]] ``` ## Evidence collected * The payload was stored in a Flow description. * The Flow list displayed the malicious Flow. * Opening the Flow description/info panel triggered JavaScript execution in the browser. * The payload did not require execution of the Flow. * The payload used Kestra’s custom `[[link]]` syntax rather than raw HTML.

CVE-2026-55839 Affected Kestra Versions

1 component(s)
Fixed Versions:
1.3.24
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?
CVE-2026-55839 is a security vulnerability in Kestra involving Kestra vulnerable to stored XSS via custom Markdown [[link]] attribute injection under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Kestra versions are affected?
Affected versions include releases prior to 1.3.24 across affected packages: io.kestra:kestra.
What version fixes CVE-2026-55839?
Upgrading to 1.3.24 (or the latest patched release for your respective branch) resolves the vulnerability.
Is kestra affected?
Yes, io.kestra:kestra is affected in releases prior to 1.3.24. Upgrade your dependency to 1.3.24 or later.
What is the CVSS score of CVE-2026-55839?
CVE-2026-55839 has a CVSS v3.1 base score of 8.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2026-55839?
CVE-2026-55839 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Maven dependencies for CVE-2026-55839?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.kestra'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}