
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.
fetch-session
Advanced tools
A simple node-fetch wrapper to include a cookie jar and proxy support. Includes TypeScript typings.
A simple node-fetch wrapper to include a cookie jar and proxy support. Includes TypeScript typings.
The cookie jar does not separate cookies by domain.
SessionReturn: { cookieJar: CookieJarReturn, fetch: FetchFn }){
initialCookie: string;
// headers and proxy will be issued on all requests under this session
headers: Record<string, string>;
proxy: Proxy;
}
addCookies: (cookieString: string, setCookie?: boolean) => CookieJargetCookies: () => stringgetCookieValue: (name: string) => stringurloptions FetchRequestOptions{
rejectOnFailure: boolean; // reject if !res.ok
returnError: boolean; // rejections return null by default, `returnError` will return the error
excludeCookies: boolean; // does not pass cookies into request, still adds any cookies received to the cookie jar
proxy: string | httpsProxyAgent.HttpsProxyAgentOptions;
parse: "json" | "text" | "buffer" | "blob" | "arrayBuffer";
}
import fetchSession from "fetch-session";
// Options all optional
const session = fetchSession({
initialCookie: "lang=en-US",
headers: {
Accept: "application/json",
"Accept-Language": "en-US",
"Content-Type": "application/json",
},
proxy: "https://user:pass@myproxy.com:5401",
});
(async () => {
await session.fetch("https://example.com/endpoint");
// Contains all cookies returned from the fetch, and will be passed into any following request.
console.log(session.cookieJar.getCookies());
})();
FAQs
A simple node-fetch wrapper to include a cookie jar and proxy support. Includes TypeScript typings.
We found that fetch-session 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.