es-toolkit is vulnerable to Prototype Pollution
59
Medium Risk
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.
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).
es-toolkit is vulnerable to Prototype Pollution in versions 1.11.0 - 1.50.0.
Upgrade the es-toolkit library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant