CVE-2020-7642 json
Cross-site scripting in lazysizes
published 2020-04-22 6 y ago modified 2026-07-08 4 mo ago also GHSA-hg2p-2cvq-4ppv , EUVD-2021-2530
- cvss
- 5.4
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 59%
- public exploits
- 0
- none known
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.
Patch / fix
Exploit prediction
0.89% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-JS-LAZYSIZES-567144 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | lazysizes | <5.2.1 |
5.2.1 |
Affected products
- n/a lazysizes
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/aFarkas/lazysizes/commit/3720ab8262552d4e063a38d8492f9490a231fd48
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-LAZYSIZES-567144
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-7642
advisory
Sources
- CVE List CVE-2020-7642
- GitHub Advisory GHSA-hg2p-2cvq-4ppv
- NVD CVE-2020-7642
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.