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

- Severity: Critical 9.2 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-24T22:09:49.000Z
- Modified: 2026-08-31T20:30:14.457Z
- Also known as: GHSA-x6m9-38vm-2xhf
- Weaknesses: CWE-226
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- scriban scriban: before 7.0.0 (not affected: 7.0.0)
- scriban (NuGet): before 7.0.0
- Scriban.Signed (NuGet): before 7.0.0

## Every score

- VulnCheck: CVSS:4.0 9.2 Critical `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`
- VulnCheck: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`

## References

- <https://github.com/scriban/scriban/security/advisories/GHSA-x6m9-38vm-2xhf> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/scriban-before-authorization-bypass-via-stale-include-cache> (third-party-advisory)
- <https://github.com/scriban/scriban> (package)

## Sources

- CVE List: [CVE-2026-74791](https://www.cve.org/CVERecord?id=CVE-2026-74791), CVE Terms of Use, modified 2026-08-17
- GitHub Advisory Database: [GHSA-x6m9-38vm-2xhf](https://github.com/advisories/GHSA-x6m9-38vm-2xhf), CC-BY-4.0, modified 2026-08-17
- NVD: [CVE-2026-74791](https://nvd.nist.gov/vuln/detail/CVE-2026-74791), Public domain, modified 2026-08-31

---

Page: https://cve.day/CVE-2026-74791 · Whole record: https://cve.day/CVE-2026-74791.json · Rebuilt by cve.day 2026-11-25T22:59:33.308Z
