Advisory

GHSA-w4vp-3mq7-7v82

Also known as: None

Summary

Cross-Site Scripting in lazysizes

Details

Versions of lazysizes prior to 5.2.1-rc1 are vulnerable to Cross-Site Scripting. The video-embed plugin fails to sanitize the following attributes: data-vimeo, data-vimeoparams, data-youtube and data-ytparams. This allows attackers to execute arbitrary JavaScript in a victim's browser if the attacker has control over the vulnerable attributes.

Recommendation

Upgrade to version 5.2.1-rc1 or later.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-03 15:49 UTC
Modified
2020-08-31 19:01 UTC

Affected packages and fixes

lazysizes

npm · All systems

Affected

  • introduced 0, fixed 5.2.1-rc1 (semver)

Fixed versions

5.2.1-rc1

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