CVE-2026-74791
9.2
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
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
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| scriban | scriban | 0 < 7.0.0 | affected |
| scriban | scriban | 7.0.0 | unaffected |
Weaknesses
- CWE-226: Sensitive Information in Resource Not Removed Before Reuse
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
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.