Intel

AIKIDO-2026-377213

Scriban is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-24c8-4792-22hx Published 4 days ago

87

High Risk

This Affects:

DOTNETScriban
0.1.0 - 7.1.0
Fixed in 7.2.0
Are you affected? Scan for Free

TL;DR

ArrayFunctions.InsertAt, exposed as the template builtin array.insert_at, pads a list up to the caller-supplied index by repeatedly calling Add(null) in a tight loop with no consultation of LoopLimit, LimitToString, or related template safety controls. A crafted template can pass a very large index so the fill allocates until the process throws OutOfMemoryException and terminates, even when those limits are set to small values. The fix adds a context-aware overload that rejects an index above LoopLimit before the fill runs and ignores the unbounded overload for template use.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application renders attacker-controlled or attacker-influenced Scriban templates.

Background info

Scriban is vulnerable to Denial of Service (DoS) in versions 0.1.0 - 7.1.0.

How to fix this

Upgrade the Scriban library to the patch version.