{"id":"GHSA-w4vp-3mq7-7v82","aliases":["GHSA-w4vp-3mq7-7v82"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in lazysizes","summary":"Versions of `lazysizes` prior to 5.2.1-rc1 are vulnerable to Cross-Site Scripting.  The `video-embed` plugin fails to sanitize the following attributes: data-vimeo, `data-vimeoparams`, `data-youtube` and `data-ytparams`. This allows attackers to execute arbitrary JavaScript in a victim's browser if the attacker has control over the vulnerable attributes.\n\n\n## Recommendation\n\nUpgrade to version 5.2.1-rc1 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Versions of `lazysizes` prior to 5.2.1-rc1 are vulnerable to Cross-Site Scripting.  The `video-embed` plugin fails to sanitize the following attributes: data-vimeo, `data-vimeoparams`, `data-youtube` and `data-ytparams`. This allows attackers to execute arbitrary JavaScript in a victim's browser if the attacker has control over the vulnerable attributes.\n\n\n## Recommendation\n\nUpgrade to version 5.2.1-rc1 or later.","format":"markdown","source":"ghsa"}],"published":"2020-09-03T15:49:48.000Z","modified":"2020-08-31T19:01:17.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.2.1-rc1"}],"ecosystem":"npm","package":"lazysizes","purl":"pkg:npm/lazysizes","source":"ghsa"}],"references":[{"url":"https://github.com/aFarkas/lazysizes/issues/764","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1493","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w4vp-3mq7-7v82","url":"https://github.com/advisories/GHSA-w4vp-3mq7-7v82","licence":"CC-BY-4.0","modified":"2020-08-31T19:01:17.000Z"}],"updatedAt":"2026-11-25T22:56:46.770Z"}