Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@advance-labs/net-guard

Latest version: v0.3.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: zordhalo
5 Stars
3 Forks
8 Versions
1.4K Downloads
TypeScript Repo language

Scan summary

@advance-labs/net-guard was last scanned on 29 Nov 2026 at version 0.3.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 8 versions; the latest 2 were published within 2 days (28 and 29 Nov 2026).
  • Findings: No rules fired in version 0.3.1.
  • Downloads: 1,380 downloads.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.1 LATEST 29 Nov 2026 No rules fired
0.3.0 28 Nov 2026 No rules fired
0.2.7 15 Nov 2026 No rules fired
0.2.6 14 Nov 2026 Not shown
0.2.5 8 Nov 2026 Not shown

No rules fired in 0.3.1

Findings

Findings for v0.3.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.3.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@advance-labs/net-guard

SSRF-guarded HTTP fetch seam. Closes finding C1 of the Autopilot security review: the existing crawler/backlinks HTTP layer follows redirects with no private-IP guard, so a user-supplied URL can reach 169.254.169.254 (cloud metadata), localhost, or RFC-1918 hosts.

Install

npm install @advance-labs/net-guard

Use it for any untrusted URL

import { safeFetch, createLiveSafeFetchDeps } from '@advance-labs/net-guard';

const deps = createLiveSafeFetchDeps();
const res = await safeFetch('https://prospect.example/', {}, deps);
if (!res.ok) {
  // res.blockedReason: 'scheme-not-allowed' | 'private-address' | 'dns-resolution-failed'
  //                  | 'too-many-redirects' | 'body-too-large' | 'timeout'
}

What it guards (in order)

  1. Scheme allowlist — http: / https: only (rejects file:, gopher:, …).
  2. DNS resolve + private-address rejection — refuses if any resolved IP is loopback, RFC-1918, link-local (incl. the metadata IP), CGNAT, IPv6 ULA/link-local, or an IPv4-mapped private address. Malformed addresses fail closed.
  3. Per-hop redirect re-validation — redirects are manual; the full check re-runs on every target, so a public host can't 302 you to an internal one.
  4. Body + time caps — maxBodyBytes (default 2 MB) and timeoutMs (default 10 s, aborts the request).
  5. Connect-time pinning (DNS rebinding) — createLiveSafeFetchDeps() sends the request through node:http(s) with guardedLookup, which re-checks the answer inside the connection's own DNS lookup. The socket can only open to an address that passed the check, so a TTL-0 record that flips from public to 127.0.0.1 between lookups is refused (private-address).
Bringing your own fetchImpl

The pre-flight resolve check alone does not stop DNS rebinding: your HTTP client resolves the host again when it connects. If you replace fetchImpl, pass guardedLookup as the connection's lookup (Node http.request, https.request, net.connect, or undici's connect.lookup). Versions before 0.3.0 did not do this in createLiveSafeFetchDeps; upgrade.

All logic is pure and injected (resolve, fetchImpl) — unit-tested with zero network. See docs/CONVENTIONS.md security invariant #1.

License

Apache-2.0. See LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @advance-labs/net-guard

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229