Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-2cp6-34r9-54xx

Опубликовано: 29 янв. 2026
Источник: github
Github: Прошло ревью
CVSS3: 6.5

Описание

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:

  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

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

  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 validation could be bypassed.

  3. Future Risk: Lack of dangerous key filtering (__proto__, constructor, prototype) exposes potential attack vectors.

Affected Use Cases

  • Extending objects from user input or external APIs
  • Merging options from untrusted sources

Пакеты

Наименование

makerjs

npm
Затронутые версииВерсия исправления

<= 0.19.1

0.19.2

EPSS

Процентиль: 43%
0.00211
Низкий

6.5 Medium

CVSS3

Дефекты

CWE-1321

Связанные уязвимости

CVSS3: 6.5
nvd
9 дней назад

Maker.js is a 2D vector line drawing and shape modeling for CNC and laser cutters. In versions up to and including 0.19.1, 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. A patch is available in commit 85e0f12bd868974b891601a141974f929dec36b8, which is expected to be part of version 0.19.2.

EPSS

Процентиль: 43%
0.00211
Низкий

6.5 Medium

CVSS3

Дефекты

CWE-1321