GHSA-c7pp-g2v2-2766

Suggest an improvement
Source
https://github.com/advisories/GHSA-c7pp-g2v2-2766
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-c7pp-g2v2-2766/GHSA-c7pp-g2v2-2766.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-c7pp-g2v2-2766
Aliases
  • CVE-2016-1000228
Published
2020-09-01T15:32:04Z
Modified
2023-11-08T03:58:07Z
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.

Database specific
{
    "cwe_ids": [
        "CWE-79"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2020-08-31T18:11:40Z",
    "nvd_published_at": null,
    "severity": "HIGH"
}
References

Affected packages

npm / gmail-js

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.6.5

Database specific

last_known_affected_version_range
"<= 0.6.4"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-c7pp-g2v2-2766/GHSA-c7pp-g2v2-2766.json"