GHSA-9xr8-8hmc-389f Cross-Site Scripting in vant

Not scored Published

Attackers can execute arbitrary JavaScript in victims' browsers via unsanitized text in the Picker component of the vant library.

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-9xr8-8hmc-389f?

GHSA-9xr8-8hmc-389f is a cross-site scripting vulnerability in vant, published on 22 Nov 2019. 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 vant prior to 2.1.8 are vulnerable to Cross-Site Scripting. The text value of the Picker component column is not sanitized, which may allow attackers to execute arbitrary JavaScript in a victim's browser.

Recommendation

Upgrade to version 2.1.8 or later.

Which versions are affected by GHSA-9xr8-8hmc-389f?

2 open source packages ship an affected version, including vant.

PackageAffectedFixed in
vant npmAll versions2.1.8
vant npmAll versions2.1.8

How do I fix GHSA-9xr8-8hmc-389f?

Upgrade vant to 2.1.8 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-9xr8-8hmc-389f being exploited?

There is no known exploitation of GHSA-9xr8-8hmc-389f in the wild and no public exploit code.

Sources

Is GHSA-9xr8-8hmc-389f in your software?

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

Check your SBOMs for free