Skip to main content
VulnerabilityPublished Updated

Scriban: array.insert_at index parameter DoS bypasses LoopLimit and LimitToString

Affects scribanSource GCVE Database

0

CVSS 8.7 High : upgrade to 7.2.0 soon.

Data as of 29 Jun 2026, 22:27 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 7.2.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

What to do

Upgrade scriban and Scriban.Signed to 7.2.0.

Affected software

ProductAffectedFixed in
NuGetscribanAffected
  • <7.2.0
Fixed in
  • 7.2.0
NuGetScriban.SignedAffected
  • <7.2.0
Fixed in
  • 7.2.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

The recommended fix pattern is to add a context-aware overload of InsertAt that enforces LoopLimit and other safety controls before performing allocations, and to mark the unsafe overload as ignored for script usage. If you cannot patch yet, avoid processing untrusted templates that use array.insert_at with large index values to prevent potential denial-of-service. Monitor vendor communications for an official fix release.

Description

A denial-of-service (DoS) vulnerability exists in Scriban's array.insert_at template function due to an unbounded loop that allocates null entries without respecting configured loop or recursion limits. This can cause an OutOfMemoryException that terminates the host process. The issue affects Scriban versions prior to 7.2.0 and is exploitable by template authors specifying very large index values in array.insert_at calls.

References

Community reviews

Loading reviews…