{"id":"CVE-2016-1000228","aliases":["GHSA-c7pp-g2v2-2766"],"status":"published","title":"DOM-based XSS in gmail-js","description":"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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2020-09-01T15:32:04Z","modified":"2023-11-08T03:58:07Z","fixes":[{"ecosystem":"npm","package":"gmail-js","fixed_in":["0.6.5"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"gmail-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.6.4"},{"fixed":"0.6.5"}]}]},{"source":"osv","ecosystem":"npm","package":"gmail-js","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.6.5"}]}]}],"references":[{"url":"https://github.com/KartikTalwar/gmail.js/issues/281","tags":["web"]},{"url":"https://github.com/KartikTalwar/gmail.js/commit/a83436f499f9c01b04280af945a5a81137b6baf1","tags":["web"]},{"url":"https://www.npmjs.com/advisories/125","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-1000228","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-c7pp-g2v2-2766"},{"url":"https://github.com/KartikTalwar/gmail.js","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-c7pp-g2v2-2766","title":"DOM-based XSS in gmail-js","description":"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.","status":"published","published":"2020-09-01T15:32:04Z","modified":"2023-01-09T05:03:49Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:06.884904Z"}],"osv":[{"id":"GHSA-c7pp-g2v2-2766","title":"DOM-based XSS in gmail-js","description":"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.","status":"published","published":"2020-09-01T15:32:04Z","modified":"2023-11-08T03:58:07.661328Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:44.571161Z"}]}}
