Cross-site Scripting (XSS) Affecting gmail-js package, versions <0.6.5


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDnpm:gmail-js:20160721
  • published21 Jul 2016
  • disclosed21 Jul 2016
  • creditGursev Singh Kalra

Introduced: 21 Jul 2016

CVE-2016-1000228  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade gmail-js to version 0.6.5 or higher.

Overview

gmail-js is a client side library for interacting with the Gmail API.

As part of its execution, the library dynamically creates functions out of response data, loaded into a new Function(data) call, and executes the function. The response data read is not encoded and may include user content (e.g. from the emails themselves), thus exposing a DOM-Based Cross-Site Scripting (DOMXSS) vulnerability.

At least three functions perform this vulnerable flow: tools.parse_response, helper.get.visible_emails_post, and helper.get.email_data_post.

Details

<>

CVSS Scores

version 3.1