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-2017-16224 Vulnerability in npm package st
CVE-2023-27563 Vulnerability in npm package n8n
CVE-2021-25864 Vulnerability in npm package node-red-contrib-huemagic
CVE-2023-34238 Vulnerability in npm package gatsby-transformer-remark
CVE-2021-31405 Vulnerability in maven package com.vaadin:vaadin-text-field-flow