What’s Vulnerable › Vulnerabilities
CVE-2026-74791: Scriban before 7.0.0 Authorization Bypass via Stale Include Cache
- Severity: high (CVSS 8.6 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-08-16 · updated 2026-08-31
- Weakness: CWE-226
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
- scriban: before 7.0.0 — fixed in 7.0.0
How to fix
Upgrade to a fixed version: scriban 7.0.0. Check the vendor advisory for mitigations.
References
- https://github.com/scriban/scriban/security/advisories/GHSA-x6m9-38vm-2xhf
- https://www.vulncheck.com/advisories/scriban-before-authorization-bypass-via-stale-include-cache
- https://github.com/scriban/scriban/security/advisories/GHSA-x6m9-38vm-2xhf
Get alerted when CVE-2026-74791 or the next vulnerability affects your stack