VDB
Sign up
MEDIUM5.6

GHSA-v39p-96qg-c8rf

Prototype Pollution in object-path

Quick fix

GHSA-v39p-96qg-c8rf — object-path: upgrade to the fixed version with the command below.

npm install object-path@0.11.6

Details

This affects the package object-path before 0.11.6. A type confusion vulnerability can lead to a bypass of CVE-2020-15256 when the path components used in the path parameter are arrays. In particular, the condition `currentPath === '__proto__'` returns false if `currentPath` is `['__proto__']`. This is because the `===` operator returns always false when the type of the operands is different.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/object-path
Introduced in: 0Fixed in: 0.11.6
Fixnpm install object-path@0.11.6

References