Scriban before 7.0.0 Authorization Bypass via Stale Include Cache
scriban
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| scriban NuGet |
|
|
| Scriban.Signed NuGet |
|
|
Original description
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.