GHSA-wp4c-7f8p-7c22
Malicious code in string-utils-assistant (npm)
Impact
Malicious package. Advertised as string helpers (toUpperCase, reverseString, ...), but the postinstall hook spawns `index.js` as a detached background process. It opens a raw TCP connection to 47.251.102.182:8057, reports the OS type, and accepts commands from the server, including FILE_START/FILE_END framing that writes server-supplied content to an arbitrary server-chosen path on the host, and runs every other line it receives as a shell command via child_process.exec (prefixed with `chcp 65001` on Windows), sending the output back: a reverse shell. In a sandboxed install the package connected to 47.251.102.182. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/c10d6487f06d804bbe09b302a01b73807fd7f8a3/osv/malicious/npm/string-utils-assistant/MAL-2026-20352.json))
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | string-utils-assistant | = 1.0.0 | none recorded |