Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXJoNDYtM2ZnYy1tdnJm

Validation bypass is possible in Json Pattern Validator

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.

Permalink: https://github.com/advisories/GHSA-rh46-3fgc-mvrf
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXJoNDYtM2ZnYy1tdnJm
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 4 years ago
Updated: over 1 year ago


CVSS Score: 5.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Identifiers: GHSA-rh46-3fgc-mvrf, CVE-2019-19507
References: Repository: https://github.com/manvel-khnkoyan/jpv
Blast Radius: 9.5

Affected Packages

npm:jpv
Dependent packages: 3
Dependent repositories: 63
Downloads: 1,583 last month
Affected Version Ranges: < 2.1.1
Fixed in: 2.1.1
All affected versions: 1.0.0, 1.0.1, 1.1.0, 1.1.2, 1.1.3, 1.1.4, 1.2.8, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.4.0, 1.5.1, 2.0.0, 2.0.1, 2.1.0
All unaffected versions: 2.1.1, 2.1.2, 2.2.1, 2.2.2, 3.0.1, 3.0.2, 3.0.3, 3.1.0, 3.1.1, 3.1.2