Skip to content

Prototype Pollution in object-path

moderate severity Published Sep 1, 2021 • Updated Oct 5, 2021

Package

npm object-path (npm)

Affected versions

< 0.11.6

Patched versions

0.11.6

Description

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.

References

CVE ID

CVE-2021-23434

CVSS Score

5.6 Moderate
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L