Vulnerabilities in pkg:npm/jpv
PACKAGECVE-2019-19507 is a MODERATE (CVSS 5.3) validation bypass is possible vulnerability (CWE-287: Improper Authentication) affecting Jpv libraries in the npm ecosystem. The issue involves validation bypass is possible in json pattern validator. Remediation is available by upgrading affected packages to version 2.1.1.
pkg:npm/jpv
Vulnerability advisories affecting package pkg:npm/jpv. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-rh46-3fgc-mvrf | CVE-2019-19507 | MODERATE | Validation bypass is possible in Json Pattern Validator |
| GHSA-vh6r-g38f-q3w8 | CVE-2020-17479 | CRITICAL | Validation bypass in jpv |
CVE-2019-19507 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2019-19507
To remediate this vulnerability, upgrade all affected Jpv dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install jpv@2.1.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls jpv
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2019-19507, inspect your project dependencies using npm:
npm ls jpv
Analyze the terminal output to locate any version of Jpv in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.1), your application is affected.
Note: The npm ls jpv command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Jpv, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-19507 Affected Jpv Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jpv
|
npm |
< 2.1.1
|
2.1.1
|
References
Frequently Asked Questions
What is CVE-2019-19507?
Which Jpv versions are affected?
What version fixes CVE-2019-19507?
Is jpv affected?
What is the CVSS score of CVE-2019-19507?
What CWE is associated with CVE-2019-19507?
How can I check npm dependencies for CVE-2019-19507?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rh46-3fgc-mvrf",
"modified" : "2021-08-19T16:05:30Z",
"published" : "2019-12-04T21:25:28Z",
"aliases" : [ "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" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "jpv"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.1"
} ]
} ]
} ],
"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"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-12-04T19:47:26Z",
"nvd_published_at" : null
}
}