{"id":"GHSA-w4vp-3mq7-7v82","aliases":[],"status":"published","title":"Cross-Site Scripting in lazysizes","description":"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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2020-09-03T15:49:48Z","modified":"2023-01-09T05:04:26Z","fixes":[{"ecosystem":"npm","package":"lazysizes","fixed_in":["5.2.1-rc1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"lazysizes","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"5.2.1-rc0"},{"fixed":"5.2.1-rc1"}]}]},{"source":"osv","ecosystem":"npm","package":"lazysizes","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.2.1-rc1"}]}]}],"references":[{"url":"https://github.com/aFarkas/lazysizes/issues/764","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1493","tags":["web"]},{"url":"https://github.com/advisories/GHSA-w4vp-3mq7-7v82"}],"sources":{"ghsa":[{"id":"GHSA-w4vp-3mq7-7v82","title":"Cross-Site Scripting in lazysizes","description":"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.","status":"published","published":"2020-09-03T15:49:48Z","modified":"2023-01-09T05:04:26Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:10.502376Z"}],"osv":[{"id":"GHSA-w4vp-3mq7-7v82","title":"Cross-Site Scripting in lazysizes","description":"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.","status":"published","published":"2020-09-03T15:49:48Z","modified":"2020-08-31T19:01:17Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:58.04805Z"}]}}
