Advisory

GHSA-hg2p-2cvq-4ppv

Also known as: CVE-2020-7642, SNYK-JS-LAZYSIZES-567144

Summary

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-12-10 20:06 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

lazysizes

npm · All systems

Affected

  • introduced 0, fixed 5.2.1 (semver)

Fixed versions

5.2.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences