Twenty-three new fuzz targets, built-in Go fuzzing, each checking a
property rather than only that nothing panics: parsers of what a VM or
the network sends fail closed and keep to their caps, a secret goes only
where it's bound, and no planted secret survives a redaction.
- internal/proxy: FuzzCursorFrames (passes only what came; no message
over frameMax or holding a JWT's start, decompressed and unescaped),
FuzzInject (a binding's value only to a host it names, judged apart
from the matcher in NormHost's form, for its path and methods, in its
own header, which held the exact placeholder once; other headers
untouched), FuzzParseBindings, FuzzLinkList, FuzzParseUpstream (errors
hold no more of the URL than its scheme), FuzzNoProxy, FuzzParseNarinfo
(only cache.nixos.org-1's signed narinfo is taken).
- internal/agentlogin: FuzzParseTokenRequest, FuzzRedact (secrets planted
eight ways in JSON and TOML settings), FuzzCapture (the VM's reply holds
none of the endpoint's tokens).
- internal/redact: FuzzSplit (a password written in parts through Split,
as the run log writes it, never survives).
- internal/jsonc: FuzzStrip, differential against encoding/json.
- internal/upgrade: FuzzParsePublicKey, FuzzVerify, FuzzEntryName,
FuzzUnpack.
- internal/vmssh: FuzzParseHostKeys, FuzzParsePorts.
- internal/vm: FuzzParseCloneState, FuzzParseInit, FuzzParseKept,
FuzzParseLFSPointer.
- internal/desktop: FuzzHandshakeVM.
What they found, each fixed with a regression test:
- NO_PROXY: an entry with port 0 (git.test:0) was read as the host on
every port, and git.test:080 or :+80 as port 80, which Go's clients
match against nothing; an entry whose port no request has, or that
isn't plain decimal, now matches nothing (TestNoProxy,
testdata/fuzz/FuzzNoProxy). FuzzHostSites' NO_PROXY site allows this
difference from its frozen copy, and the design note lists it.
- A JSON token request with more after its object was judged by its
first object; it's refused now (TestCaptureRefuses).
The Fuzz workflow runs nightly rather than two minutes weekly: five
minutes a target, eight at a time, each target's corpus restored from
and saved to a cache of its own (a failing input added to it, so it
fails nightly until fixed), new inputs minimized in at most 1,000 runs,
and one issue, "Fuzzing found failing inputs", opened, commented on when
the failing targets change and closed on a clean night, by a separate
job with issues: write that runs no repo code, on main alone. Target
names must be unique across packages. bump.sh moves an action in a
folder of its repo (actions/cache/restore, /save) with its repo's
releases.
Docs: Contributing's Fuzzing (running a target, the nightly run, every
target's property), Maintaining's Fuzzing failures and its actions bump,
the proxy README, the NO_PROXY and token request facts in How it works'
network page and the design note.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
CJ's M3 run with a real login: cursor-agent couldn't chat; it kept
reconnecting to agentn.global.api5.cursor.sh, and the VM's proxy logged
AgentService/Run as refused ("devvm couldn't read the login's token
request or reply"). The CLI's agent client compresses its requests
with gzip (connect-node's sendCompression, read from the 2026.11.11
package, for messages of 1 KiB and more), and a Connect server answers
a gzipped request with gzipped messages whatever the client accepts
(connect-go's negotiateCompression mirrors the request's; the spec has
the server assume the client takes the request's encoding). cursorReply
refused any reply with a Connect-Content-Encoding or Grpc-Encoding but
identity, so it refused Run's reply at its headers.
- frameScanner: a reply whose Content-Type is a Connect or gRPC stream
passes message by message. Each is read whole, at most 16 MiB as it
comes and as it decompresses, gunzipped when flagged compressed, and
checked for a JWT's start before any of it passes, as it came.
Connect's end of stream, and every message of a JSON stream, is also
decoded and its strings checked, so escapes can't hide a token. An
unknown flag, a compressed message without gzip or that isn't gzip,
one over the limit, an envelope cut off, a token in the trailers, and
gRPC-Web's base64 text end the stream before that message. Other
replies keep jwtScanner; requests carry placeholders and pass as
before.
- cursorReply takes gzip only as a stream's own message encoding, and
refuses any other encoding as before.
- TestCursorStreams: a recorded-shape Run stream (gzipped messages, a
plain one, an end of stream), which failed first ("an encoded reply");
gRPC; each refusal; a token compressed, plain, at the end and escaped
there; JSON streams. TestCursorReplyScans now uses a unary reply.
- e2e network: the fake company proxy's api2.cursor.sh answers Run as a
Connect stream with gzipped messages, which passes whole through the
VM's proxy, and one with a token, which ends before it.
- A focused threat review (security-audit skill): no way found for a
token to reach the VM that the old refusal stopped; its memory and
JSON-codec points are taken (no allocation from a declared length,
JSON streams decoded, grpc-web-text refused). Base64 inside messages
stays unread, as before, in internals' network page.
api3.cursor.sh, also blocked in that run, is the CLI's metrics host
(MetricsService, with a fixed key of the CLI's own, fire and forget),
which the allowlist leaves out on purpose; the CLI reaches it with
http2.connect, around HTTPS_PROXY, hence "without proxy settings".
Co-Authored-By: Claude Opus 5.5 <[email protected]>