================================================================================ legitbiz[research] // advisory ================================================================================ id: LB-2026-003 // mini-deep-assign target: mini-deep-assign <= 0.0.8 (npm) type: Prototype Pollution (CWE-1321) severity: High (CVSS:3.1 7.3 - AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H) channel: GitHub Private Vulnerability Reporting / OSV date: 2026-11-27 status: submitted / coordinated disclosure researcher: legitbiz[research] -------------------------------------------------------------------------------- [01] // summary -------------------------------------------------------------------------------- A prototype-pollution vulnerability in mini-deep-assign <= 0.0.8 allows an attacker who can influence an object passed to _assign() to write arbitrary properties onto global Object.prototype, affecting all objects in the Node.js process. -------------------------------------------------------------------------------- [02] // root cause (lib/index.js) -------------------------------------------------------------------------------- _assign(target, source) iterates `for (nextKey in source)` guarded only by hasOwnProperty without checking for sensitive keys (__proto__, constructor, prototype). Because typeof target['__proto__'] is 'object', it recurses into _assign(Object.prototype, attackerValue), polluting Object.prototype globally. -------------------------------------------------------------------------------- [03] // proof of concept -------------------------------------------------------------------------------- const assign = require('mini-deep-assign'); assign({}, JSON.parse('{"__proto__":{"polluted":"YES"}}')); console.log(({}).polluted); // "YES" -> global Object.prototype polluted -------------------------------------------------------------------------------- [04] // remediation -------------------------------------------------------------------------------- Skip __proto__, constructor, and prototype keys in merge loops, or operate on Object.create(null) dictionaries. ================================================================================