CVE-2023-26106
Description
The dot-lens npm package is vulnerable to Prototype Pollution via its set() function, allowing attackers to inject properties into Object.prototype, potentially leading to denial of service or remote code execution.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
The dot-lens npm package is vulnerable to Prototype Pollution via its set() function, allowing attackers to inject properties into Object.prototype, potentially leading to denial of service or remote code execution.
The dot-lens package, a fast dot-notation lens for JavaScript objects, is vulnerable to Prototype Pollution through its set() function in index.js. The function allows setting nested properties but does not properly validate keys such as __proto__, constructor, or prototype, enabling an attacker to pollute the Object prototype [1][3].
To exploit this vulnerability, an attacker must control the path argument passed to set(), often via user input. By crafting a path like __proto__.polluted, the set() function recursively assigns values to Object.prototype, causing all objects to inherit the polluted property [2].
Successful exploitation can result in denial of service by triggering JavaScript exceptions or, depending on application logic, lead to remote code execution through property definition by path [2]. The ability to alter the prototype chain can change application behavior in unintended ways.
As of March 2023, no patch is available for this vulnerability [1]. Users are advised to avoid passing untrusted input to the set() function, or to use alternative libraries with proper validation to prevent Prototype Pollution [2][4].
AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
dot-lensnpm | <= 1.2.3 | — |
Affected products
2- dot-lens/dot-lensdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/advisories/GHSA-rmhg-2cvv-q7vxghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-26106ghsaADVISORY
- github.com/jb55/dot-lens/blob/465ef2088e4065b7be1c4372eedd2215c3820bc4/index.jsghsaWEB
- security.snyk.io/vuln/SNYK-JS-DOTLENS-3227646ghsaWEB
- github.com/jb55/dot-lens/blob/465ef2088e4065b7be1c4372eedd2215c3820bc4/index.js%23L70mitre
News mentions
0No linked articles in our index yet.