CVE-2020-7642
MEDIUM 5.4CVSS 3.1Cross-site scripting in lazysizes
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.
- Published
- 22 Apr 2020
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-hg2p-2cvq-4ppvSNYK-JS-LAZYSIZES-567144
- Sources
- NVDJSONOSV GHSA-hg2p-2cvq-4ppvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lazysizes_project | lazysizescpe:2.3:a:lazysizes_project:lazysizes:*:*:*:*:*:*:*:* |
<= 5.2.0 | |
| OSV | npm | lazysizes | < 5.2.1 | 5.2.1 |
References
- https://github.com/aFarkas/lazysizes/commit/3720ab8262552d4e063a38d8492f9490a231fd48 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-LAZYSIZES-567144 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7642 · ADVISORY
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 22 Apr 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Dec 2021)