{"id":"GHSA-rh46-3fgc-mvrf","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.","aliases":["CVE-2019-19507"],"modified":"2023-11-08T04:01:28.483830Z","published":"2019-12-04T21:25:28Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2019-12-04T19:47:26Z","nvd_published_at":null,"cwe_ids":["CWE-287"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19507"},{"type":"WEB","url":"https://github.com/manvel-khnkoyan/jpv/issues/6"},{"type":"WEB","url":"https://www.npmjs.com/package/jpv"}],"affected":[{"package":{"name":"jpv","ecosystem":"npm","purl":"pkg:npm/jpv"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.1.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/12/GHSA-rh46-3fgc-mvrf/GHSA-rh46-3fgc-mvrf.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}]}