Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-4800— lodash vulnerable to Code Injection via `_.template` imports key names

CVSS 8.1 · High EPSS 0.04% · P11
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-4800

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
lodash vulnerable to Code Injection via `_.template` imports key names
Source: NVD (National Vulnerability Database)
Vulnerability Description
Impact: The fix for CVE-2021-23337 (https://github.com/advisories/GHSA-35jh-r3h4-6jhm) added validation for the variable option in _.template but did not apply the same validation to options.imports key names. Both paths flow into the same Function() constructor sink. When an application passes untrusted input as options.imports key names, an attacker can inject default-parameter expressions that execute arbitrary code at template compilation time. Additionally, _.template uses assignInWith to merge imports, which enumerates inherited properties via for..in. If Object.prototype has been polluted by any other vector, the polluted keys are copied into the imports object and passed to Function(). Patches: Users should upgrade to version 4.18.0. Workarounds: Do not pass untrusted input as key names in options.imports. Only use developer-controlled, static key names.
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: NVD (National Vulnerability Database)
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: NVD (National Vulnerability Database)
Vulnerability Title
lodash 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
lodash是Lodash Utilities开源的一个JavaScript实用程序库。 lodash存在安全漏洞,该漏洞源于对options.imports键名的验证不足,可能导致在模板编译时执行任意代码。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
lodashlodash 4.0.0 ~ 4.18.0 -
lodashlodash-es 4.0.0 ~ 4.18.0 -
lodashlodash-amd 4.0.0 ~ 4.18.0 -
lodashlodash.template 4.0.0 ~ 4.18.0 -

II. Public POCs for CVE-2026-4800

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium
default-local-hunyuan-2.0-instruct · 8638 chars
Paid plan includes:
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-4800

登录查看更多情报信息。

IV. Related Vulnerabilities

V. Comments for CVE-2026-4800

No comments yet


Leave a comment