Advisory

GHSA-rh46-3fgc-mvrf

Also known as: CVE-2019-19507

Summary

Validation bypass is possible in Json Pattern Validator

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2019-12-04 21:25 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

jpv

npm · All systems

Affected

  • introduced 0, fixed 2.1.1 (semver)

Fixed versions

2.1.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences