Intel

AIKIDO-2026-746804

liquid is vulnerable to Denial of Service (DoS)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 13, 2026
October 13, 2026

65

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

The for and tablerow tags iterate integer ranges before Liquid checks its render score limit. for converts the range into a full array with Range#to_a, and tablerow processes it fully with an unbounded each call, so a range such as (1..1000000000) gets materialized or fully processed regardless of size. Even an empty-body loop is not charged against the render score until after that full pass, so a single template statement can exhaust memory and CPU. The fix replaces both paths with a bounded RangeSlice window that charges each visited item, including empty-body iterations, before it runs.

How do I fix this?

Upgrade the liquid library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you render Liquid templates containing input from users you do not fully trust.

Package

Versions

1.9.0 - 5.13.0

Fixed in 5.14.0

Background info

liquid is vulnerable to Denial of Service (DoS) in versions 1.9.0 - 5.13.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea