makerjs
Affected
- introduced
0, fixed0.19.2(semver)
Fixed versions
0.19.2
Fix
- Fixed version
0.19.2npm install [email protected]
Advisory
Also known as: CVE-2026-24888
Maker.js has Unsafe Property Copying in makerjs.extendObject
Summary
The makerjs.extendObject function copies properties from source objects without proper validation, potentially exposing applications to security risks. The function lacks hasOwnProperty() checks and does not filter dangerous keys, allowing inherited properties and potentially malicious properties to be copied to target objects.
Details
The extendObject function iterates over source object properties using a for...in loop without:
hasOwnProperty() to exclude inherited properties__proto__, constructor, prototype)Affected Code
File: https://github.com/microsoft/maker.js/blob/98cffa82a372ff942194c925a12a311253587167/packages/maker.js/src/core/maker.ts#L232-L241
PoC
const makerjs = require('makerjs');
const source = { __proto__: { name: 'Ravi', isAdmin: true } };
const target = { name: 'user' };
const result = makerjs.extendObject(target, source);
console.log(result.name); // Ravi
console.log(result.isAdmin); // true
Impact
Security Implications
hasOwnProperty() assumptions in security-sensitive code.hasOwnProperty() for validation could be bypassed.__proto__, constructor, prototype) exposes potential attack vectors.Affected Use Cases
Medium Basis: The source's own band: MODERATE
0, fixed 0.19.2 (semver)0.19.2
0.19.2npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0