ADVISORIES

GitHub Advisory Database

GHSA-hg2p-2cvq-4ppv

Cross-site scripting in lazysizes

Details

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

EcosystemPackageAffected versions
npmlazysizes
All versions before 5.2.1 (fixed in 5.2.1)

References