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.
Recommendation
Update the jpv package to the latest compatible version. Followings are version details:
- Affected version(s): < 2.1.1
- Patched version(s): 2.1.1
References
Related Issues
- validator.js has a URL validation bypass vulnerability in its isURL function - CVE-2025-56200
- Validation bypass in jpv - CVE-2020-17479
- Validation Bypass in slp-validate - CVE-2019-16761
- Validation Bypass in kind-of - CVE-2019-20149
You might also like:
- Tags:
- npm
- jpv
Anything's wrong? Let us know Last updated on January 09, 2023


