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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | lazysizes | All versions including 5.2.0 | — | No fix listed | CNA |
| — | lazysizes (npm) | before 5.2.1 | 5.2.1 | Patch available | GHSA-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
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:lazysizes_project:lazysizes:*:*:*:*:*:*:*:* | up to 5.2.0 | Vulnerable | Lazysizes 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
- 2026-10-02 Threatist record created from CVE-2020-7642
- 2026-10-03 Alias added: GHSA-hg2p-2cvq-4ppv
References
Sources
- CVE-2020-7642 · CVE Program
- CVE-2020-7642 · NVD
- FIRST EPSS
- GHSA-hg2p-2cvq-4ppv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences