react-native-webview 13.8.0 through 17.1.0 Code Injection via injectedJavaScriptObject
- State
- Published
- Severity
- 2.3 Low
- Published
- Nov 17, 2026
- Updated
- Nov 17, 2026
- Reserved
- Nov 17, 2026
Description
react-native-webview 13.8.0 through 17.1.0 contains a code injection vulnerability that allows attackers to execute JavaScript by placing unescaped backticks or ${} sequences in injectedJavaScriptObject string values. Attackers who control values like profile fields or API responses can break out of the template literal to access the page DOM, non-HttpOnly cookies, and the ReactNativeWebView message bridge.
| Product | Versions |
|---|---|
| react-native-webview react-native-webview | 13.8.0 through 17.1.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 2.3 Low | VulnCheck | |
| 3.1 | 4.7 Medium | VulnCheck |
Weaknesses
- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
- https://github.com/react-native-webview/react-native-webview/issues/4072Issue Tracker
- https://github.com/react-native-webview/react-native-webview/blob/v17.1.0/packages/react-native-webview/android/src/main/java/com/reactnativecommunity/webview/RNCWebView.java#L347-L355Technical Details
- https://github.com/react-native-webview/react-native-webview/blob/v17.1.0/packages/react-native-webview/apple/RNCWebViewImpl.m#L1682-L1695Technical Details
- VulnCheck Advisory: react-native-webview 13.8.0 through 17.1.0 Code Injection via injectedJavaScriptObjectThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.