Scriban is vulnerable to Denial of Service (DoS)
87
High Risk
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.
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.
Scriban is vulnerable to Denial of Service (DoS) in versions 0.1.0 - 7.1.0.
Upgrade the Scriban library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant