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

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
lodash lodash
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

lodash是Lodash Utilities开源的一个JavaScript实用程序库。 lodash存在安全漏洞,该漏洞源于对options.imports键名的验证不足,可能导致在模板编译时执行任意代码。

CVSS 8.1 · High EPSS 2.62% · P85

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 8

VendorProduct Version RangeStatus
lodash lodash 4.0.0< 4.18.0 affected
4.18.0 unaffected
lodash lodash-amd 4.0.0< 4.18.0 affected
4.18.0 unaffected
lodash lodash-es 4.0.0< 4.18.0 affected
4.18.0 unaffected
lodash lodash.template 4.0.0< 4.18.0 affected
4.18.0 unaffected
Get alerts for future matching vulnerabilities Log 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: CVE Program / CVE List V5
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: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
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

Vendor Product Affected Versions CPE Subscribe
lodash lodash 4.0.0 ~ 4.18.0 -
lodash lodash-es 4.0.0 ~ 4.18.0 -
lodash lodash-amd 4.0.0 ~ 4.18.0 -
lodash lodash.template 4.0.0 ~ 4.18.0 -

II. Public POCs for CVE-2026-4800

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
default-local-hunyuan-2.0-instruct · 8638 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
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

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-4800 (1)

Vendor Advisories for CVE-2026-4800 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-4800

No comments yet


Leave a comment