جزئیات آسیبپذیری
CVE-2026-35525
LiquidJS has a root restriction bypass for partial and layout loading through symlinked templates
شرح رسمی (انگلیسی)
LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript. Prior to 10.25.3, for {% include %}, {% render %}, and {% layout %}, LiquidJS checks whether the candidate path is inside the configured partials or layouts roots before reading it. That check is path-based, not realpath-based. Because of that, a file like partials/link.liquid passes the directory containment check as long as its pathname is under the allowed root. If link.liquid is actually a symlink to a file outside the allowed root, the filesystem follows the symlink when the file is opened and LiquidJS renders the external target. So the restriction is applied to the path string that was requested, not to the file that is actually read. This matters in environments where an attacker can place templates or otherwise influence files under a trusted template root, including uploaded themes, extracted archives, mounted content, or repository-controlled template trees. This vulnerability is fixed in 10.25.3.
امتیازهای CVSS
| امتیاز | نسخه | منبع | بردار |
|---|---|---|---|
| 8.2بالا | 4.0 | CVEProject cvelistV5 (CNA) (GitHub_M) | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
محصولات آسیبپذیر
| فروشنده | محصول | نسخهها | منبع |
|---|---|---|---|
| harttle | liquidjs | < 10.25.3 | CVEProject cvelistV5 (CNA) |
منابع و راهنماها
۳- https://github.com/harttle/liquidjs/security/advisories/GHSA-56p5-8mhr-2fph x_refsource_CONFIRM
- https://github.com/harttle/liquidjs/pull/867 x_refsource_MISC
- https://github.com/harttle/liquidjs/releases/tag/v10.25.3 x_refsource_MISC
اطلاعات
- تاریخ انتشار
- ۱۴۰۵/۰۱/۱۹
- آخرین بهروزرسانی
- ۱۴۰۵/۰۱/۱۹
- وضعیت
- منتشرشده
- صادرکننده (CNA)
- GitHub_M
پیشبینی بهرهبرداری (EPSS)
ارزیابی SSVC (CISA)
- قابل خودکارسازی
- خیر
- وضعیت بهرهبرداری
- اثبات مفهوم
- اثر فنی
- جزئی
ضعفها (CWE)
- CWE-61UNIX Symbolic Link (Symlink) Following