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://snyk.io/vuln/SNYK-JS-LAZYSIZES-567144
https://github.com/aFarkas/lazysizes/commit/3720ab8262552d4e063a38d8492f9490a231fd48
Related Vulnerabilities
CVE-2018-16330 Vulnerability in maven package org.webjars.bower:editor.md
CVE-2021-4040 Vulnerability in maven package org.apache.activemq:artemis-core-client
CVE-2020-15138 Vulnerability in maven package org.webjars.npm:prismjs
CVE-2020-7753 Vulnerability in maven package org.webjars.npm:trim
CVE-2022-36912 Vulnerability in maven package org.jenkins-ci.plugins:openstack-heat