CVE-2020-7642 Cross-site scripting in lazysizes
MediumCVSS 5.4
EPSS 0.89%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| lazysizes project lazysizes | <= 5.2.0 | after 5.2.0 | Fixed |
| npm lazysizes(npm) | < 5.2.1; <= 5.2.0 | 5.2.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm lazysizes(npm) | <= 5.2.0 | No fix listed |
| lazysizes project lazysizes | <= 5.2.0 | No fix listed |
| npm lazysizes(npm) | < 5.2.1 | 5.2.1 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- snyk.io exploit third-party-advisory
- github.com