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

- Severity: High 9.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-11-22T13:45:33.000Z
- Modified: 2021-08-18T22:47:15.000Z
- Weaknesses: CWE-79

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

(As written by GitHub Advisory Database.)

## Affected

- vant (npm): before 2.1.8

## References

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

## Sources

- GitHub Advisory Database: [GHSA-9xr8-8hmc-389f](https://github.com/advisories/GHSA-9xr8-8hmc-389f), CC-BY-4.0, modified 2021-08-18

---

Page: https://cve.day/GHSA-9xr8-8hmc-389f · Whole record: https://cve.day/GHSA-9xr8-8hmc-389f.json · Rebuilt by cve.day 2026-11-25T22:56:45.000Z
