Vulnerability library
Security checkApril 10, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmliquidjs

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • Affected version(s): <= 10.25.2
  • Patched version(s): 10.25.3

References

Could your website be exposed too?

SmartScanner can check your website for LiquidJS: Root restriction bypass for partial and layout loading through symlinked templates and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated April 10, 2026