Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. liquidjs
  4. ›
  5. CVE-2026-45357

CVE-2026-45357: LiquidJS has a memory and render limit bypass via unbounded width padding in `date` filter (strftime)

May 27, 2026

The date filter’s strftime implementation parses width specifiers like %9999999d and forwards the captured width unchecked into pad()/padStart() in src/util/underscore.ts. The pad loop performs unbounded string concatenation without consulting the Context’s memoryLimit or renderLimit, so a single small template ({{ x | date: '%5000000d' }}) produces megabytes of output and unbounded CPU. The memoryLimit and renderLimit options the docs (src/liquid-options.ts:87-92) advertise as DoS controls — and which the docstring explicitly mentions for strftime — are entirely bypassed.

References

  • github.com/advisories/GHSA-hh27-hf48-9f5q
  • github.com/harttle/liquidjs/security/advisories/GHSA-hh27-hf48-9f5q
  • nvd.nist.gov/vuln/detail/CVE-2026-45357

Code Behaviors & Features

Detect and mitigate CVE-2026-45357 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 10.25.7

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/liquidjs/CVE-2026-45357.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:47 +0000.