All reports
Medium

Validation bypass is possible in Json Pattern Validator

Affected versions

npmjpv
Affected versions
< 2.1.1
Fixed version
2.1.1

Exploitation

CVE-2019-19507

Probability of exploitation in the next 30 days: 0.97%

FIRST EPSS · 2026-11-21

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.

Links