Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade org.mvnpm:sweetalert2 to version 11.26.23 or higher.
org.mvnpm:sweetalert2 is an accessible (WAI-ARIA) replacement for JavaScript's popup boxes, supported fork of sweetalert
Affected versions of this package are vulnerable to Undesired Behavior as it displays pop-up messages that affect Russian users when visiting Russian sites.
if (navigator.language === 'ru' && location.host.match(/\.(ru|su|xn--p1ai)$/)) {
const noWar = document.createElement('div')
noWar.className = swalClasses['no-war']
setInnerHtml(
noWar,
`<a href="https://www.youtube.com/watch?v=${message.youtubeId}" target="_blank">${message.text}</a>`
)
container.appendChild(noWar)
container.style.paddingTop = '4em'