{"id":"CVE-2020-7642","published":"2020-04-22T15:13:51Z","modified":"2024-08-04T09:33:19Z","title":"lazysizes through 5.2.0 allows execution of malicious JavaScript","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00889,"percentile":0.60204,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-LAZYSIZES-567144","tags":["x_refsource_MISC"]},{"url":"https://github.com/aFarkas/lazysizes/commit/3720ab8262552d4e063a38d8492f9490a231fd48","tags":["x_refsource_MISC"]}],"priority":{"score":12.0,"factors":[{"name":"EPSS percentile","points":12.04}]},"affectedVersions":[{"vendor":"n/a","product":"lazysizes","versions":["All versions including 5.2.0"]}],"affected":[{"ecosystem":"npm","package":"lazysizes","vulnerableRanges":["<5.2.1"],"patched":["5.2.1"],"from":["GHSA-hg2p-2cvq-4ppv"],"provenance":"source"}],"summary":{"text":"The flaw is in lazysizes, a lazy-loading JavaScript library, where the video-embed plugin fails to sanitize the data-vimeo, data-vimeoparams, data-youtube and data-ytparams attributes, affecting versions through 5.2.0. An attacker who can get such attribute values into a page can cause malicious JavaScript to execute.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:03:28Z"},"euvd":{"id":"EUVD-2021-2530","exploited":false,"provenance":"source"}}