
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.
A text based key-value database for Node and Electron.
npm install cupdb
const cup = require('cupdb')
const db = cup('data.db')
// set
await db.setItem('a', 123)
await db.setItem('b', 'BBB')
await db.setItem('c', ['a', 'b', 'c'])
await db.setItem('d', {x: 100, y: 200})
// get
await db.getItem('a') // 123
await db.getItem('b') // BBB
(await db.getItem('c')).join(',') // a,b,c
(await db.getItem('d')).x // 100
// close
await db.close()
cup(file_path)
Return an instance of CupDB, the data will be saved to file_path.
db.setItem(key, value)
Set item with key and value.
db.getItem(key)
Get item with key, undefined will be returned if not found.
db.getItems(keys)
Get items with keys, the returned value is an array.
db.getItems(['k1', 'k2', 'k3']) // resule: [v1, v2, v3]
db.getAll()
Get all items, the returned value is an array.
db.getKeys()
Get all keys of items.
db.remove(key)
Remove the item with key.
db.remove('abc')
// or remove severail items in one command
db.remove(['abc', 'd2', 'd3', 'd4'])
db.find(filter)
Find items by filter, the filter is a function, the returned value is an array.
db.find((key, value) => {
return /^my_/.test(key) && typeof value === 'string'
})
db.dump()
Organize and persist data to the hard disk.
db.close()
Close current db, the db.dump() method will be called by db.close().
MIT.
FAQs
a text based key-value database for node.js
We found that cupdb 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.