What’s Vulnerable › Vulnerabilities

CVE-2026-74791: Scriban before 7.0.0 Authorization Bypass via Stale Include Cache

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.

Affected products

How to fix

Upgrade to a fixed version: scriban 7.0.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-74791 or the next vulnerability affects your stack