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

@crewhaus/tool-http

Latest version: v0.8.2

Overview

Last scanned
12 Nov 2026
Published
12 Nov 2026
npm package Publisher: studiomaxops
2 Stars
1 Forks
4 Versions
65 Downloads
TypeScript Repo language

Scan summary

@crewhaus/tool-http was last scanned on 12 Nov 2026 at version 0.8.2. Risk score 45 of 100 (medium). High-severity rules fired.

  • Releases: 4 versions; the latest 2 were published within 2 days (11 and 12 Nov 2026).
  • Findings: 1 rule fired in version 0.8.2 (1 high). The score describes this version only.
  • Downloads: 65 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.8.2 LATEST 12 Nov 2026 1 rule fired
0.8.1 11 Nov 2026 1 rule fired
0.8.0 25 Oct 2026 No rules fired
0.7.0 22 Sep 2026 Not shown

Rules fired in 0.8.2: 1

Findings

1 High

Findings for v0.8.2. 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.

Encoded data placed in a DNS lookup

A DNS lookup command (nslookup, dig or host) takes its query name from a subshell that first encodes the data, for example with base64 or xxd. Encoding the name turns a lookup into a way to send data to the nameserver of the queried domain. Ordinary diagnostic lookups have no encoding step.

HIGH
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

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

README

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

@crewhaus/tool-http

HTTP and network work that should not cost a model turn.

@crewhaus/tool-fetch gives an agent one request. That is the right primitive, and it is also why a seven-page API costs seven model turns, a webhook signature costs a code-execution round trip, and "wait until the deploy is healthy" becomes a sleep-and-hope loop. Each tool here collapses one of those patterns into a single call with a stated bound.

tools:
  - all-http          # every tool below, plus Fetch (@crewhaus/tool-fetch)
  - -downloadFile     # ...except this one

