{"id":"CVE-2020-7642","aliases":["CVE-2020-7642","GHSA-hg2p-2cvq-4ppv","SNYK-JS-LAZYSIZES-567144"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site scripting in lazysizes","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"lazysizes versiones hasta la versión 5.2.0, permite una ejecución de JavaScript malicioso. Los siguientes atributos no son saneados por el plugin video-embed: data-vimeo, data-vimeoparams, data-youtube y data-ytparams que pueden ser utilizados para inyectar JavaScript malicioso.","source":"nvd"}],"published":"2020-04-22T15:13:51.000Z","modified":"2026-07-08T06:49:35.784Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"All versions including 5.2.0","status":"affected"}],"product":"lazysizes","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.2.1"}],"ecosystem":"npm","package":"lazysizes","purl":"pkg:npm/lazysizes","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"5.2.0"}],"vendor":"lazysizes_project","product":"lazysizes","cpe":"cpe:2.3:a:lazysizes_project:lazysizes:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-LAZYSIZES-567144","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/aFarkas/lazysizes/commit/3720ab8262552d4e063a38d8492f9490a231fd48","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7642","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-7642","url":"https://www.cve.org/CVERecord?id=CVE-2020-7642","licence":"CVE Terms of Use","modified":"2024-08-04T09:33:19.989Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hg2p-2cvq-4ppv","url":"https://github.com/advisories/GHSA-hg2p-2cvq-4ppv","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:35.784Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-7642","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7642","licence":"Public domain","modified":"2026-06-17T03:25:10.107Z"}],"updatedAt":"2026-11-25T22:57:52.148Z","epss":{"score":0.00889,"percentile":0.60403,"date":"2026-12-01T12:00:22.000Z"}}