GitHub Advisoryadvisory · npm
GHSA-rh46-3fgc-mvrf Validation bypass is possible in Json Pattern Validator
MEDIUM
Official page ↗
- Aliases
- CVE-2019-19507
- Ecosystem
- npm
- Packages
- jpv
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Weaknesses
- CWE-287
- Reviewed
- 2019-12-04
Affected packages
• npm jpv: < 2.1.1 → fixed in 2.1.1
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.
Related
Alias · CVE (1)
- CVE-2019-19507 In jpv (aka Json Pattern Validator) before 2.1.1, compareCommon() can be bypassed because certain internal attributes can be overwritten… vulnerability
Weakness · CWE (1)
- CWE-287 Improper Authentication weakness