# CVE-2026-39859: LiquidJS has a renderFile() / parseFile() bypass configured root and allow arbitrary file read

> LiquidJS allows arbitrary file read via renderFile/parseFile when root is configured, enabling attackers to access sensitive files.

- **Severity:** Medium 6.3 (`CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 8 Apr 2026
- **Updated:** 10 Apr 2026
- **Also known as:** GHSA-v273-448j-v4qj, MINI-4vcm-x9m2-6rqm, MINI-pp56-3r3r-6652

## What is CVE-2026-39859?

CVE-2026-39859 is a medium-severity path traversal vulnerability in harttle liquidjs, published on 8 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript. Prior to 10.25.3, liquidjs 10.25.0 documents root as constraining filenames passed to renderFile() and parseFile(), but top-level file loads do not enforce that boundary. A Liquid instance configured with an empty temporary directory as root can return the contents of arbitrary files. This vulnerability is fixed in 10.25.3.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2026-39859?

2 open source packages ship an affected version, including liquidjs. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `liquidjs` | npm | All versions | 10.25.5 |
| `liquidjs` | npm | All versions | 10.25.5 |

Products: Liquidjs Liquidjs.

## How do I fix CVE-2026-39859?

Upgrade liquidjs to 10.25.5 or later.

## Is CVE-2026-39859 being exploited?

There is no known exploitation of CVE-2026-39859 in the wild and no public exploit code.

## Other vulnerabilities in harttle liquidjs

- [CVE-2026-30952](https://insights.sbomify.com/CVE-2026-30952/): liquidjs has a path traversal fallback vulnerability (high 8.7)
- [CVE-2026-35525](https://insights.sbomify.com/CVE-2026-35525/): LiquidJS has a root restriction bypass for partial and layout loading through symlinked templates (high 8.2)
- [CVE-2026-41311](https://insights.sbomify.com/CVE-2026-41311/): LiquidJS is vulnerable to Denial of Service via circular block reference in layout (high 7.5)
- [CVE-2026-33285](https://insights.sbomify.com/CVE-2026-33285/): LiquidJS: memoryLimit Bypass through Negative Range Values Leads to Process Crash (high 7.5)
- [CVE-2026-33287](https://insights.sbomify.com/CVE-2026-33287/): LiquidJS has Exponential Memory Amplification through its replace_first Filter $& Pattern (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-39859 and fix it if it is affected.

What it is: CVE-2026-39859 is a medium-severity path traversal vulnerability in harttle liquidjs, published on 8 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-39859 in the wild and no public exploit code.

Affected packages and fixed versions:
- liquidjs (npm): affected all versions; fixed in 10.25.5
- liquidjs (npm): affected all versions; fixed in 10.25.5

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-39859/ (Markdown: https://insights.sbomify.com/CVE-2026-39859/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-39859
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-39859
- OSV: https://osv.dev/vulnerability/CVE-2026-39859

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-39859/
Summaries are generated and may contain mistakes; the official description above is the record.
