Skip to content

CVE-2019-19507 Validation bypass is possible in Json Pattern Validator

MediumCVSS 5.3 EPSS 0.97%
Published
Updated
Exploit status
No public exploit known

Description

In jpv (aka Json Pattern Validator) before 2.1.1, compareCommon() can be bypassed because certain internal attributes can be overwritten via a conflicting name, as demonstrated by 'constructor': {'name':'Array'}. This affects validate(). Hence, a crafted payload can overwrite this builtin attribute to manipulate the type detection result.

Affected products

ProductAffected versionsFixed in
npm jpv(npm) < 2.1.1 2.1.1
json pattern validator project json pattern validator < 2.1.1 2.1.1

References