
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.
NodeJS bindings for BZip2 (libbz2).
This package will compile the BZip2 library from source and link against it, exposing functions for compressing and decompressing data using the BZip2 algorithm in NodeJS.
This package does not work on the web and is designed for use in NodeJS only.
npm install node-bzip2 --save
The package exposes two functions: compress and decompress (and their respective async versions compressAsync and decompressAsync).
Both functions can take a string, Buffer, or typed array as input and return a Buffer containing the compressed or decompressed data.
Additional options such as compression level and buffering behavior can be passed as an optional second argument, explained in the respective functions' JSDocs.
const bzip2 = require('node-bzip2');
// Compress some data
const compressedBytes = bzip2.compress('Hello, world!', { level: 9, buffering: 'auto' });
// Decompress the data
const decompressedBytes = bzip2.decompress(compressedBytes, { small: false });
// Decode the decompressed data as a UTF-8 string
const decompressed = (new TextDecoder('utf8')).decode(decompressedBytes);
console.log(decompressed); // Hello, world!
You can also use the async functions to compress and decompress data asynchronously:
const bzip2 = require('node-bzip2');
// Compress some data
const compressedBytes = await bzip2.compressAsync('Hello, world!', { level: 9, buffering: 'auto' });
// Decompress the data
const decompressedBytes = await bzip2.decompressAsync(compressedBytes, { small: false });
// Decode the decompressed data as a UTF-8 string
const decompressed = (new TextDecoder('utf8')).decode(decompressedBytes);
console.log(decompressed); // Hello, world!
FAQs
NodeJS bindings for BZip2 (libbz2)
We found that node-bzip2 demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.