Read the docs
TI-2020-06163 Aliases CVE-2020-7642GHSA-hg2p-2cvq-4ppv

Cross-site scripting in lazysizes

Priority LOW 26CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.

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.

Why it matters now

EPSS 0.00889 59th percentileScored 2026-11-07
Fix Fixed lazysizes (npm): 5.2.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—lazysizesAll versions including 5.2.0—No fix listedCNA
—lazysizes (npm)before 5.2.15.2.1Patch availableGHSA-hg2p-2cvq-4ppv
  • lazysizes Vendor— Affected All versions including 5.2.0 Fixed in — No fix listed CNA
  • lazysizes (npm) Vendor— Affected before 5.2.1 Fixed in 5.2.1 Patch available GHSA-hg2p-2cvq-4ppv

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:lazysizes_project:lazysizes:*:*:*:*:*:*:*:*up to 5.2.0VulnerableLazysizes Project
  • cpe:2.3:a:lazysizes_project:lazysizes:*:*:*:*:*:*:*:* Versions up to 5.2.0 Vulnerable ·Lazysizes Project

Remediation

  • Fix · GHSA-hg2p-2cvq-4ppv lazysizes (npm) Fixed in 5.2.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2020-7642
  2. 2026-10-03 Alias added: GHSA-hg2p-2cvq-4ppv

References

Sources