Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency react-native-webview to v11 [security] #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 28, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-native-webview ^7.4.2 -> ^11.0.0 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2020-6506

A universal cross-site scripting (UXSS) vulnerability, CVE-2020-6506 (https://crbug.com/1083819), has been identified in the Android WebView system component, which allows cross-origin iframes to execute arbitrary JavaScript in the top-level document. This vulnerability affects React Native apps which use a react-native-webview that allows navigation to arbitrary URLs, and when that app runs on systems with an Android WebView version prior to 83.0.4103.106.

Pending mitigation

Ensure users update their Android WebView system component via the Google Play Store to 83.0.4103.106 or higher to avoid this UXSS. 'react-native-webview' is working on a mitigation but it could take some time.

References

https://alesandroortiz.com/articles/uxss-android-webview-cve-2020-6506/


Release Notes

react-native-webview/react-native-webview (react-native-webview)

v11.0.0

Compare Source

Features
BREAKING CHANGES
  • android: This release introduces the setSupportMultipleWindows prop for Android. This sets the underlying Android WebView setting setSupportMultipleWindows. This prop defaults to true (previously false), and serves to mitigate the security advisory CVE-2020-6506.

The primary way this new behavior changes existing React Native WebView implementations on Android is that links that open in new tabs/windows (such as <a target="_blank">) will now prompt to open in the system browser, rather than re-using the current WebView.

If this behavior is not desirable, you can set this new prop to false, but be aware that this exposes your app to the security vulnerability listed above. Make sure you have read and understand the whole advisory and relevant links.

iOS & Windows are unaffected.

<WebView
  // ...
  setSupportMultipleWindows={true} // default: true
/>

Thanks to @​mrcoinbase, @​kelset, and @​Titozzz for their work on this.

v10.10.2

Compare Source

Bug Fixes
  • android: Unset mWebChromeClient on WebViewManager rather than WebView (#​1720) (c95c0ea)

v10.10.1

Compare Source

Bug Fixes

v10.10.0

Compare Source

Features
  • windows: JS-WebView messaging bridge & multiple WebViews fixes (#​1617) (b930e25)

v10.9.3

Compare Source

Bug Fixes

v10.9.2

Compare Source

Bug Fixes

v10.9.1

Compare Source

Bug Fixes

v10.9.0

Compare Source

Features

v10.8.3

Compare Source

Bug Fixes

v10.8.2

Compare Source

Bug Fixes

v10.8.1

Compare Source

Bug Fixes
  • iOS: changed the way the top view controller is obtained. (#​1592) (2cb2113)
  • ts: Convert ContentInsetAdjustmentBehavior from an enum back to a string union type (#​1536) (a48c981)

v10.8.0

Compare Source

Features

v10.7.0

Compare Source

Features

v10.6.0

Compare Source

Features

v10.5.0

Compare Source

Features

v10.4.2

Compare Source

Bug Fixes

v10.4.1

Compare Source

Bug Fixes

v10.4.0

Compare Source

Features

v10.3.3

Compare Source

Bug Fixes
  • types: Add missing applicationNameForUserAgent type in WebViewSharedProps (#​1542) (91295e5)

v10.3.2

Compare Source

Bug Fixes

v10.3.1

Compare Source

Bug Fixes

v10.3.0

Compare Source

Features

v10.2.3

Compare Source

Bug Fixes

v10.2.2

Compare Source

Bug Fixes

v10.2.1

Compare Source

Bug Fixes

v10.2.0

Compare Source

Bug Fixes
Features

v10.1.1

Compare Source

Bug Fixes
  • android: Broken build due to conditional import of kotlin (#​1412) (7ab2afb)

v10.1.0

Compare Source

NOTE: use v10.1.1 as this version has an issue in Android

Bug Fixes
Features

v10.0.0

Compare Source

Bug Fixes
BREAKING CHANGES
  • gradle: The Android Gradle plugin is only required when opening the project stand-alone, not when it is included as a dependency. By doing this, the project opens correctly in Android Studio, and it can also be consumed as a native module dependency from an application project without affecting the app project (avoiding unnecessary downloads/conflicts/etc).

Also moved getExtOrDefault to buildScript block to able to use everywhere in the file

This change shouldn't break any apps, but we are marking it as a breaking change in case there are some use cases we've missed.

[skip ci]

v9.4.0

Compare Source

Features

v9.3.0

Compare Source

Features

v9.2.2

Compare Source

Bug Fixes

v9.2.1

Compare Source

Bug Fixes

v9.2.0

Compare Source

Features

v9.1.4

Compare Source

Bug Fixes

v9.1.3

Compare Source

Bug Fixes
  • Windows: Move rnpm-plugin-windows to devDependencies. (#​1266) (d16746c)

v9.1.2

Compare Source

Bug Fixes
  • Android: Ensure each mounted WebView binds their personal onMessage handler (#​1301) (04f9fb2)

v9.1.1

Compare Source

Bug Fixes
  • iOS: injectedJavaScriptBeforeContentLoaded now runs when messaging is not enabled (#​1286) (571fb8d)

v9.1.0

Compare Source

Features
  • Android: Implement direct communication between Android code and JS (#​1203) (c88e380)

v9.0.2

Compare Source

Bug Fixes
  • types: Remove readonly definition in WebViewTypes.ts (#​1272) (3c06d78)

v9.0.1

Compare Source

Bug Fixes

v9.0.0

Compare Source

Features
BREAKING CHANGES
  • iOS: • Props updates to injectedJavaScript are no longer immutable.

v8.2.1

Compare Source

Bug Fixes
  • deps: Update React Native Windows version to ^0.61.0-beta.58 (#​1256) (91064ab)

v8.2.0

Compare Source

Features

v8.1.2

Compare Source

Bug Fixes
  • Android: Don't log the cookie when downloading file. (#​1224) (2470245)

v8.1.1

Compare Source

Bug Fixes
  • Android: Don't show camera options for a file upload when they can not be used (#​1210) (4093682)

v8.1.0

Compare Source

Features

v8.0.6

Compare Source

Bug Fixes

v8.0.5

Compare Source

Bug Fixes
  • Android: Redirected URLs now redirect correctly. (#​991) (acf1ad7)

v8.0.4

Compare Source

Bug Fixes

v8.0.3

Compare Source

Bug Fixes
  • whitelisted origins: Prevent handling of un-whitelisted URLs (0442126)

v8.0.2

Compare Source

Bug Fixes

v8.0.1

Compare Source

Bug Fixes

v8.0.0

Compare Source

Features
BREAKING CHANGES
  • ios: if you use onNavigationStateChange on iOS it will now trigger on # changes to the url.

  • Hook the window.history API on iOS to generate events

The underlying WKWebView doesn't seem to generate any events in response to the window.history API - none of the WKNavigationDelegate methods fire.

Given this limitation, the only way to know when the location changes via this API is to inject Javascript into the page and have it notify the native code directly when any of these functions are called.

The setTimeout call gives up the current tick, allowing the location to change before firing the event.

  • Remove the outdated section about hash changes

Now that this bug is fixed, the workaround is no longer required.

v7.6.0

Compare Source

Bug Fixes
Features

v7.5.2

Compare Source

Bug Fixes

v7.5.1

Compare Source

Bug Fixes
  • android: Fix ClassCastException when doing native things(#​987) (7e68da4)

v7.5.0

Compare Source

Features
  • android: add clearHistory, clearCache and clearFormData (#​450) (4a4f4a2)

v7.4.4

Compare Source

Bug Fixes
  • android: crash problem while loading local html resource (#​1010) (05c286f)

v7.4.3

Compare Source

Bug Fixes

Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants