# CVE-2026-41311: LiquidJS is vulnerable to Denial of Service via circular block reference in layout

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-24T15:34:00.000Z
- Modified: 2026-09-10T03:50:42.725Z
- Also known as: GHSA-4rc3-7j7w-m548
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript. Prior to version 10.25.7, a circular block reference in {% layout %} / {% block %} causes an infinite recursive loop, consuming all available memory (~4GB) and crashing the Node.js process with FATAL ERROR: JavaScript heap out of memory. This allows any user who can submit a Liquid template to perform a Denial of Service attack. This issue has been patched in version 10.25.7.

(As written by CVE List.)

## Affected

- harttle liquidjs: < 10.25.7
- liquidjs (npm): before 10.25.7
- liquidjs liquidjs: before 10.25.7

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/harttle/liquidjs/security/advisories/GHSA-4rc3-7j7w-m548> (exploit, vendor-advisory, web)
- <https://github.com/harttle/liquidjs/commit/e2311dfd6e82f73509308aa8a3a1fafc92e226f0> (patch, web)
- <https://github.com/harttle/liquidjs/releases/tag/v10.25.7> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41311> (advisory)
- <https://github.com/harttle/liquidjs> (package)

## Sources

- CVE List: [CVE-2026-41311](https://www.cve.org/CVERecord?id=CVE-2026-41311), CVE Terms of Use, modified 2026-05-11
- GitHub Advisory Database: [GHSA-4rc3-7j7w-m548](https://github.com/advisories/GHSA-4rc3-7j7w-m548), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-41311](https://nvd.nist.gov/vuln/detail/CVE-2026-41311), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-41311 · Whole record: https://cve.day/CVE-2026-41311.json · Rebuilt by cve.day 2026-11-25T22:59:21.132Z
