
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.
In case you want to simplify the apis and create instances
// Import the Api
import Api from 'allapis'
// Create Api object
const pokeApi = Api('https://pokeapi.co/api/v2/') // eg. pokeapi
// Its ready to use
const ditto = await pokeApi.pokemon.ditto.get().then(r => r.json())
console.log(ditto)
// you can save routes
const berries = pokeApi.berry
const cheri = berries['1'].get().then(r => r.json())
console.log(cheri)
// predenfine fetch options
const discordApi = Api({
url: 'https://discord.com/api/v10',
headers: {
Authorization: `Bot ${process.env.DISCORD_TOKEN}`,
'Content-Type': 'application/json'
}
})
const channel = discordApi.channels['885674115615301643']
// use url query like a string
const messages1 = await channel.messages.get('limit=20').then(r => r.json())
// or like a object
const messages2 = await channel.messages
.get({
query: {
limit: 50,
around: messageId
}
})
.then(r => r.json())
// use post, delete, put, patch methods too
channel.messages
.post({
body: JSON.stringify({
content: 'hello!!'
})
})
.catch(console.error)
You need to have Node ^18
Or have Node ^17.5 and run your program with the --experimental-fetch flag
Or have Node ^16.15 and run your program with the --experimental-fetch flag
Or if you use another version of Node you should install node fetch with npm i node-fetch
FAQs
In case you want to simplify the apis and create instances
We found that allapis 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.