
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).
sqlite3-trans
Advanced tools
Proper transaction support for node-sqlite3.
Wraps node-sqlite3 database instances to provide proper transaction support — specifically when utilizing async operations. This module is a more modern port of the no longer maintained sqlite3-transactions.
Differences
Considering the following:
db.serialize( () => {
db.exec('BEGIN;');
// ...
fetchAndInsert(db, () => {
db.exec('COMMIT;');
});
});
We just created ourselves a bug! Other database operations in the code may try to do I/O with our DB while in the transaction including an attempt to create another transaction resulting in SQLITE_ERROR: cannot start a transaction within a transaction
:poop:.
yarn install node-sqlite3
yarn install sqlite3-trans
const sqlite3 = require('sqlite3');
const sqlite3Trans = require('sqlite3-trans');
const db = sqlite3Trans.wrap(new sqlite3.Database('lmftfy.db'));
FAQs
Proper transaction support for node-sqlite3
We found that sqlite3-trans demonstrated a not healthy version release cadence and project activity because the last version was released 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
/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.