Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-c875-h985-hvrc: Scriban: Built-in operations bypass LoopLimit and delay cancellation, enabling Denial of Service

0
High
Published: 03/24/2026 (03/24/2026, 22:13:08 UTC)
Source: GCVE Database
Product: scriban

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

NuGetghsa
scriban
Affected versions
<7.0.0
NuGetghsa
Scriban.Signed
Affected versions
<7.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/06/2026, 23:21:55 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses