# GHSA-R4J6-Q34R-GC6J: Malicious code in stream-buffer-utils-testmetest (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-11-20
- Modified: 2026-11-20

## Affected versions

- stream-buffer-utils-testmetest (npm): 1.0.0

## Description

## Source: amazon-inspector (3f98853d3cbad88cc14f8d522013ad661d83bee6b5e895ecd48931e498a618ac)
On require(), index.js brotli-decompresses a hex-encoded blob and pipes the decoded script into a `bun -` subprocess, resolving the Bun binary from /usr/local/bin/bun, $HOME/.bun/bin/bun, and $BUN_INSTALL/bin/bun. The payload is shipped as opaque compressed bytes rather than readable source, and executes through a sibling runtime so the code path is not visible to Node-source review of the shipped file. The package advertises itself as a generic utility library, which does not require decoding and executing an embedded blob under an alternate runtime at module load. The current decoded content is a trivial console.log, but the delivery mechanism supports swapping in arbitrary code in any subsequent publish while keeping the Node-level file structurally unchanged. The package name has a placeholder/test shape (stream-buffer-utils-testmetest).

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/6a29b90f18642a9862088bc4c1f3888ea8ac07f3/osv/malicious/npm/stream-buffer-utils-testmetest/MAL-2026-20280.json))

## References

- https://github.com/ossf/malicious-packages/blob/6a29b90f18642a9862088bc4c1f3888ea8ac07f3/osv/malicious/npm/stream-buffer-utils-testmetest/MAL-2026-20280.json
- https://www.npmjs.com/package/stream-buffer-utils-testmetest/v/1.0.0
- https://github.com/advisories/GHSA-r4j6-q34r-gc6j

Page: https://cve.now/GHSA-R4J6-Q34R-GC6J

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