GHSA-c875-h985-hvrc: Scriban: Built-in operations bypass LoopLimit and delay cancellation, enabling Denial of Service
Scriban versions prior to 7.0.0 have a vulnerability where the LoopLimit setting does not apply to expensive iterations performed inside built-in operations and operators. This allows an attacker to craft templates that cause excessive CPU or memory consumption, bypassing the intended loop iteration limits. For example, expressions like {{ 1..1000000 | array.size }} can force large CPU work despite a low LoopLimit. Similarly, string multiplication can cause large memory allocations. This uncontrolled resource consumption can lead to denial of service in applications that process untrusted templates using Scriban.
AI Analysis
Technical Summary
The vulnerability in Scriban affects versions before 7.0.0 and arises because the LoopLimit enforcement only applies to explicit script loop statements, not to internal iterations performed by built-in functions or operators. The ScriptRange iteration and operations such as array size calculation or string multiplication perform large iterations or allocations without invoking the LoopLimit checks, allowing attackers to cause excessive CPU or memory usage. This bypass leads to uncontrolled resource consumption, potentially causing denial of service in systems that rely on LoopLimit for safe runtime execution of untrusted templates.
Potential Impact
Applications that accept attacker-controlled templates and rely on Scriban's LoopLimit to restrict resource usage can be forced into heavy CPU or memory consumption by a single crafted expression. This can degrade performance or cause denial of service. Affected systems include template-as-a-service platforms, content management systems, email rendering systems, and any multi-tenant environments using Scriban with untrusted content. The vulnerability does not impact confidentiality or integrity but has a high impact on availability due to resource exhaustion.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted templates or implement additional external resource usage controls. Do not rely solely on LoopLimit to prevent resource exhaustion in Scriban templates. Monitor for updates from the Scriban maintainers regarding an official fix.
GHSA-c875-h985-hvrc: Scriban: Built-in operations bypass LoopLimit and delay cancellation, enabling Denial of Service
Description
Scriban versions prior to 7.0.0 have a vulnerability where the LoopLimit setting does not apply to expensive iterations performed inside built-in operations and operators. This allows an attacker to craft templates that cause excessive CPU or memory consumption, bypassing the intended loop iteration limits. For example, expressions like {{ 1..1000000 | array.size }} can force large CPU work despite a low LoopLimit. Similarly, string multiplication can cause large memory allocations. This uncontrolled resource consumption can lead to denial of service in applications that process untrusted templates using Scriban.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Scriban affects versions before 7.0.0 and arises because the LoopLimit enforcement only applies to explicit script loop statements, not to internal iterations performed by built-in functions or operators. The ScriptRange iteration and operations such as array size calculation or string multiplication perform large iterations or allocations without invoking the LoopLimit checks, allowing attackers to cause excessive CPU or memory usage. This bypass leads to uncontrolled resource consumption, potentially causing denial of service in systems that rely on LoopLimit for safe runtime execution of untrusted templates.
Potential Impact
Applications that accept attacker-controlled templates and rely on Scriban's LoopLimit to restrict resource usage can be forced into heavy CPU or memory consumption by a single crafted expression. This can degrade performance or cause denial of service. Affected systems include template-as-a-service platforms, content management systems, email rendering systems, and any multi-tenant environments using Scriban with untrusted content. The vulnerability does not impact confidentiality or integrity but has a high impact on availability due to resource exhaustion.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted templates or implement additional external resource usage controls. Do not rely solely on LoopLimit to prevent resource exhaustion in Scriban templates. Monitor for updates from the Scriban maintainers regarding an official fix.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-c875-h985-hvrc
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["NuGet"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a4c346227e9c79719600d11
Added to database: 07/06/2026, 23:04:02 UTC
Last enriched: 07/06/2026, 23:21:55 UTC
Last updated: 07/06/2026, 23:21:55 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.