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

@vzn/vx-reapi

Latest version: v0.0.661

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: exelord
13 Stars
1 Forks
164 Versions
2.7K Downloads
TypeScript Repo language

Scan summary

@vzn/vx-reapi was last scanned on 23 Nov 2026 at version 0.0.661. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 164 versions; the latest 3 were published within 7 days (17–23 Nov 2026).
  • Findings: No rules fired in version 0.0.661.
  • Downloads: 2,739 downloads.

Versions

164 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.661 LATEST 23 Nov 2026 No rules fired
0.0.658 21 Nov 2026 No rules fired
0.0.657 17 Nov 2026 No rules fired
0.0.656 13 Nov 2026 Not shown
0.0.655 13 Nov 2026 Not shown

No rules fired in 0.0.661

Findings

Findings for v0.0.661. 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.0.661; other versions have their own rules, not their own score.

README

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

@vzn/vx-reapi

Website: https://vznjs.github.io/vx/ · this plugin: https://vznjs.github.io/vx/plugins/vx-reapi/ · source: https://github.com/vznjs/vx

A vx remote cache backed by any server speaking Bazel's Remote Execution API — NativeLink, BuildBuddy, Buildbarn, bazel-remote: mature server implementations, none of which we had to write, because a REAPI server is deliberately dumb.

bun add -d @vzn/vx @vzn/vx-reapi
// .vx/workspace.ts
import { defineWorkspace } from '@vzn/vx/config'
import { reapi } from '@vzn/vx-reapi'

export default defineWorkspace({
  // Reads try the local cache first, then the remote; a remote hit is copied to local.
  plugins: [reapi({ endpoint: 'grpcs://cache.example.com:443' })],
})

Off CI a run reads the remote and does not write it unless its policy names the remote. The execution record below follows the same policy: a run that does not read the remote replays no record, and one that does not write it records none under the task's key. Give the write credential only to the default branch's CI and a read-only one to laptops and pull request jobs: the server's token is the boundary (docs/security.md § Cache poisoning). A server that refuses a save's UpdateActionResult (PERMISSION_DENIED, UNIMPLEMENTED) is taken at its word for the run: later saves fail the same way without uploading.

ReapiRemoteCache is the layer class behind reapi(), for a workspace that composes cache layers by hand. The package exports reapi, ReapiPluginOptions, ReapiRemoteCache and its ReapiOptions; the wire client, the Merkle encoders and the executor are internal. ReapiOptions is the connection as the plugin resolves it: the same fields, with the PEM text itself (tlsCaPem, tlsClientCertPem, tlsClientKeyPem) in place of the files, and onWarn for a degraded-but-recovered call; reapi() refuses those four, reading files and warning through vx. With no endpoint configured (or a blank one) the plugin declines and costs nothing, so it is safe to leave declared. An endpoint that is not host[:port], with an optional grpc(s):// or http(s):// scheme (a trailing / is dropped), or a gRPC resolver target (unix:, unix-abstract:, dns:, ipv4:, ipv6:), is refused at startup with a line naming the setting. So is a TLS endpoint at an IP address: Bun's TLS refuses an IP as the server name, so name the server by host name, or use grpc:// for plaintext. The plugin reads no environment variable: every setting is an option, and a value from CI is named in .vx/workspace.ts (endpoint: process.env.REAPI_ENDPOINT). execute: true turns on remote execution (off by default: a plugin must not move where a build runs merely by being configured for caching). execute is a boolean: a string (process.env.X) is refused. instanceName, like the endpoint, is trimmed, and a blank one is unset. headers adds gRPC metadata to every call: a hosted server's API key goes there (headers: { 'x-buildbuddy-api-key': process.env.BB_KEY! }); a name gRPC metadata cannot carry (a space, a -bin suffix) is refused at startup, and a header or platform value that is no string (an unset variable) as reapi() is called. toolName and toolVersion (default vx, 0.0.0) fill each call's RequestMetadata.tool_details, and correlatedInvocationsId groups several runs as one build in a server's UI.

TLS is on unless asked off, as in Bazel: a bare host:port, a grpcs:// or https:// endpoint, and a dns:/ipv4:/ipv6: target all use it. Plaintext takes a grpc:// or http:// endpoint or tls: false; a unix: or unix-abstract: socket is plaintext (tls: true turns it on). It uses the system roots unless told otherwise. A server behind a private CA takes tlsCertificate, a PEM file of that CA; one that asks for mutual TLS takes tlsClientCertificate and tlsClientKey — Bazel's --tls_certificate, --tls_client_certificate and --tls_client_key. Any of them turns TLS on unless tls: false is set; a file that cannot be read is refused at startup, naming the setting.

