Vulnerabilities/

LiquidJS: Root restriction bypass for partial and layout loading through symlinked templates

Severity:
High

Description

LiquidJS enforces partial and layout root restrictions using the resolved pathname string, but it does not resolve the canonical filesystem path before opening the file. A symlink placed inside an allowed partials or layouts directory can therefore point to a file outside that directory and still be loaded.

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 April 10, 2026