
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
react-native-ssl-websocket
Advanced tools
A WebSocket library for React Native (Android & iOS) with SSL Pinning support.
npm install react-native-ssl-websocket
or
yarn add react-native-ssl-websocket
import { SSLWebSocket } from 'react-native-ssl-websocket';
const ws = new SSLWebSocket(
'wss://your-server.com:port',
'BASE64_PUBLIC_KEY' // Obtain this using the get_public_key.sh script; use the SHA256(SPKI) Base64 at depth=0
);
ws.onopen = () => {
console.log('WebSocket opened');
ws.send({ hello: 'world' });
};
ws.onmessage = (event) => {
console.log('Received message:', event);
};
ws.onerror = (event) => {
console.error('WebSocket error:', event);
};
ws.onclose = (event) => {
console.log('WebSocket closed:', event);
};
// Connect
ws.connect();
// Close the connection when needed
// ws.close();
scripts/get_public_key.sh
script to obtain the SHA256(SPKI) Base64 of your server certificate (the first base64 line, corresponding to depth=0, i.e., the server/leaf certificate).SSLWebSocket
.See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
SSL Pinning capable Websocket library for React Native
The npm package react-native-ssl-websocket receives a total of 12 weekly downloads. As such, react-native-ssl-websocket popularity was classified as not popular.
We found that react-native-ssl-websocket demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.