
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 middleware that will degrade your express server's performance. For development purposes only.
A middleware that will degrade your express server's performance.
Developers often forget to account for API issues when building applications. Sometimes there might be network issues, sometimes the server might be unreachable for some reason. This middleware will help you build applications that are resilient to such situations by forcing you to handle them in development.
npm install bad-server
import { badServer } from "bad-server";
app.use(badServer());
router.get("/api", badServer(), (req, res, next) => res.send("Hello World"));
badServer accepts a single options parameter that you can use to configure how the middleware should work. The default options are used if no options are specified.
| Option | Default | Description |
|---|---|---|
| delay | - | Fixed amount of delay for the response in milliseconds, takes precedence over maxDelay |
| maxDelay | 250 | Variant amount of delay for the response in milliseconds |
| failRate | 0.1 (10%) | A number between 0 and 1 expressing the likelyhood of rejecting a request with a 500 error |
| httpStatus | - | Causes the request to resolve with the specified HTTP status code and response |
| response | - | Response body used with httpStatus |
badServer({ delay: 3000 });
badServer({ maxDelay: 1000 });
badServer({ failRate: 0.5 });
badServer({ httpStatus: 401, response: "Invalid Credentials" });
FAQs
A middleware that will degrade your express server's performance. For development purposes only.
We found that bad-server 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.