
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).
connect-csvboy
Advanced tools
Express middleware to check user access based on the ressources URIs and HTTP methods.
var csvboy = require('connect-csvboy');
// Add the middleware
app.use(csvboy());
// Consume the request
app.use(function(req, res, next) {
// Pipe the request
req.pipe(req.csvboy);
// Consume the rows
req.csvboy.on('readable', function() {
var row;
while(null !== (row = req.csvboy.read())) {
console.log('New row:', row);
// do whatever you want with the row (ex: insert in a db)
}
});
req.csvboy.on('finish', function() {
res.send(204);
});
// Threat errors
req.csvboy.on('error', function(err) {
req.unpipe(req.csvboy);
next(err);
});
});
Type: Object
The options of the reaccess middleware.
Type: Array
Default: ['text/csv']
Mime type that csvboy should listen for.
Type: Array
Default: ['POST', 'PUT', 'PATCH']
HTTP methods that csvboy should listen for.
Type: Boolean
Default: false
Immediatly pipe the request in the csv parser.
Type: Object
The CSV parser options. See the oh-csv README file.
FAQs
Express/Connect middleware to threat requests with CSV contents
The npm package connect-csvboy receives a total of 34 weekly downloads. As such, connect-csvboy popularity was classified as not popular.
We found that connect-csvboy 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.