
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).
spawnteract
Advanced tools
Spawn yourself a Jupyter kernel backend.
npm install --save spawnteract
const spawnteract = require('spawnteract')
spawnteract.launch('python3').then(kernel => {
// Returns
// kernel.spawn <-- The running process, from child_process.spawn(...)
// kernel.connectionFile <-- Connection file path
// kernel.config <-- Connection information from the file
// Print the ip address and port for the shell channel
console.log(kernel.config.ip + ':' + kernel.config.shell_port);
})
spawnteract
will automatically delete the connection file after the kernel
process exits or errors out.
To disable this feature, set cleanupConnectionFile
to false
in the spawnOptions
:
launch(kernelName, { cleanupConnectionFile: false });
You'll should close kernel.spawn
when a user shuts down the kernel. If you disabled automatic cleanup, you will need to delete kernel.connectionFile
from disk when finished:
function cleanup(kernel) {
kernel.spawn.kill();
// Only do this second part if you opted out of automatic cleanup:
fs.unlink(kernel.connectionFile);
}
For more info, see our changelog or open an issue with questions
You will probably end up wanting to use this with enchannel-zmq-backend.
FAQs
Proving out an API for spawning Jupyter kernels
The npm package spawnteract receives a total of 17 weekly downloads. As such, spawnteract popularity was classified as not popular.
We found that spawnteract demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 18 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.