Validation bypass is possible in Json Pattern Validator
Moderate severity
GitHub Reviewed
Published
Dec 4, 2019
to the GitHub Advisory Database
•
Updated Jan 9, 2023
Description
Reviewed
Dec 4, 2019
Published to the GitHub Advisory Database
Dec 4, 2019
Last updated
Jan 9, 2023
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.
References