Bypassing Type Detection in jpv (aka Json Pattern Validator) 2.1.1 and Earlier

Bypassing Type Detection in jpv (aka Json Pattern Validator) 2.1.1 and Earlier

CVE-2019-19507 · MEDIUM Severity

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

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.

Learn more about our Internal Network Penetration Testing.