PatchSiren cyber security CVE debrief
CVE-2026-74791 scriban CVE debrief
Scriban before 7.0.0 fails to clear the CachedTemplates dictionary when TemplateContext.Reset() is called, allowing cached templates to persist across reused contexts. This vulnerability enables attackers to access previously authorized template content from earlier renders without triggering TemplateLoader.Load() again. The issue affects Scriban versions before 7.0.0 and can be mitigated by upgrading to version 7.0.0 or later. Defenders should verify template loading and caching mechanisms, review compensating controls, and monitor for potential exploitation attempts. Evidence is based on official CVE and NVD records, as well as vendor advisories. The CVE record was published on 2026-08-16T14:16:57.183Z and has not been modified since then.
- Vendor
- scriban
- Product
- Unknown
- CVSS
- CRITICAL 9.2
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-08-16
- Original CVE updated
- 2026-08-31
- Advisory published
- 2026-08-16
- Advisory updated
- 2026-08-31
Who should care
Developers and administrators using Scriban versions before 7.0.0 should be aware of this vulnerability and take steps to mitigate the risk. This includes upgrading to version 7.0.0 or later, reviewing template loading and caching mechanisms, and implementing additional monitoring and logging to detect potential exploitation attempts. Security teams and vulnerability management teams should also be aware of this vulnerability and prioritize remediation efforts.
Technical summary
The Scriban library before version 7.0.0 fails to clear the CachedTemplates dictionary when TemplateContext.Reset() is called. This allows attackers to access previously authorized template content from earlier renders without triggering TemplateLoader.Load() again, potentially leading to unauthorized information disclosure. The vulnerability can be mitigated by upgrading to Scriban version 7.0.0 or later and reviewing template loading and caching mechanisms.
Defensive priority
Organizations using Scriban versions before 7.0.0 should prioritize upgrading to mitigate the risk of accessing previously authorized template content without proper re-authorization.
Recommended defensive actions
- Upgrade to Scriban version 7.0.0 or later to ensure proper clearing of the CachedTemplates dictionary.
- Review and update template loading and caching mechanisms to prevent unauthorized access to sensitive template content.
- Implement additional monitoring and logging to detect potential exploitation attempts.
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
- Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance.
- Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed.
- Check relevant monitoring, detection, and logs for exposed assets that need extra review.
Evidence notes
The CVE-2026-74791 issue arises from Scriban's failure to clear the CachedTemplates dictionary when TemplateContext.Reset() is called, allowing attackers to access previously authorized template content. Evidence is based on official CVE and NVD records, as well as vendor advisories. The vulnerability affects Scriban versions before 7.0.0 and can be mitigated by upgrading to version 7.0.0 or later. Defenders should verify template loading and caching mechanisms, review compensating controls, and monitor for potential exploitation attempts.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-74791 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-74791
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-74791 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-74791
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/scriban/scriban/security/advisories/GHSA-x6m9-38vm-2xhf
-
Source reference
Unverified legacy reference
URL: https://www.vulncheck.com/advisories/scriban-before-authorization-bypass-via-stale-include-cache
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.