Medium, CVSS 6.5npmAmendedPublished
Maker.js has Unsafe Property Copying in makerjs.extendObject
CVE-2026-24888 · GHSA-2cp6-34r9-54xx
- Affected
- npm makerjs <= 0.19.1
- Fixed in
- 0.19.2· Vendor fix available
- Issue
- 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: 1. Checking hasOwnProperty() to exclude inherited properties 2. Filtering dangerous keys (proto, constructor, prototype) 3. Validating property sources Affected Code File: https://github.com/microsoft/maker.js/blob/98cffa82a372ff942194c925a12a311253587167/packages/maker.js/src/core/maker.ts#L232-L241 PoC Impact Security Implications 1. Unexpected Behavior: Properties may appear on target objects but not be own properties, breaking hasOwnProperty() assumptions in security-sensitive code. 2. Security Bypass Risk: Code relying on hasOwnProperty() for…
Recommended action: Upgrade to 0.19.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.