tool_config:
  http:
    allowed_origins:  # REQUIRED — an empty list denies everything
      - https://api.example.com
      - https://api.github.com
    allowed_auth_envs:  # the only variables an auth profile may read
      GITHUB_TOKEN: [https://api.github.com]  # ...and where each may be sent
    allowed_signing_envs: [WEBHOOK_SECRET]    # WebhookSign / WebhookVerify keys
Tool What it does
HttpRequest One request with method, headers, body, env-resolved auth, redirect policy, retry-on-status and a deadline
HttpPaginate Walk a paginated API to the end, a page cap or a total-byte budget — Link header, cursor field or page number — and return the items
GraphqlQuery POST a query with variables, returning data and errors separately
HttpBatch Several independent requests with a concurrency cap and a deadline for the batch, results in request order
DownloadFile Fetch to a contained path under a byte cap, with an optional sha256 verified before the file is kept
HeadRequest Existence, size, content type and caching headers without the body
HttpWaitFor Poll until a status or a JSON field predicate holds, within a required deadline
UrlReachable A bounded connectivity probe: status and latency. A probe the gate refused comes back as refused, never as unreachable
LinkCheck Check a list of URLs with a concurrency cap and a shared deadline; refused and skipped URLs are counted apart from broken ones
SseRead Collect server-sent events until a count, a terminator event, or a required deadline
WebhookSign HMAC signature header in the timestamped or plain-body scheme
WebhookVerify Constant-time verification that rejects a stale timestamp as a replay
DnsLookup A / AAAA / CNAME / MX / TXT / NS records for a name
TlsInspect Certificate chain for a host and port — subject, issuer, validity, days remaining, SANs
RobotsCheck Fetch and evaluate robots.txt for a user-agent and path
SitemapParse A sitemap into structured entries, from text or an allow-listed URL
FeedParse An RSS, RDF or Atom feed into a common entry shape

The gate

Every outbound byte leaves through src/net.ts, which carries @crewhaus/tool-fetch's posture over whole rather than re-deriving it. A second HTTP surface with a weaker gate would be the same hole twice.

  1. Empty allow-list denies everything. There is no "allow all" value.
  2. Scheme must be http or https.
  3. Origin must match an allow-list entry exactly after canonicalisation (lowercase host, default port elided). The two tools addressed by host rather than URL — DnsLookup and TlsInspect — need the host to be named by an allow-listed origin; TlsInspect's port is the caller's choice on that host, and a service there that does not speak TLS is reported as "no TLS handshake", never as a certificate.
  4. SSRF: loopback, link-local (including the cloud metadata address), RFC1918, CGNAT, multicast, reserved and mDNS targets are refused even when allow-listed — as an IP literal in any encoding and as the DNS-resolved address. Addresses are classified numerically, never by string prefix, so every spelling of one address gets one answer: 0177.0.0.1, 0x7f000001 and 2130706433 for IPv4; ::1, 0:0:0:0:0:0:0:1 and ::0:1 for IPv6; and the ranges that CARRY an IPv4 address — ::ffff:a.b.c.d, NAT64 (64:ff9b::a9fe:a9fe) and 6to4 (2002:a9fe:a9fe::) — by the address they carry. An IPv6-shaped host this parser cannot expand is refused rather than assumed public.
  5. The vetted IP is pinned for the connection, with the real hostname kept for Host and TLS SNI, so a rebinding resolver cannot swap in a private address between the check and the socket.
  6. Redirects are followed by hand, capped, and re-checked against 3–5 at every hop. A 303 answer, or a 301/302 answer to a POST, becomes a GET with the body dropped, as the Fetch standard and browsers do, so a POST is never replayed at a hop nobody asked for. A PUT, PATCH or DELETE keeps its method and body on a 301/302, as on a 307/308, so an update is made where the server moved it rather than turned into a read that reports 200.
  7. Authorization, Proxy-Authorization, Cookie and whatever header the call's auth profile set are dropped the moment a redirect leaves the origin they were minted for, and the result reports credentialsDropped. HttpPaginate holds the same line across pages: a Link header naming another origin is followed without the credential, because the server chose that URL, not the call. A URL carrying user:pass@ is refused outright — at the first hop and at every redirect — because userinfo is a credential that would otherwise ride in finalUrl and redirects straight into a transcript.
  8. Every request has a deadline and every body a byte cap, on its decoded size: bodies are fetched raw and decoded under the cap, so a compressed reply cannot inflate past it. Requests ask for identity. The polling and streaming tools require the deadline rather than defaulting it, HttpBatch bounds the batch as well as each request, and HttpPaginate bounds the bytes across all pages as well as within one — a per-page cap is not a bound on a tool that holds every page's items at once.
  9. Cookie, Set-Cookie and Authorization are stripped from response headers before anything reaches a model.

What a permission rule covers. A URL rule, such as alwaysDeny HttpPaginate(https://admin.example/**), is checked only on the URL a call names. Redirect hops, and the next pages HttpPaginate follows, are checked against the tool's allow-list (points 3–5), not your rules. This covers the tools here, Fetch, WebFetch and HealthProbe. A rule on part of an origin, such as a path, is not checked on those requests at all, even on the same origin. To be sure a place is not reached: keep its origin out of allowed_origins (for WebFetch, set allowed_domains), or deny the tool.

Secrets

No tool accepts an inline credential. An auth profile names an environment variable:

{ "type": "bearer", "envVar": "GITHUB_TOKEN" }

and an inline Authorization or Cookie header is refused with a message pointing at auth, as is a URL with user:pass@ in it. A token a model can put in a tool argument is a token in the transcript, the trace event and the eval report.

The variable must be one you list in tool_config.http.allowed_auth_envs. A tool call may choose among the listed names and can never add one, so a model cannot send another process secret (your LLM provider key, say) to an allowed origin. With no list, every auth profile is refused. Write the list as names, whose credentials may go to any allowed origin, or as a map from a name to the origins its credential may go to:

allowed_auth_envs: [GITHUB_TOKEN, STATUS_API_KEY]      # any allowed origin
allowed_auth_envs:                                      # or bound
  GITHUB_TOKEN: [https://api.github.com]

A request that would carry a bound credential anywhere else is refused before it is sent. Whatever the server echoes back (a 401 that quotes the key, a debug endpoint that repeats the headers) is scrubbed from the result, in its URL-encoded and base64 spellings too, and for basic the user:secret pair as well.

WebhookSign and WebhookVerify take the signing secret the same way, from a variable you list in tool_config.http.allowed_signing_envs ([WEBHOOK_SECRET]). A call that could name any variable could mint a valid signature over any payload with any secret in the process; with no list, both tools refuse.

Echoed request headers come back as <redacted> — including the one a { "type": "header", "headerName": "X-Api-Key" } profile set, which is just as much a secret as an Authorization value and is guarded as one everywhere: in the echo, and on a cross-origin redirect.

An error message names a URL by scheme, host, port and path only. The query string is where a presigned link keeps its signature, and an error string is a thing that ends up in a transcript.

Determinism

Same inputs against the same world state, same bytes out: listings are sorted, comparisons use code-unit order (never localeCompare without a locale), nothing is random — the retry backoff has no jitter for exactly this reason — and the wall clock appears only where the caller asked for timing: HttpRequest.elapsedMs, UrlReachable.latencyMs, HttpWaitFor.elapsedMs, and TlsInspect's daysRemaining. Each of those is flagged in its own description. WebhookSign refuses to default a timestamp to "now" so the same call always produces the same signature.

Feed entries are the one listing that is not re-sorted: a feed's order is the signal it carries, and document order is deterministic anyway.

Layout

src/lib/ holds the pure functions and is where their behaviour is tested without a socket — XML, sitemaps, feeds, Link headers, SSE framing, robots.txt matching, HMAC signatures, JSON path reading, backoff arithmetic and certificate shaping. src/net.ts is the gate. src/index.ts wraps them as tools. src/paths.ts is the workspace-containment check, copied from @crewhaus/tool-fsx, that DownloadFile passes every caller-supplied path through before it makes the request. The write itself goes through @crewhaus/tool-safety/fs's writeFileSafe: a temp created exclusively, under a random name, beside the destination, and renamed into place, so a link planted where the temp will be cannot carry the bytes out of the workspace.

The tests use real servers: Bun.serve({ port: 0 }) on 127.0.0.1, never a public address, never a mocked fetch. A stubbed transport would prove nothing about whether a redirect chain really drops a credential or whether a byte cap really cancels a stream.

Safety flags

Tools
scope: "external", ioCapability: "network" everything except WebhookSign and WebhookVerify
destructive: true HttpRequest, HttpBatch, GraphqlQuery (any of them can mutate a remote resource), DownloadFile (writes a file)
requireJustification: true HttpRequest, HttpBatch, GraphqlQuery — the three with a visible outward side effect
readOnly: true the other thirteen

src/index.test.ts asserts the whole table tool by tool and runs auditToolScopes over the package, so a future tool that forgets an annotation fails the suite rather than shipping.

What is deliberately not here

  • A cookie jar. Nothing persists between calls; a session cookie must be passed explicitly each time, through a header-type auth profile.
  • WebSockets. SseRead covers one-way streaming; a bidirectional session does not fit a single bounded tool call.
  • Following a sitemap index. SitemapParse reads one document; parse each child yourself so the page cap stays visible.
  • Crawling. RobotsCheck tells you whether you may fetch a path and what Crawl-delay the site asked for; it does not pace anything for you, and LinkCheck does not discover links. A path and query longer than 8 KiB, about the most a web server accepts, is refused rather than evaluated.
  • Date normalisation in feeds. Dates come back exactly as the feed wrote them, RFC 822 or RFC 3339; guessing a timezone this parser cannot verify would be worse than handing the string to @crewhaus/tool-datetime.
  • Retries with jitter, or any unseeded randomness. Stagger concurrent agents where the seed is visible.

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 @crewhaus/tool-http

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

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (2)
Research

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

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229