Staging Environment: Content and features may be unstable or change without notice.

Extra Mitigation Curation

npm/npm-125

Progress 0 / 0

Advisory Summary

npm/npm-125

DOM-based XSS gmail-js is a client side library for interacting with the Gmail API. Three functions exposed by the Gmail.js API (not the Google Gmail API) are vulnerable to DOM-based cross site scripting https://www.owasp.org/index.php/DOM_Based_XSS (DOMXSS). The three functions are `tools.parse_response`, `helper.get.visible_emails_post`, and `helper.get.email_data_post`. Each one of these functions calls `new Function()` with user data passed as the argument. This vulnerability is being disclosed before a public patched version is available because the issue was reported in a public Github issue.
Mitigation Type Mitigation Data Mitigation Note