CVE-2019-10781: Schema inspector Validation Bypass Vulnerability
CRITICALCVE-2019-10781 is a CRITICAL (CVSS 9.8) validation bypass vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Schema inspector libraries in the npm ecosystem. The issue involves validation bypass in schema-inspector. Remediation is available by upgrading affected packages to version 1.6.9.
CVE-2019-10781 at a Glance
Security Impact
CVSS: 9.8
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:H/I:H/A:H).
How to Fix CVE-2019-10781
To remediate this vulnerability, upgrade all affected Schema inspector 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 schema-inspector@1.6.9
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls schema-inspector
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2019-10781, inspect your project dependencies using npm:
npm ls schema-inspector
Analyze the terminal output to locate any version of Schema inspector in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.9), your application is affected.
Note: The npm ls schema-inspector 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-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. In Schema inspector, 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-10781 Affected Schema inspector Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
schema-inspector
|
npm |
< 1.6.9
|
1.6.9
|
References
Frequently Asked Questions
What is CVE-2019-10781?
Which Schema inspector versions are affected?
What version fixes CVE-2019-10781?
Is schema-inspector affected?
What is the CVSS score of CVE-2019-10781?
What CWE is associated with CVE-2019-10781?
How can I check npm dependencies for CVE-2019-10781?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r24h-634p-m72x",
"modified" : "2021-08-30T13:35:23Z",
"published" : "2020-06-10T20:02:47Z",
"aliases" : [ "CVE-2019-10781" ],
"summary" : "Validation Bypass in schema-inspector",
"details" : "In schema-inspector before 1.6.9, a maliciously crafted JavaScript object can bypass the `sanitize()` and the `validate()` function used within schema-inspector.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "schema-inspector"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.6.9"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10781"
}, {
"type" : "WEB",
"url" : "https://github.com/Atinux/schema-inspector/commit/345a7b2eed11bb6128421150d65f4f83fdbb737d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Atinux/schema-inspector"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-SCHEMAINSPECTOR-536970"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-668" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-10T18:15:24Z",
"nvd_published_at" : null
}
}