|1 via 1 paths|
Find, fix and prevent vulnerabilities in your code.
- Vulnerable module: react-native-webview
- Introduced through: email@example.com
Introduced through: firstname.lastname@example.orgRemediation: Upgrade to email@example.com.
react-native-webview is a React Native WebView component for iOS, Android, macOS, and Windows
< 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-native-webview to version 11.0.0 or higher.