CVE-2020-8910: Google closure library Improper Input Validation Vulnerability
MODERATECVE-2020-8910 is a MODERATE (CVSS 6.5) improper input validation vulnerability (CWE-20: Improper Input Validation) affecting Google closure library libraries in the npm ecosystem. The issue involves improper input validation in google closure library. Remediation is available by upgrading affected packages to version 20200315.0.0.
CVE-2020-8910 at a Glance
Security Impact
CVSS: 6.5
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:R/S:U/C:H/I:N/A:N).
How to Fix CVE-2020-8910
To remediate this vulnerability, upgrade all affected Google closure library 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 google-closure-library@20200315.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls google-closure-library
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2020-8910, inspect your project dependencies using npm:
npm ls google-closure-library
Analyze the terminal output to locate any version of Google closure library in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 20200315.0.0), your application is affected.
Note: The npm ls google-closure-library 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Google closure library, 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-2020-8910 Affected Google closure library Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
google-closure-library
|
npm |
< 20200315.0.0
|
20200315.0.0
|
References
Frequently Asked Questions
What is CVE-2020-8910?
Which Google closure library versions are affected?
What version fixes CVE-2020-8910?
Is google-closure-library affected?
What is the CVSS score of CVE-2020-8910?
What CWE is associated with CVE-2020-8910?
How can I check npm dependencies for CVE-2020-8910?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vh5w-fg69-rc8m",
"modified" : "2021-05-06T20:57:55Z",
"published" : "2021-05-07T16:06:34Z",
"aliases" : [ "CVE-2020-8910" ],
"summary" : "Improper Input Validation in Google Closure Library",
"details" : "A URL parsing issue in goog.uri of the Google Closure Library versions up to and including v20200224 allows an attacker to send malicious URLs to be parsed by the library and return the wrong authority. Mitigation -- update your library to version v20200315.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "google-closure-library"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "20200315.0.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 20200224.0.0"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-8910"
}, {
"type" : "WEB",
"url" : "https://github.com/google/closure-library/commit/294fc00b01d248419d8f8de37580adf2a0024fc9"
}, {
"type" : "WEB",
"url" : "https://github.com/google/closure-library/releases/tag/v20200315"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-06T20:57:55Z",
"nvd_published_at" : "2020-03-26T12:15:00Z"
}
}