
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Zero-dependency SOCKS5 fetch client for Bun, supporting HTTP/HTTPS, custom headers, and chunked encoding.
A lightweight, zero-dependency SOCKS5 proxy client specifically designed for Bun.
While Bun's native fetch supports HTTP proxies, it does not currently support SOCKS5. This library bridges that gap by implementing a custom fetch wrapper that handles SOCKS5 handshakes (RFC 1928) and manually upgrades sockets to TLS for HTTPS requests.
net and tls modules.fetch exactly.bun add bun-socks
Import fetch from the library and use the proxy option in the init object. The proxy connection string must follow the format: socks5://user:pass@host:port.
import { fetch } from "bun-socks";
const response = await fetch("https://api.ipify.org?format=json", {
proxy: "socks5://myuser:mypass@127.0.0.1:1080"
});
const data = await response.json();
console.log(data);
import { fetch } from "bun-socks";
const response = await fetch("https://example.com/api/data", {
method: "POST",
body: JSON.stringify({ key: "value" }),
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer token"
},
proxy: "socks5://user:pass@proxy.server.com:1080"
});
If you omit the proxy option, the library falls back to the native global fetch, so you can use it as a drop-in replacement throughout your application.
// Uses SOCKS5 proxy
await fetch("https://secret-service.com", { proxy: "socks5://..." });
// Uses standard internet connection (native fetch)
await fetch("https://google.com");
fetch(input: string | URL | Request, init?: RequestInit & { proxy?: string }): Promise<Response>A custom fetch function that supports SOCKS5 proxies via the proxy option.
input: The URL or Request object to fetch.init: Optional init object, extended with proxy string for SOCKS5 URL.If no proxy is provided, it falls back to the native globalThis.fetch.
The proxy URL must be a valid SOCKS5 URI:
socks5://127.0.0.1:9050socks5://user:password@proxy.example.com:1080socks5://user:password@[2001:db8::1]:1080MIT
FAQs
Zero-dependency SOCKS5 fetch client for Bun, supporting HTTP/HTTPS, custom headers, and chunked encoding.
We found that bun-socks demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.