Skip to content
OpenAdvisories
Medium · 5.4 CVE-2020-7642 EUVD-2021-2530GHSA-hg2p-2cvq-4ppvSNYK-JS-LAZYSIZES-567144

Cross-site scripting in lazysizes

Published Apr 22, 2020 · Updated Aug 4, 2024 · Assigned by snyk

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 products

VendorProductAffectedFixed
— lazysizes All versions including 5.2.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm lazysizes < 5.2.1 5.2.1 GHSA-hg2p-2cvq-4ppv

References