Intel

AIKIDO-2026-377213

Scriban is vulnerable to Denial of Service (DoS)

CVE-2026-74784Published Aug 3, 2026
August 3, 2026

87

CVE Score

High

Denial of Service (DoS)

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.

How do I fix this?

Upgrade the Scriban library to the patch version.

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.

Package

Versions

0.1.0 - 7.1.0

Fixed in 7.2.0

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea