{"id":"GHSA-9xr8-8hmc-389f","aliases":["GHSA-9xr8-8hmc-389f"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in vant","summary":"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.\n\n\n## Recommendation\n\nUpgrade to version 2.1.8 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.\n\n\n## Recommendation\n\nUpgrade to version 2.1.8 or later.","format":"markdown","source":"ghsa"}],"published":"2019-11-22T13:45:33.000Z","modified":"2021-08-18T22:47:15.000Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.8"}],"ecosystem":"npm","package":"vant","purl":"pkg:npm/vant","source":"ghsa"}],"references":[{"url":"https://github.com/youzan/vant/issues/4270","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/youzan/vant/pull/4278/commits/d777b78c7dc2c904f474d057ea88449cfe2ca13a","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JS-VANT-460461","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1157","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9xr8-8hmc-389f","url":"https://github.com/advisories/GHSA-9xr8-8hmc-389f","licence":"CC-BY-4.0","modified":"2021-08-18T22:47:15.000Z"}],"updatedAt":"2026-11-25T22:56:45.000Z"}