/

CVE-2026-55839

Severity:

HIGH RISK

(8.7)

Stored XSS (CWE-79) in Kestra Flow Markdown Parser

CVE-2026-55839

Deferred

Vulnerability type

Category:

Stored Cross-Site Scripting

CWE:

CWE-79

Impact:

Stored client-side code execution and account-context compromise

Severity:

HIGH RISK

(8.7)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Kestra contains a stored cross-site scripting vulnerability in its custom Markdown link parser. A user who can create or update a Flow description may inject JavaScript event-handler attributes that execute when another user opens the description or information panel.

Affected context

The issue occurs in Kestra's web interface when Flow descriptions are processed by the custom Markdown parser supporting the [[link]] syntax. It becomes risky when a user has permission to create or update Flow descriptions and other users later view the affected description or Flow information panel.

Exploit preconditions

  • Attack surface: Kestra's web UI and custom Markdown rendering functionality
  • Required access: Permission to create or update a Flow description
  • Trigger point: A different user opens the affected description or information panel
  • Why exploitation is possible: The custom parser permits attacker-controlled attributes to reach rendered HTML without sufficiently restricting executable event-handler content

Why this happens

The vulnerability results from insufficient output handling in a custom Markdown-to-HTML transformation. User-controlled Flow description content is interpreted as markup, and attacker-controlled event-handler attributes can remain active in the rendered result.

This maps to CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), specifically a stored XSS pattern in which malicious content is persisted and later rendered in another user's browser.

Potential impact

  • An attacker may execute JavaScript in another user's browser context
  • A successful attack could access data exposed to the victim's Kestra session
  • The vulnerability may enable unauthorized actions through the victim's permissions
  • Attackers could alter displayed Flow information or conduct phishing within the application
  • The issue could contribute to broader account or workflow compromise depending on user privileges

General mitigation guidance

Mitigation generally focuses on treating Flow descriptions as untrusted content throughout parsing, storage, and rendering.

Common defensive patterns include:

  • Restricting custom Markdown syntax to a narrowly defined allowlist
  • Removing event-handler attributes and other executable markup before rendering
  • Applying context-aware output encoding and HTML sanitization
  • Rendering user-authored descriptions in a constrained context where possible
  • Separating content-editing permissions from sensitive workflow administration privileges
  • Using secure browser policies, such as an appropriate Content Security Policy, as a defense-in-depth control
  • Preserving untrusted-data boundaries even for users who are authenticated or otherwise authorized to edit descriptions

How teams detect issues like this

Organizations can detect similar issues through:

  • Static analysis rules for unsafe HTML construction, string-based markup transformation, and unsanitized template output
  • Code review checks for custom Markdown extensions that copy user-controlled attributes into HTML
  • Tests covering stored content containing markup, attributes, and browser-executable contexts
  • Dynamic application testing that verifies persisted descriptions are rendered without executable content
  • Policy enforcement requiring approved sanitization libraries and explicit HTML allowlists
  • Monitoring for unusual Flow-description changes and unexpected script-like markup in stored content

Automated security review tools may help identify dangerous rendering paths, but parser-specific behavior still benefits from targeted tests and manual review.

Sources

SourceLink
github.comgithub.com/kestra-io/kestra/commit/6c8e6d099ed172cbb6b003b7fb30b7bb1f8f710e
github.comgithub.com/kestra-io/kestra/pull/16835
github.comgithub.com/kestra-io/kestra/releases/tag/v1.3.24
github.comgithub.com/kestra-io/kestra/security/advisories/GHSA-34pm-923j-7wf8

Frequently asked

questions

Exploitation generally requires a Kestra account or integration identity with permission to create or update Flow descriptions. The impact depends on which users later view the stored content and what privileges those users possess.

No. The primary issue is client-side JavaScript execution in a viewer's browser. However, browser-side access to authenticated application functions may make the resulting impact significant.

Treat descriptions as untrusted input, allow only explicitly approved Markdown and HTML constructs, remove executable attributes, and apply context-aware output encoding before rendering.

Use security-focused parser tests, enforce sanitization policies for every rendering path, review custom markup extensions carefully, and apply least privilege to both content editors and workflow administrators.

Find out what's already
exploitable in your codebase.