{"id":"GHSA-r9q4-w3fm-wrm2","aliases":["GHSA-r9q4-w3fm-wrm2"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in google-closure-library","summary":"Versions of `google-closure-library` prior to 20190301.0.0 are vulnerable to Cross-Site Scripting. The `safedomtreeprocessor.processToString()` function improperly processed empty elements, which could allow attackers to execute arbitrary JavaScript through Mutation Cross-Site Scripting.\n\n\n## Recommendation\n\nUpgrade to version 20190301.0.0 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Versions of `google-closure-library` prior to 20190301.0.0 are vulnerable to Cross-Site Scripting. The `safedomtreeprocessor.processToString()` function improperly processed empty elements, which could allow attackers to execute arbitrary JavaScript through Mutation Cross-Site Scripting.\n\n\n## Recommendation\n\nUpgrade to version 20190301.0.0 or later.","format":"markdown","source":"ghsa"}],"published":"2020-09-02T21:21:43.000Z","modified":"2021-09-27T21:01:47.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"20190301.0.0"}],"ecosystem":"npm","package":"google-closure-library","purl":"pkg:npm/google-closure-library","source":"ghsa"}],"references":[{"url":"https://github.com/google/closure-library/commit/c79ab48e8e962fee57e68739c00e16b9934c0ffa#commitcomment-33294853","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/google/closure-library","tags":["package"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JS-GOOGLECLOSURELIBRARY-174519","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/878","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r9q4-w3fm-wrm2","url":"https://github.com/advisories/GHSA-r9q4-w3fm-wrm2","licence":"CC-BY-4.0","modified":"2021-09-27T21:01:47.000Z"}],"updatedAt":"2026-11-25T22:56:46.444Z"}