You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The following attributes are not sanitized by the video-embed plugin: data-vimeo, data-vimeoparams, data-youtube and data-ytparams which may lead to XSS vulnerability.
Affected source code
The following lines contain the vulnerability:
What is the expected behavior
No XSS vulnerability.
What happened instead alert(1) popup was shown, so the code embedded into the data-ytparams attribute ran.
Similar issues
This was a somewhat similar issue in jQuery UI which was handled as a security vulnerability and also got a CVE: jquery/api.jqueryui.com#281
In what environment (browser/device etc.) does this bug happen/not happen:
Affects all environments, but tested in Chrome 80.0.3987.132 (Official Build) (64-bit) on Windows 10
The text was updated successfully, but these errors were encountered:
Describe the bug
The following attributes are not sanitized by the
video-embed
plugin:data-vimeo
,data-vimeoparams
,data-youtube
anddata-ytparams
which may lead to XSS vulnerability.Affected source code
The following lines contain the vulnerability:
lazysizes/plugins/video-embed/ls.video-embed.js
Line 73 in a2f37ec
lazysizes/plugins/video-embed/ls.video-embed.js
Line 98 in a2f37ec
To Reproduce
Open the following file and click on the
play
button:What is the expected behavior
No XSS vulnerability.
What happened instead
alert(1)
popup was shown, so the code embedded into thedata-ytparams
attribute ran.Similar issues
This was a somewhat similar issue in jQuery UI which was handled as a security vulnerability and also got a CVE: jquery/api.jqueryui.com#281
In what environment (browser/device etc.) does this bug happen/not happen:
Affects all environments, but tested in
Chrome 80.0.3987.132 (Official Build) (64-bit)
onWindows 10
The text was updated successfully, but these errors were encountered: