CVE-2026-78661 Affecting ory-kratos package, versions <26.2.0-r29


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.48% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-ORYKRATOS-21827482
  • published29 Oct 2026
  • disclosed27 Oct 2026

Introduced: 27 Oct 2026

CVE-2026-78661  (opens in a new tab)

How to fix?

Upgrade Chainguard ory-kratos to version 26.2.0-r29 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ory-kratos package and not the ory-kratos package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

When coalescing adjacent text nodes in addText and fosterParent, appending to an existing TextNode's Data via string concatenation (n.Data += text) reallocated and copied the accumulated string on every token. Inputs containing many short text runs separated by ignored end tags (such as "a</x>") caused O(n^2) allocations and byte copies. Accumulate coalesced text in per-node byte slices during parsing and materialize Data strings once at the end of parse.

CVSS Base Scores

version 3.1