Memory Allocation with Excessive Size Value Affecting scriban package, versions [,7.5.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.42% (37th 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 Learn

Learn about Memory Allocation with Excessive Size Value vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DOTNET-SCRIBAN-22566225
  • published16 Nov 2026
  • disclosed8 Nov 2026
  • creditUnknown

Introduced: 8 Nov 2026

NewCVE-2026-124437  (opens in a new tab)
CWE-400  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade Scriban to version 7.5.3 or higher.

Overview

Scriban is a

Scriban is a fast, powerful, safe and lightweight scripting language and engine for .NET, which was primarily developed for text templating with a compatibility mode for parsing liquid templates.

Today, not only Scriban can be used in text templating scenarios, but also can be integrated as a general scripting engine: For example, Scriban is at the core of the scripting engine for kalk, a command line calculator application for developers.

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via string-producing builtins in MathFunctions, ObjectFunctions, RegexFunctions, StringFunctions, and DateTimeFunctions. An attacker can submit a small template with extreme format precision or expanding replacement or escape input, causing these functions to allocate strings far beyond TemplateContext.LimitToString and exhaust host memory, potentially killing or degrading services that share the process.

Notes

  • The entry point is attacker-supplied template text: the default TemplateContext (LimitToString = 1,048,576 UTF-16 characters) is sufficient; no host-exposed objects or non-default configuration are required.

CVSS Base Scores

version 4.0
version 3.1