CVE-2026-137511 — Scriban
HIGHCVE-2026-137511 is a high-severity (CVSS 7.6) CWE-226 vulnerability in scriban scriban. A fix is available — see the affected versions and patch details below.
Scriban before 7.6.0 contains a state isolation vulnerability because TemplateContext.Reset() does not clear the Tags dictionary holding array.cycle and math.random state. Attackers…
Description
Scriban before 7.6.0 contains a state isolation vulnerability because TemplateContext.Reset() does not clear the Tags dictionary holding array.cycle and math.random state. Attackers supplying templates to a reused context can observe or influence cycle positions and random sequences across renders, and accumulate unbounded cycle entries to exhaust memory.
Affected Products
scribanscribanscribanscribanDetection & mitigation playbook
Vendor / applianceDetect
Inventory every scriban scriban deployment and check each version against the affected-products list above.
Fix
Apply the scriban scriban security patch or hotfix for CVE-2026-137511 on the affected version, following the vendor advisory for your exact build.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves. Alongside that, restrict the management interface to trusted networks and apply the vendor's recommended configuration mitigations.
Frequently Asked Questions
Is CVE-2026-137511 being exploited in your environment?
Detect and block the exploit chain at execution, on systems you cannot patch yet.