Vulnerabilities

1 via 1 paths

Dependencies

95

Source

GitHub

Commit

5adf2361

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
Status
  • 1
  • 0
  • 0

low severity

Undesired Behavior

  • Vulnerable module: sweetalert2
  • Introduced through: sweetalert2@11.14.5

Detailed paths

  • Introduced through: casa@rubyforgood/casa#5adf23614c6d397b268c71b9b7065fca1e389b8a sweetalert2@11.14.5

Overview

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.

PoC:

 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'

Remediation

There is no fixed version for sweetalert2.

References