Arbitrary Code Injection Affecting liquidjs package, versions >=10.0.0 <10.26.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-LIQUIDJS-16959997
  • published28 May 2026
  • disclosed27 May 2026
  • creditc0rydoras

Introduced: 27 May 2026

NewCVE-2026-45618  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade liquidjs to version 10.26.0 or higher.

Overview

liquidjs is an A simple, expressive, safe and Shopify compatible template engine in pure JavaScript.

Affected versions of this package are vulnerable to Arbitrary Code Injection via the filters and tags registries in Liquid. An attacker can trigger arbitrary inherited Object.prototype members by supplying template expressions such as {{ x | valueOf }} or {% constructor %}, causing the engine to invoke built-in prototype methods as if they were registered handlers. In the filter path, this can expose internal template state to attacker-controlled templates and enable further gadget chaining toward code execution; in the tag path, it breaks tag resolution and can crash rendering with misleading errors.

CVSS Base Scores

version 4.0
version 3.1