Intel

AIKIDO-2026-523264

es-toolkit is vulnerable to Prototype Pollution

Prototype Pollution Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Today

59

Medium Risk

This Affects:

JSes-toolkit
1.11.0 - 1.50.0
Fixed in 1.51.0
Are you affected? Scan for Free

TL;DR

The es-toolkit/compat path-writing functions such as set, setWith, update, updateWith, and zipObjectDeep resolve nested property paths when assigning a value. Before the fix the shared write path blocked only __proto__, so a path that traversed constructor.prototype was followed into Object.prototype. A nested path such as constructor.prototype.polluted could therefore add or overwrite properties on the global object prototype, affecting every object in the runtime. The fix rejects __proto__, constructor, and prototype segments on the write path so these keys can no longer be traversed during assignment.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application passes untrusted or externally influenced property paths into one of the affected es-toolkit/compat write functions (set, setWith, update, updateWith, or zipObjectDeep).

Background info

es-toolkit is vulnerable to Prototype Pollution in versions 1.11.0 - 1.50.0.

How to fix this

Upgrade the es-toolkit library to the patch version.