CVE-2020-8910: Google closure library Improper Input Validation Vulnerability

MODERATE
Advisory Identifier: GHSA-vh5w-fg69-rc8m
CVSS 6.5
CWE-20
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2020-8910
GHSA Identifier GHSA-vh5w-fg69-rc8m
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Google closure library
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

google-closure-library fixed: 20200315.0.0
npm install google-closure-library@20200315.0.0
Verify Direct and Transitive Dependencies

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

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.

CVE-2020-8910 Affected Google closure library Versions

1 component(s)
Fixed Versions:
20200315.0.0
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?
CVE-2020-8910 is a security vulnerability in Google closure library involving Improper Input Validation in Google Closure Library under CWE-20: Improper Input Validation.
Which Google closure library versions are affected?
Affected versions include releases prior to 20200315.0.0 across affected packages: google-closure-library.
What version fixes CVE-2020-8910?
Upgrading to 20200315.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is google-closure-library affected?
Yes, google-closure-library is affected in releases prior to 20200315.0.0. Upgrade your dependency to 20200315.0.0 or later.
What is the CVSS score of CVE-2020-8910?
CVE-2020-8910 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2020-8910?
CVE-2020-8910 is classified under CWE-20: Improper Input Validation (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.).
How can I check npm dependencies for CVE-2020-8910?
Run the dependency tree command: 'npm ls google-closure-library'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}