Skip to content
OpenAdvisories

Package · NuGet

scriban

15 known vulnerabilities.

15 results · Feed

  • High 7.5

    Scriban before 6.6.0 Denial of Service via Uncontrolled Recursion

    Scriban before 6.6.0 contains an uncontrolled recursion vulnerability in its recursive-descent parser. The parser does not enforce a default expression depth limit (the ExpressionDepthLimit property in ParserOptions defaults to null/disabled), so an attacker …

  • High 7.5

    Scriban before 6.6.0 Denial of Service via Infinite Recursion

    Scriban before 6.6.0 contains an infinite recursion vulnerability in object rendering when the ObjectRecursionLimit property defaults to unlimited. Attackers can supply circular reference objects to the template context, exhausting stack space and triggering …

  • High 8.6

    Scriban before 7.0.0 Authorization Bypass via Stale Include Cache

    Scriban before 7.0.0 fails to clear the CachedTemplates dictionary when TemplateContext.Reset() is called, allowing cached templates to persist across reused contexts. Attackers can exploit request-dependent ITemplateLoader implementations to access previousl…

  • High 7.5

    Scriban before 7.0.0 Stack Overflow via nested array initializers

    Scriban before 7.0.0 (affected versions <= 6.6.0) contains a stack overflow vulnerability in nested array initializer parsing. Deeply nested array initializers recurse through a path (ParseArrayInitializer → ParseExpression → ParseArrayInitializer) that is no…

  • Critical 9.1

    Scriban before 7.0.0 MemberFilter Bypass via TemplateContext Cache

    Scriban before 7.0.0 caches TypedObjectAccessor by Type only without considering MemberFilter changes, allowing reused TemplateContext instances to expose members that should be hidden. Attackers can access filtered properties and fields by reusing a Template…

  • High 7.5

    Scriban before 7.0.0 Denial of Service via string.pad_left/pad_right

    Scriban before 7.0.0 (affected versions <= 6.6.0) contains an uncontrolled memory allocation vulnerability in the string.pad_left and string.pad_right template functions, which perform no validation on the width parameter before delegating to .NET's String.Pa…

  • High 7.5

    Scriban before 7.0.0 LoopLimit Bypass via Built-in Operations

    Scriban before 7.0.0 (affected <= 6.6.0) applies its LoopLimit constraint only to script loop statements and not to expensive iteration performed inside built-in operators and functions. As a result, a single expression such as {{ 1..1000000 | array.size }} —…

  • High 7.5

    Scriban before 7.0.0 Uncontrolled Recursion via object.to_json

    Scriban before 7.0.0 contains an uncontrolled recursion vulnerability in the object.to_json builtin function that lacks depth limits and circular reference detection. Attackers can craft templates with self-referencing objects to trigger unbounded recursion, …

  • Medium 6.5

    Scriban before 7.0.0 Denial of Service via Unbounded Template Output

    Scriban before 7.0.0 (affected versions <= 6.6.0) contains a denial-of-service vulnerability in which the LimitToString safety limit (default 1MB) can be bypassed because ObjectToString resets the per-call length counter (_currentToStringLength) on every top-…

  • Medium 6.5

    Scriban before 7.0.0 Denial of Service via Unbounded Resource Consumption

    Scriban before 7.0.0 contains three distinct denial-of-service vulnerabilities in expression evaluation that bypass existing safety controls through unbounded string multiplication, uncontrolled BigInteger shift operations, and LoopLimit bypass via range enum…

  • High 8.7

    Scriban before 7.2.0 Denial of Service via array.insert_at

    Scriban before 7.2.0 contains a denial of service vulnerability in the array.insert_at function that allocates unbounded null entries without respecting LoopLimit or LimitToString constraints. Attackers can supply a large index parameter to trigger OutOfMemor…

  • High 7.5

    Scriban 6.6.0 through 7.2.0 Parser Recursion Denial of Service

    Scriban versions 6.6.0 through 7.2.0 contain a non-enforcing ExpressionDepthLimit guard that fails to stop recursive descent parsing of deeply nested expressions. Attackers can supply templates with deeply nested parentheses, array initializers, object initia…

  • High 7.5

    Scriban 3.0.0 through 7.2.0 Denial of Service via Array Multiplication

    Scriban versions 3.0.0 through 7.2.0 contain a denial of service vulnerability in the array multiplication operator that allocates memory without enforcing LoopLimit or overflow-safe arithmetic checks. Attackers can supply a large integer multiplier in a temp…

  • Critical 9.8

    Scriban before 7.2.2 Arbitrary Property Write via TypedObjectAccessor

    Scriban before 7.2.2 contains an access-modifier bypass vulnerability in TypedObjectAccessor that allows template code to write CLR object properties without setter-visibility checks. Attackers can modify properties with private, internal, or init-only setter…

  • Medium 5.3

    Scriban Affected by Memory Exhaustion (OOM) via Unbounded String Generation (Denial of Service)

    `TemplateContext.LimitToString` defaults to `0` (unlimited). While Scriban implements a default `LoopLimit` of 1000, an attacker can still cause massive memory allocation via exponential string growth. Doubling a string for just 30 iterations generates over 1…