What’s Vulnerable › Vulnerabilities
CVE-2019-19507
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2019-12-02 · updated 2026-06-17
- Weakness: CWE-287
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
- Json Pattern Validator Project Json Pattern Validator: before 2.1.1 — fixed in 2.1.1
How to fix
Upgrade to a fixed version: Json Pattern Validator Project Json Pattern Validator 2.1.1. Check the vendor advisory for mitigations.
References
- https://github.com/manvel-khnkoyan/jpv/issues/6
- https://www.npmjs.com/package/jpv
- https://github.com/manvel-khnkoyan/jpv/issues/6
- https://www.npmjs.com/package/jpv
Get alerted when CVE-2019-19507 or the next vulnerability affects your stack