
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).
Lightweight local JSON-based database for Node.js projects.
npm install qjson-db
const JSONdb = require("qjson-db");
const db = new JSONdb("./data.json");
db.set("username", "Qpla");
console.log(db.get("username")); // "Qpla"
asyncWrite
— Enables asynchronous write to disk (default: false)syncOnWrite
— Writes changes to disk immediately after modification (default: true)jsonSpaces
— Number of spaces to use for JSON formatting (default: 4)Creates a new database instance.
filePath
(string) — Path to the JSON file (extension .json will be added if missing)options
(object, optional):
asyncWrite
(boolean)syncOnWrite
(boolean)jsonSpaces
(number)stringify
(function)parse
(function)init(key, value)
— Initializes a key with a value if it doesn't exist.set(key, value)
— Sets or updates a key with a value.get(key)
— Retrieves the value by key.has(key)
— Checks if a key exists.delete(key)
— Deletes a key. Returns true if deleted, undefined if not found.deleteAll()
— Deletes all keys.sync()
— Writes current storage to disk.JSON([storage])
— Gets a clone of the storage or replaces storage if an object is passed.MIT
Made with ❤️
FAQs
Lightweight local JSON-based database for Node.js projects.
The npm package qjson-db receives a total of 25 weekly downloads. As such, qjson-db popularity was classified as not popular.
We found that qjson-db 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.