# GHSA-r9q4-w3fm-wrm2: Cross-Site Scripting in google-closure-library

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-02T21:21:43.000Z
- Modified: 2021-09-27T21:01:47.000Z
- Weaknesses: CWE-79

## Description

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.


## Recommendation

Upgrade to version 20190301.0.0 or later.

(As written by GitHub Advisory Database.)

## Affected

- google-closure-library (npm): before 20190301.0.0

## References

- <https://github.com/google/closure-library/commit/c79ab48e8e962fee57e68739c00e16b9934c0ffa#commitcomment-33294853> (web)
- <https://github.com/google/closure-library> (package)
- <https://snyk.io/vuln/SNYK-JS-GOOGLECLOSURELIBRARY-174519> (web)
- <https://www.npmjs.com/advisories/878> (web)

## Sources

- GitHub Advisory Database: [GHSA-r9q4-w3fm-wrm2](https://github.com/advisories/GHSA-r9q4-w3fm-wrm2), CC-BY-4.0, modified 2021-09-27

---

Page: https://cve.day/GHSA-r9q4-w3fm-wrm2 · Whole record: https://cve.day/GHSA-r9q4-w3fm-wrm2.json · Rebuilt by cve.day 2026-11-25T22:56:46.444Z
