Vulnerability library
Security checkJanuary 09, 2023

Validation bypass is possible in Json Pattern Validator

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmjpv

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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

Could your website be exposed too?

SmartScanner can check your website for Validation bypass is possible in Json Pattern Validator and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 09, 2023