{"id":"GHSA-hg2p-2cvq-4ppv","revision":"e650e97b0ea74996a661842c88d65db5","records":[{"revision":"e650e97b0ea74996a661842c88d65db5","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-hg2p-2cvq-4ppv","aliases":["CVE-2020-7642","SNYK-JS-LAZYSIZES-567144"],"title":"Cross-site scripting in lazysizes","description":"lazysizes through 5.2.0 allows execution of malicious JavaScript. The following attributes are not sanitized by the video-embed plugin: `data-vimeo`, `data-vimeoparams`, `data-youtube` and `data-ytparams` which can be abused to inject malicious JavaScript.","state":0,"publishedAt":"2021-12-10T20:06:23+00:00","modifiedAt":"2026-07-08T06:49:35.7842318+00:00","affected":[{"ecosystem":"npm","name":"lazysizes","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"5.2.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2020-7642","https://github.com/aFarkas/lazysizes/commit/3720ab8262552d4e063a38d8492f9490a231fd48","https://snyk.io/vuln/SNYK-JS-LAZYSIZES-567144"],"sourceUrl":"https://github.com/advisories/GHSA-hg2p-2cvq-4ppv","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-hg2p-2cvq-4ppv","identifiers":["GHSA-hg2p-2cvq-4ppv","CVE-2020-7642","SNYK-JS-LAZYSIZES-567144"]},"retained":false,"historicalAffected":[]}],"coverage":[]}