提出 #1083877: Toss es-toolkit >= 1.26.0, < 1.53.1 (up to 1.53.0) Code Injection情報

タイトルToss es-toolkit >= 1.26.0, < 1.53.1 (up to 1.53.0) Code Injection
説明A code injection vulnerability exists in the template() function of es-toolkit/compat (es-toolkit >= 1.26.0, < 1.53.1). Affected file: src/compat/string/template.ts (sink: new Function, line 187) Affected function: template() (exported only via es-toolkit/compat) Affected parameters: - options.variable: inserted into the generated function's parameter list; can close it and inject a function body - keys of options.imports: used as parameter names; a default-value expression in a key runs when the function is called - options.sourceURL: placed in a //# sourceURL= comment; only CR/LF are stripped, so U+2028/U+2029 can end the comment and inject code Code runs when the template is compiled, even if it is never rendered and no data is passed. In Node.js this leads to remote code execution with access to require, process and the filesystem; in a browser, script execution in the page's origin. Exploitation requires part of options to come from untrusted input. The root es-toolkit entry is not affected. CVSS: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (8.1) The vendor confirmed the issue in an official GitHub Security Advisory (published 2026-11-06) and fixed it in 1.53.1. CVE status: the vendor advisory was published without a CVE ID. As of 2026-11-10 no CVE has been assigned, and the vendor has not indicated whether it will request one from GitHub CNA. Product: https://github.com/toss/es-toolkit Package: https://www.npmjs.com/package/es-toolkit Fixed version: https://www.npmjs.com/package/es-toolkit/v/1.53.1
ソース⚠️ https://github.com/toss/es-toolkit/security/advisories/GHSA-mc5p-3gj7-h877
ユーザー brad (UID 97565)
送信2026年11月10日 04:42 (24 日 ago)
モデレーション2026年12月04日 09:26 (24 days later)
ステータス承諾済み
VulDBエントリ449626 [toss es-toolkit 迄 1.53.0 template.ts template 特権昇格]
ポイント20

Do you want to use VulDB in your project?

Use the official API to access entries easily!