CVE-2026-74791

Summary

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 previously authorized template content from earlier renders without triggering TemplateLoader.Load() again.

Affected Software

VendorProductVersion RangeStatus
scribanscriban0 < 7.0.0affected
scribanscriban7.0.0unaffected

Weaknesses

  • CWE-226: Sensitive Information in Resource Not Removed Before Reuse

References