Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
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 applicationsLearn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.
Start learningUpgrade liquidjs to version 10.26.0 or higher.
liquidjs is an A simple, expressive, safe and Shopify compatible template engine in pure JavaScript.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the date filter in filters/date.ts and the strftime formatter in strftime.ts. An attacker can exhaust memory or hang rendering by supplying a crafted date format string that includes extremely large numeric width directives or non-string format values that expand into large padding allocations.
The vulnerable code builds padding one character at a time and does not account for the allocation cost of strftime width handling in its memory accounting path, so a user-controlled template or data value can drive unbounded allocation work during date formatting. This can crash the process or make the application unresponsive while rendering attacker-controlled templates.