Live threats

All CVEs / Lazysizes Project

CVE-2020-7642Lazysizes Project Lazysizes

Medium 5.4

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Lazysizes.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
lazysizes_projectlazysizes≤ 5.2.0

Official sources

References

Links published by the sources. Open them with care.