
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).
commutable
Advanced tools
/kəˈmyo͞otəbəl/
- (of a place or journey) allowing regular commuting to and from work.
- capable of being exchanged or converted.
commutable
is a library for Jupyter Notebook operations, helping to enable
history stored as a series of immutable notebooks.
Credits to Tom MacWright for the outline.
npm install --save commutable
> const uuid = require('uuid').v4
undefined
> const commutable = require('.')
undefined
> nb = commutable.emptyNotebook
Map { "cellOrder": List [], "nbformat": 4, "nbformat_minor": 0, "cellMap": Map {} }
> cellID = uuid()
'd50dbdd5-1af0-4c8d-90fb-ae9ed9ff6c9b'
> nb2 = commutable.appendCell(nb, commutable.emptyCodeCell, cellID)
> nb2.toJS()
{ cellOrder: [ 'd50dbdd5-1af0-4c8d-90fb-ae9ed9ff6c9b' ],
nbformat: 4,
nbformat_minor: 0,
cellMap:
{ 'd50dbdd5-1af0-4c8d-90fb-ae9ed9ff6c9b':
{ cell_type: 'code',
execution_count: null,
metadata: [Object],
source: '',
outputs: [] } } }
> nb3 = commutable.appendCell(nb2,
... commutable.emptyCodeCell.set('source', 'import random\nrandom.random()'), uuid())
> nb3.toJS()
{ cellOrder:
[ 'd50dbdd5-1af0-4c8d-90fb-ae9ed9ff6c9b',
'8d40321c-87c0-4d86-900c-2174f6920969' ],
nbformat: 4,
nbformat_minor: 0,
cellMap:
{ 'd50dbdd5-1af0-4c8d-90fb-ae9ed9ff6c9b':
{ cell_type: 'code',
execution_count: null,
metadata: [Object],
source: '',
outputs: [] },
'8d40321c-87c0-4d86-900c-2174f6920969':
{ cell_type: 'code',
execution_count: null,
metadata: [Object],
source: 'import random\nrandom.random()',
outputs: [] } } }
FAQs
Immutable notebook model and operations
The npm package commutable receives a total of 1 weekly downloads. As such, commutable popularity was classified as not popular.
We found that commutable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.