toastr@2.1.4 vulnerabilities

ToastrJS is a JavaScript library for Gnome / Growl type non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.

Direct Vulnerabilities

Known vulnerabilities in the toastr package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Cross-site Scripting (XSS)

toastr is a Javascript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) due to the missing sanitization of message and title which are not regarded as plain text by default.

Note: The fix is not by default. As the documentation of the package mentions it; In case you want to escape HTML characters in title and message set toastr.options.escapeHtml = true.

How to fix Cross-site Scripting (XSS)?

There is no fixed version for toastr.

>=0.0.0