# GHSA-9XR8-8HMC-389F: Cross-Site Scripting in vant

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2019-11-22
- Modified: 2021-08-18

## Affected versions

- vant (npm): fixed in 2.1.8

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

## References

- https://github.com/youzan/vant/issues/4270
- https://github.com/youzan/vant/pull/4278/commits/d777b78c7dc2c904f474d057ea88449cfe2ca13a
- https://snyk.io/vuln/SNYK-JS-VANT-460461
- https://www.npmjs.com/advisories/1157

Page: https://cve.now/GHSA-9XR8-8HMC-389F

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
