{"id":"GHSA-hg2p-2cvq-4ppv","summary":"Cross-site scripting in lazysizes","details":"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.","aliases":["CVE-2020-7642","SNYK-JS-LAZYSIZES-567144"],"modified":"2026-07-08T06:49:35.784231806Z","published":"2021-12-10T20:06:23Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-05-25T20:08:07Z","nvd_published_at":"2020-04-22T16:15:00Z","cwe_ids":["CWE-79"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7642"},{"type":"WEB","url":"https://github.com/aFarkas/lazysizes/commit/3720ab8262552d4e063a38d8492f9490a231fd48"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-LAZYSIZES-567144"}],"affected":[{"package":{"name":"lazysizes","ecosystem":"npm","purl":"pkg:npm/lazysizes"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.2.1"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 5.2.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-hg2p-2cvq-4ppv/GHSA-hg2p-2cvq-4ppv.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}