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

Not scored Published

Attackers can execute arbitrary JavaScript via Mutation XSS in google-closure-library, requiring user interaction to trigger the vulnerability.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-r9q4-w3fm-wrm2?

GHSA-r9q4-w3fm-wrm2 is a cross-site scripting vulnerability in google-closure-library, published on 2 Sep 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Which versions are affected by GHSA-r9q4-w3fm-wrm2?

2 open source packages ship an affected version, including google-closure-library.

PackageAffectedFixed in
google-closure-library npmAll versions20190301.0.0
google-closure-library npmAll versions20190301.0.0

How do I fix GHSA-r9q4-w3fm-wrm2?

Upgrade google-closure-library to 20190301.0.0 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is GHSA-r9q4-w3fm-wrm2 being exploited?

There is no known exploitation of GHSA-r9q4-w3fm-wrm2 in the wild and no public exploit code.

Sources

Is GHSA-r9q4-w3fm-wrm2 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free