What is CVE-2026-74791?
CVE-2026-74791 is a vulnerability in Scriban versions before 7.0.0 where `TemplateContext.Reset()` fails to clear the `CachedTemplates` dictionary, allowing cached templates to persist across reused contexts. Attackers can exploit request-dependent `ITemplateLoader` implementations to gain access to previously authorized template content from earlier requests. Upgrading to Scriban version 7.0.0 or later is recommended.
Azərbaycanca: CVE-2026-74791, Scriban-ın 7.0.0-dan əvvəlki versiyalarında `TemplateContext.Reset()` çağırıldıqda `CachedTemplates` lüğətini təmizləməməsi səbəbindən yaranan boşluqdur. Bu, təkrar istifadə olunan kontekstlərdə keşlənmiş şablonların qalmasına səbəb olur və təcavüzkarlara `ITemplateLoader` tətbiqləri vasitəsilə əvvəlki sorğulardan səlahiyyətli şablon məzmununa giriş imkanı yaradır. Təsirə məruz qalan sistemlərdə Scriban-ı ən azı 7.0.0 versiyasına yeniləmək tövsiyə olunur.
Related CVEs
link basis: same weakness class CWE-284
FAQ2
What security issue arises from Scriban's `TemplateContext.Reset()` method not clearing the `CachedTemplates` dictionary?
Tracked as CVE-2026-74791, this vulnerability allows cached templates to persist across reused contexts, enabling attackers to access previously authorized template content from earlier requests via `ITemplateLoader` implementations.
What mitigation is recommended for systems affected by CVE-2026-74791?
It is recommended to upgrade Scriban to version 7.0.0 or later on affected systems.
See also6
This explainer is AI-written from source data — skopnix's own reporting on this CVE; CVSS scores, vendors and versions are never invented. See NVD for the official record.