Search
Find a vulnerability
Search criteria
ⓘ
Use this form to refine search results.
Full-text search supports keyword queries with ranking and filtering.
You can combine vendor, product, and sources to narrow results.
Enable “Apply ordering” to sort by date instead of relevance.
Related vulnerabilities
GHSA-C7PP-G2V2-2766
Vulnerability from github – Published: 2020-09-01 15:32 – Updated: 2021-09-23 21:31
VLAI
Summary
DOM-based XSS in gmail-js
Details
Affected versions of gmail-js are vulnerable to cross-site scripting in the tools.parse_response, helper.get.visible_emails_post, and helper.get.email_data_post functions, which pass user input directly into the Function constructor.
Recommendation
Update to version 0.6.5 or later.
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c= 0.6.4"
},
"package": {
"ecosystem": "npm",
"name": "gmail-js"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.6.5"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2016-1000228"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2020-08-31T18:11:40Z",
"nvd_published_at": null,
"severity": "HIGH"
},
"details": "Affected versions of `gmail-js` are vulnerable to cross-site scripting in the `tools.parse_response`, `helper.get.visible_emails_post`, and `helper.get.email_data_post` functions, which pass user input directly into the Function constructor.\n\n\n\n## Recommendation\n\nUpdate to version 0.6.5 or later.",
"id": "GHSA-c7pp-g2v2-2766",
"modified": "2021-09-23T21:31:53Z",
"published": "2020-09-01T15:32:04Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2016-1000228"
},
{
"type": "WEB",
"url": "https://github.com/KartikTalwar/gmail.js/issues/281"
},
{
"type": "WEB",
"url": "https://github.com/KartikTalwar/gmail.js/commit/a83436f499f9c01b04280af945a5a81137b6baf1"
},
{
"type": "PACKAGE",
"url": "https://github.com/KartikTalwar/gmail.js"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/125"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "DOM-based XSS in gmail-js"
}
GSD-2016-1000228
Vulnerability from gsd - Updated: 2023-12-13 01:21Details
** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2016-1000228",
"id": "GSD-2016-1000228"
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"aliases": [
"CVE-2016-1000228"
],
"id": "GSD-2016-1000228",
"modified": "2023-12-13T01:21:18.029231Z",
"schema_version": "1.4.0"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2016-1000228",
"STATE": "RESERVED"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided."
}
]
}
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003c0.6.5",
"affected_versions": "All versions before 0.6.5",
"credit": "Gursev Singh Kalra",
"cwe_ids": [
"CWE-1035",
"CWE-937"
],
"date": "2016-07-21",
"description": "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./n/nThis vulnerability is being disclosed before a public patched version is available because the issue was reported in a public Github issue.",
"fixed_versions": [
"0.6.5"
],
"identifier": "CVE-2016-1000228",
"identifiers": [
"CVE-2016-1000228"
],
"not_impacted": "All versions starting from 0.6.5",
"package_slug": "npm/gmail-js",
"pubdate": "2016-07-21",
"solution": "Upgrade to version 0.6.5 or above.",
"title": "DOM-based XSS",
"urls": [
"https://github.com/KartikTalwar/gmail.js/issues/281",
"https://www.owasp.org/index.php/DOM_Based_XSS"
],
"uuid": "429e57d6-78aa-4b1b-b7ed-d72463180a83"
}
]
}
}
}