
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
cordova-plugin-native-fallback
Advanced tools
A Cordova plugin that provides a native fallback for network errors.
A Cordova plugin that provides a native UI fallback when your application fails to load its web content due to a network error.
This plugin automatically detects when the Cordova WebView cannot reach a remote URL and displays a native alert dialog, prompting the user to retry the connection. This prevents users from seeing a blank or broken page and provides a much cleaner user experience.
You can add this plugin to your Cordova project from NPM (once published) or directly from a Git repository.
# Install from NPM (replace with your actual plugin name if different)
cordova plugin add cordova-plugin-native-fallback
# Or, install directly from a Git repository
cordova plugin add <your-git-repository-url>
The plugin works automatically out of the box. Once installed, it hooks into the native WebView's lifecycle on both Android and iOS.
This plugin is designed to be zero-configuration. Simply install it, and it will handle network errors automatically.
For advanced scenarios where your application has its own logic for detecting content loading failures, you can manually trigger the native error dialog from your JavaScript code.
cordova.plugins.nativeFallback.triggerErrorFallback(
function() { console.log("Fallback success"); },
function() { console.log("Fallback error"); }
);
To ensure the plugin works correctly, you may need to configure the retry URL. By default, it points to a placeholder.
To customize this, you will need to edit the source files directly:
src/android/NativeFallback.javasrc/ios/NativeFallback.mIn both files, find the line containing https://your.remote.url and replace it with your application's primary entry point URL.
FAQs
A Cordova plugin that provides a native fallback for network errors.
We found that cordova-plugin-native-fallback demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.