AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

stagehandMAL-2025-191198

Malicious code in @browserbasehq/stagehand (npm)

stagehand

Published Nov 25, 2025 · updated Dec 1, 2025

Unrated
No fix yet
Source advisory

---

_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (0147cee6c903a9fd8dabfedd42c60df91437e6a7a750bebff3c26ce687d4443a)

The package @browserbasehq/stagehand was found to contain malicious code.

Source: ghsa-malware (399bf53eafd72c4e503b750888756dfb1bd9c9e16872c9ba463458b2e76a9487)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Source: google-open-source-security (18a4a53eddc33c2b49c9dd6b6c736bcaf6784ad6370e235aaf1fcb1a91ffa162)

This package was compromised by the Sha1-Hulud: The Second Coming NPM worm.

The malicious payload steals tokens and credentials and publishes them to

GitHub. The worm will propogate itself to NPM packages the user owns and

establish persistence is a GitHub action.

The package may also destroy the user's home directory.

Affected versions

PackageAffectedFixed in
@browserbasehq/stagehand
npm
<= 3.0.4No fix yet
Details and references