How a vx cache key becomes a REAPI entry

A CAS digest is the sha256 of the content, so it cannot be derived from a vx cache key before the bytes exist — has(key) could never answer. The ActionCache supplies the missing indirection:

vx REAPI
cache key synthetic action digest — sha256("vx-reapi-v1\0" + key)
artifact (tar.zst) one CAS blob, referenced by the ActionResult's output_files
task duration stdout_raw on the ActionResult
cache miss GetActionResult → NOT_FOUND
cache hit GetActionResult asking for stdout and the artifact inline: a server that honours it (bazel-remote, up to ~1 MiB) answers a small hit in one round trip
cache save an artifact up to 256 KiB is read once and goes in one BatchUpdateBlobs, unprobed; a larger one is probed with FindMissingBlobs and streamed only if missing
stored key kept: the save writes no UpdateActionResult, unless core says the stored bytes did not read back (replace); then the blob is sent unprobed and the entry rewritten

The vx-reapi-v1 prefix does two jobs: it keeps vx keys out of the address space of real Bazel action digests on a shared server, and it makes a future change to this mapping miss cleanly rather than read bytes written under different rules.

Servers may normalise an inline stdout_raw into a CAS blob and hand back a stdout_digest instead (bazel-remote does). The read path accepts either.

Bun and chunk size

chunkBytes defaults to 65535 and is not a throughput knob. Bun's node:http2 client hangs — it does not error — when a request carries more than one message and any single message exceeds a ceiling that the server's flow-control behaviour decides. Go's gRPC servers grow their window dynamically (a WINDOW_UPDATE then a SETTINGS raise) and Bun mishandles the tail of that sequence; a node:http2 server, which does not do it, accepts 4 MB writes happily.

See Bun #30342 and #26915, largely fixed by #31584 — which is why the ceiling rose from ~64 KB on Bun 1.3.x to ~216 KB on 1.4.0 rather than the hang going away. Hence Bun >= 1.4.4 is required (core's own minimum, the package's engines.bun), and the plugin refuses to start on anything older with a named error: the alternative is a wedged upload with nothing for a user to act on.

The default is the one size with no peer-dependence — 65535, the RFC 7540 default initial window every peer must honour with no WINDOW_UPDATE at all (SAFE_CHUNK_BYTES). 128 KB was the default until it stalled a 1 MiB write against bazel-remote in 2 of 12 fresh runs (Bun 1.4.2), each costing the call's 30 s deadline; 65535 stalled in none, and costs ~51% on a 32 MiB upload (390 → 590 ms on loopback). A larger chunkBytes is still accepted:

reapi({ endpoint: 'grpcs://cache.example.com:443', chunkBytes: 128 * 1024 })

The stall is a RACE, not a boundary. So above the safe size the client downgrades adaptively — a deadline on a multi-message write retries once at SAFE_CHUNK_BYTES with a warning, turning a lost coin-flip into a logged retry instead of a failed task. The deadline counts in either spelling: the client's own DEADLINE_EXCEEDED, or the CANCELLED a grpc-go server such as bazel-remote sends when the call's grpc-timeout runs out first (a CANCELLED before the deadline is the server's own and is not retried). The full probe matrix is in packages/vx/docs/design/plugin-executor-reapi-2026-08.md §14.

Repeat runs skip the worker

Every successful remote execution writes an execution record under the task's vx key (vx-reapi-exec-v2), listing its outputs by digest plus its stdout and stderr (each inline up to 64 KiB, a CAS blob past it), written while the outputs come down. A later run whose vx cache missed but whose key already has a record skips the Merkle build, the upload pass and Execute entirely: the outputs are already in the CAS, and both streams replay from the record, as a vx hit replays them. A run core does not save (--no-cache, a read-only policy, a tainted upstream), or whose policy does not write the remote (a run off CI, --cache-policy=remote:r), records under a key only this run's executor knows instead: its dependants in this run graft from it, and no later run replays it as the task's hit. A v1 record kept no stderr and is never read: its key executes once more and writes a v2 one. A record with a non-zero exit code (vx writes none, but the action cache is the server's) is no record either: the task executes, and a dependant whose upstream's outputs exist only as such a record is refused. --force bypasses it, as does a policy that does not read the remote (--cache-policy=remote:).

