
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
JSON shared object database
node-jsondb is a shared object database which can traverse an object structure, read properties, change properties, and handle record locks (transactions) and subscriptions.
When used in conjunction with node-jsondb-srv, it acts as a database server which accepts socket connections via node-jsondb-client.
npm install node-jsdb
or
git clone https://github.com/mcmlxxix/node-jsondb.git
you can also add https://github.com/mcmlxxix/node-jsondb.git as a dependency to your project's package.json file
NOTE: to use the full socket service, which already has this library as a dependent, see node-jsondb-srv and/or node-jsondb-client for installation instructions.
jPath queries:
path/to/object[property==value]
path/object
path/to/object[property > 0 && property < 10]
path/to/array(index)
etc..
with transaction mode enabled for a given database, any changes to the database must be preceded by a "write lock" on the affected records, and any locks or writes that fail during the transaction will cause the transaction to fail entirely, and the data will remain unchanged.
with "full" lock mode enabled, any changes to the database must be preceded by a "write lock," and no changes will be allowed anywhere in the database until it is unlocked.
you can also throw caution to the wind, be a wild and crazy guy, and just let any client make any changes they want without locking. This is most useful in chat room databases and other applications where you are more interested in distributing subscription updates than maintaining data integrity.
clients may "subscribe" to a particular record location, and those clients will receive a packet containing the latest copy of the data stored at that location (or it will be passed to a callback) any time another client makes a change affecting that record.
databases can be saved to file (in JSON format) and loaded from file (in JSON format)
request={
id: <client id>,
db: <database name>,
oper: <database operation>,
data: <see below>
};
oper = READ
data = [
{ path:"path/to/data" },
...
];
oper = WRITE
data = [
{ path:"path/to/data", key:"child_property", value:"value_to_be_written" },
...
];
oper = UN/LOCK
data = [
{ path: "path/to/data", lock: <see lock types> },
...
];
oper = UN/SUBSCRIBE
data = [
{ path: "path/to/data" },
...
];
LOCK TYPES
read = "r"
write = "w"
append = "a"
db.load(fileName);
db.save(fileName);
db.read(request,callback);
db.write(request,callback);
db.lock(request,callback);
db.unlock(request,callback);
db.subscribe(request,callback);
db.unsubscribe(request,callback);
db.settings.locking = "transaction" | "full" | null
db.settings.maxconnections = num
FAQs
Shared-object database w/jPath, locking, subscriptions
We found that node-jsdb 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.