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-23509 Vulnerability in npm package json-ptr
CVE-2021-23387 Vulnerability in npm package trailing-slash
CVE-2020-5529 Vulnerability in maven package net.sourceforge.htmlunit:htmlunit
CVE-2022-24898 Vulnerability in maven package org.xwiki.commons:xwiki-commons-xml
CVE-2023-1108 Vulnerability in maven package io.undertow:undertow-core