Scriban is vulnerable to Denial of Service (DoS)
87
CVE Score
High
Denial of Service (DoS)
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.
Upgrade the Scriban library to the patch version.
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.
0.1.0 - 7.1.0
Fixed in 7.2.0Scriban is vulnerable to Denial of Service (DoS) in versions 0.1.0 - 7.1.0.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.