MEDIUM5.3
GHSA-rh46-3fgc-mvrf
Validation bypass is possible in Json Pattern Validator
Quick fix
GHSA-rh46-3fgc-mvrf — jpv: upgrade to the fixed version with the command below.
npm install jpv@2.1.1Details
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.
Are you affected?
Enter the version of the package you're using.