CVE-2020-8910: Improper Input Validation in Google Closure Library

google-closure-library Updated 02 Oct 2025

Summary

07/05/2021
Yes i
Moderate
6.5

CVE-2020-8910: Improper Input Validation in Google Closure Library. Affects google-closure-library versions < 20200315.0.0. Fixed in 20200315.0.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Google Closure Library is a JavaScript library that provides a wide range of utilities and classes for building web applications. It offers features for DOM manipulation, event handling, network communication, and more. The library is widely used in various projects and frameworks. However, versions up to and including v20200224 of the library are vulnerable to an improper input validation issue in the goog.uri module.

Vulnerability Detail

The vulnerability arises from a URL parsing flaw in the goog.uri module of the Google Closure Library. An attacker can exploit this flaw by sending malicious URLs to be parsed by the library, which can result in the incorrect determination of the authority. This can lead to various security issues, such as cross-site scripting (XSS) attacks or unauthorized access to sensitive resources. The vulnerability has a CVSS score of 6.5, indicating a moderate severity level.

How To Fix

Minimum fixed version

20200315.0.0

This is the first release that contains the fix.

npm install google-closure-library@20200315.0.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround provided for this vulnerability. The recommended solution is to update the library to the fixed version.

Conclusion

The Google Closure Library versions up to and including v20200224 are vulnerable to an improper input validation issue in the goog.uri module. This can be exploited by attackers to manipulate URL parsing and potentially lead to security risks. To mitigate this vulnerability, it is crucial to update the library to version v20200315 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for google-closure-library →

Share this vulnerability

FAQ

The Google Closure Library is a JavaScript library that provides utilities and classes for web application development.

The vulnerability can lead to security issues such as cross-site scripting (XSS) attacks or unauthorized access to sensitive resources.

The CVSS score of this vulnerability is 6.5, indicating a moderate severity level.

To fix this vulnerability, update the Google Closure Library to version v20200315 or later.

No specific workaround is provided. Updating the library to the fixed version is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for google-closure-library.

How To Fix

Minimum fixed version

20200315.0.0

This is the first release that contains the fix.

npm install google-closure-library@20200315.0.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback