Cross-Site Scripting in lazysizes
High severity
GitHub Reviewed
Published
Sep 3, 2020
to the GitHub Advisory Database
•
Updated Jan 9, 2023
Description
Reviewed
Aug 31, 2020
Published to the GitHub Advisory Database
Sep 3, 2020
Last updated
Jan 9, 2023
Versions of
lazysizes
prior to 5.2.1-rc1 are vulnerable to Cross-Site Scripting. Thevideo-embed
plugin fails to sanitize the following attributes: data-vimeo,data-vimeoparams
,data-youtube
anddata-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.
References