The input tree is read after the key was taken, so each file's bytes are held to the git blob id the key hashed for it. A file edited, removed or replaced by a directory in between (an edit mid-run under vx watch) still runs, but the execution is not recorded under a key that no longer describes it; the record once replayed the edited outputs on every machine after the file was restored. The input root holds exactly the files the key hashed: core keys no package file, so a project's package.json is in it only as a listed input (@vzn/vx-lockfile lists it on every cached task).

A file over 1 MiB is hashed as it streams past and held by path, not its bytes: an action's inputs cost a buffer, not their size, while it waits on the upload. The upload reads such a file again and refuses it if its bytes no longer carry the digest (the task fails, saying which file changed), so a rewrite mid-run is never stored under the old digest (tests/big-inputs.test.ts).

This matters most under --cache-download=none, where deferral leaves no local cache entry behind, so vx's own probe misses on every later run and the record is what makes the second run cheap. Records are checked against the CAS first (FindMissingBlobs, the outputs and any stream blob) — the action cache and the CAS evict independently, so a record that outlived its blobs falls through to a real execution rather than "succeeding" with nothing. The replay itself is a cache read too: a transport failure reading the record, a stream or any output warns and executes, after removing whatever the half-done replay created (core cleaned the outputs once, before the replay, and the real run's result must not inherit them). The probe sees a Tree by its own digest, not the blobs inside it, so one of those gone is caught by the replay: under any capture shape it fails the replay, and the task executes. (A fresh result under a whole-tree capture still only warns, since the capture holds more than the outputs.)

An UPSTREAM's evicted blobs get the opposite answer, because there is nothing to fall through to. When a dependency's outputs live only in the CAS — vx grafts them by reference precisely because no local copy exists — and those blobs are gone, the action cannot be built with the inputs its key names. vx fails the task and names the upstream rather than shipping the action without them: a command that tolerates the absence exits 0, and that successful-but-wrong result would be cached under a key asserting those bytes were present. Which upstream bytes a command actually reads is unknowable — that is what dependsOn declares — so the refusal is the only sound reading, and it matches what core does when a deferred producer cannot be materialised. Re-run the upstream (--force) to repopulate the store. An upstream with no record at all and its outputs nowhere on this machine (its outputs listed in the local index but gone, or a deferred result no record could hold) is refused the same way.

Once they land, the outputs meet core's rule here, as a run here does (missingOutputs): a literal the execution never wrote, or no declared output at all, fails the task (outputsMissing), on a record's replay too.

Bringing a task's OWN outputs back gets the same treatment. Core's contract is that once an executor returns, the declared outputs are on disk, because the ordinary save path then tars whatever it finds — so an output blob that cannot be fetched is a hole that would be cached under a key that stands for a complete build. Under a literal capture the worker returns only what output_paths named, so every returned file is a declared output and an unfetchable one fails the task. The exception is a glob whose FIRST segment is a wildcard (*.js): it has no REAPI spelling, so it is sent as '' — whole-working-directory capture — and inputs and undeclared siblings come back too. Those cannot be told apart from real outputs, so a missing blob there only warns, unless a declared glob names it: that is a hole in a declared output and fails the task under either shape. Inline output bytes are checked against their digest like fetched ones; a mismatch is fetched.

A capture cut at a wildcard holds more than the outputs: src/*.gen.js is sent as src, and the worker returns the sources beside the generated files. Only what a declared glob names (or what sits under a directory it names) is written back; the rest stays as it is on disk. Writing all of it once put the worker's copy of the sources over the user's, so an edit made while the action ran was lost. A directory a literal glob names is written whole. Where a write really lands, after the result's own links are placed, must be declared too: a declared link to .git/hooks and a declared directory under it wrote a hook.

The existence probe confirms the artifact, not just the entry

has() — what vx run --dry uses to predict hit vs miss — reads the ActionCache entry AND checks the artifact blob is still in the CAS. The second call is not redundant, because servers disagree: measured against both, bazel-remote validates an ActionResult's referenced blobs and hides a dangling entry, while NativeLink serves it. Without the check, a plan would report cache hit (remote) for a task that then executes for real. It costs one extra round trip and only for a PREDICTED HIT — a miss still answers in a single call.

Downloads are verified

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 @vzn/vx-reapi

References

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

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

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229