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-2022-25878 Vulnerability in npm package protobufjs
CVE-2023-22461 Vulnerability in npm package @mattkrick/sanitize-svg
CVE-2022-23913 Vulnerability in maven package org.apache.activemq:artemis-commons
CVE-2020-28455 Vulnerability in npm package markdown-it-toc
CVE-2022-31367 Vulnerability in npm package strapi-plugin-content-manager