Vulnerability · Published Apr 22, 2020 · Assigned by snyk
CVE-2020-7642
Medium 5.4
In plain English
A medium-severity security flaw in lazysizes. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.4Medium
Exploit odds (30 days)0.9%top 40.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | lazysizes | 5.2.1 | GHSA-hg2p-2cvq-4ppv |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-JS-LAZYSIZES-567144 x_refsource_MISC
- https://github.com/aFarkas/lazysizes/commit/3720ab8262552d4e063a38d8492f9490a231fd48 x_refsource_MISC