CVE-2026-137511: Scriban before 7.6.0 State Leakage via TemplateContext.Reset() Tags

Published Nov 26, 2026
·
Updated

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 Software

1 affected component
nuget/scriban<7.6.0

Event History

Nov 26, 2026
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:18 PM
DescriptionSeverityWeakness
Event
via NVD·04:18 PM

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using Scriban before 7.6.0 are exposed when they reuse a TemplateContext across renders and allow attackers to supply templates. The impact includes cross-render observation or influence of array.cycle positions and math.random sequences, as well as memory exhaustion through accumulated cycle entries.

2

What does an attacker need to exploit it?

An attacker needs the ability to provide templates that are rendered using a reused TemplateContext. No user interaction is required.

3

Is a default configuration affected?

The issue depends on context reuse: TemplateContext.Reset() does not clear the Tags dictionary. The provided information does not establish whether applications reuse contexts by default.

4

What should be done if upgrading is not immediately possible?

Avoid rendering attacker-supplied templates with a reused TemplateContext. Use an isolated context for each untrusted render so Tags state cannot persist between renders.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203