Cross-site Scripting (XSS) The advisory has been revoked - it doesn't affect any version of package select2  (opens in a new tab)


Do your applications use this vulnerable package?

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 applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDnpm:select2:20130108
  • published13 Mar 2017
  • disclosed7 Jan 2013
  • creditJelte Fennema

Introduced: 7 Jan 2013

CVE NOT AVAILABLE CWE-79  (opens in a new tab)

How to fix?

Upgrade select2 to version 3.3.0 or higher.

Overview

select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results. Affected versions of the package are vulnerable to Cross-site Scripting (XSS). The escapeMarkup function escaped only &, and not html tags, quotes or slashes.

Details

<>

You can read more about Cross-site Scripting (XSS) on our blog.