# GHSA-HPM3-965J-QV3C: A tool handler's error can carry a resolved secret to the script and the session events in @enclave-vm/broker

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2026-11-24
- Modified: 2026-11-24

## Affected versions

- @enclave-vm/broker (npm): through 2.19.2

## Description

Broker secrets are resolved per tool and handed to its handler only. When a handler, or a library it calls, threw an error whose message or code contained the value of one of those secrets, the text reached the script, and the final event of the session when the script did not catch it.

### Proof of concept
Configure a broker tool with a resolved secret set to a unique test marker. Make its handler throw an error whose message or code includes that exact marker, then call the tool from AgentScript. In affected versions, a script that catches the error can read the marker; when it does not catch the error, the final session event carries it too.

### Impact
A secret intended only for a tool handler can reach untrusted script code or session-event consumers if the handler or an upstream library includes the secret in an error. This requires a secret-bearing error; ordinary errors do not acquire or reveal the secret.

### Patches
Fixed by #129: the value of each secret the handler was given is replaced by `[REDACTED]` in the message and code of its error. An encoded or partial form of a secret is not recognised.

### Workarounds
Catch errors in tool handlers and rethrow a fixed message.

### Credit
Internal security review.

## References

- https://github.com/agentfront/enclave/security/advisories/GHSA-hpm3-965j-qv3c

Page: https://cve.now/GHSA-HPM3-965J-QV3C

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
