Vulnerabilities/

liquidjs has a Denial of Service via circular block reference in layout

Severity:
High

Description

A circular block reference in {% layout %} / {% block %} causes an infinite recursive loop, consuming all available memory (~4GB) and crashing the Node.js process with FATAL ERROR: JavaScript heap out of memory. This allows any user who can submit a Liquid template to perform a Denial of Service attack.

Recommendation

Update the liquidjs package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
liquidjs
Anything's wrong? Let us know Last updated on May 13, 2026