Vulnerability library
Security checkApril 09, 2026

LiquidJS: `renderFile()` / `parseFile()` bypass configured `root` and allow arbitrary file read

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

Medium severitynpmliquidjs

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

liquidjs 10.25.0 documents root as constraining filenames passed to renderFile() and parseFile(), but top-level file loads do not enforce that boundary.

The published npm package [email protected] on Linux 6.17.0 with Node v22.22.1.

Recommendation

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

  • Affected version(s): <= 10.25.4
  • Patched version(s): 10.25.5

References

Could your website be exposed too?

SmartScanner can check your website for LiquidJS: `renderFile()` / `parseFile()` bypass configured `root` and allow arbitrary file read and gives you actionable findings to investigate.

Start a free scan

Related Issues

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