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.
Remediation
References
https://github.com/aFarkas/lazysizes/commit/3720ab8262552d4e063a38d8492f9490a231fd48
https://snyk.io/vuln/SNYK-JS-LAZYSIZES-567144
Related Vulnerabilities
CVE-2021-21368 Vulnerability in maven package org.webjars.npm:msgpack5
CVE-2017-12617 Vulnerability in maven package org.apache.tomcat.embed:tomcat-embed-core
CVE-2018-8088 Vulnerability in maven package org.slf4j:slf4j-ext
CVE-2021-43785 Vulnerability in npm package @joeattardi/emoji-button
CVE-2022-31023 Vulnerability in maven package com.typesafe.play:play_2.12