CVE-2020-7642Lazysizes Project Lazysizes
Medium 5.4
Follow: this CVE · Lazysizes Project · Lazysizes Project Lazysizes We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 3.1
- 5.4
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 60
- Auth required
- Yes
- Published
- Apr 22, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Lazysizes.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | lazysizes |
< 5.2.1 |
5.2.1 |
npm install lazysizes@5.2.1 |
Per OSV / GitHub Advisories (GHSA-hg2p-2cvq-4ppv). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| lazysizes_project | lazysizes | ≤ 5.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- snyk.io Exploit Third Party Advisory