CVE-2019-19507
MEDIUM5.3EPSS 0.25%Validation bypass is possible in Json Pattern Validator
Published: 12/4/2019Modified: 11/8/2023
Also known as:GHSA-rh46-3fgc-mvrf
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 packages (1)
- npm/jpvfrom 0, < 2.1.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |