Skip to content
posthogMAL-2025-190748

Malicious code in @posthog/agent (npm)

UnratedPublished Nov 24, 2025 · updated Nov 26, 2025

Source advisory

Affected versions

PackageAffectedFixed in
@posthog/agent
npm
<= 1.24.1No fix yet
Details and references

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (183eda8dff43d0fa91f3006a2c3af5a268788a2dc9be3e53bd44d685b02f8432) The package @posthog/agent was found to contain malicious code. ## Source: ghsa-malware (1e1b7c3425dec8a1aa33daab74dd9163958811fa344ee6f8a795252daec78529) 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 (9c8a54bcae7e6dd1d1a33a3965f579a9e79b7362df92f9aa065d1e37f65e2486) 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.

Severity from
no source yet
Also known as
GHSA-g483-gc2j-m258

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.