Find, fix and prevent vulnerabilities in your code.
- Vulnerable module: react-tooltip
- Introduced through: firstname.lastname@example.org
Introduced through: email@example.comRemediation: Upgrade to firstname.lastname@example.org.
react-tooltip is a tooltip package for react.
Affected versions of this package are vulnerable to Cross-site Scripting (XSS).
< can be coded as
> can be coded as
> in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses
> as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.
Types of attacks
There are a few methods by which XSS can be manipulated:
The following environments are susceptible to an XSS attack:
- Web servers
- Application servers
- Web application environments
How to prevent
This section describes the top best practices designed to specifically protect your code:
- Convert special characters such as
>and spaces to their respective HTML or URL encoded equivalents.
- Give users the option to disable client-side scripts.
- Redirect invalid requests.
react-tooltip to version 3.8.1 or higher.