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.
Remediation
References
https://github.com/manvel-khnkoyan/jpv/issues/6
https://www.npmjs.com/package/jpv
Related Vulnerabilities
CVE-2018-20822 Vulnerability in maven package org.webjars.npm:node-sass
CVE-2023-48796 Vulnerability in maven package org.apache.dolphinscheduler:dolphinscheduler-api
CVE-2017-11556 Vulnerability in npm package node-sass
CVE-2023-51079 Vulnerability in maven package org.mvel:mvel2
CVE-2020-28472 Vulnerability in maven package org.webjars.bower:aws-sdk