Packages / posthog-node / Security
Malicious code in posthog-node (npm)
Compromised versions · posthog-node
- 5.11.3
- 5.13.3
- 4.18.1
Safe
Every other versionincluding the latest, 6.0.5
npm install posthog-node@6.0.5Not affected
6.0.0 – 6.0.5
6 releases, latest
Not affected
5.0.0 – 5.11.2
33 releases
Affected
5.11.3
1 release
Safe
5.12.0 – 5.13.2
4 releases
Affected
5.13.3
1 release
Safe
5.13.4 – 5.74.0
234 releases
Not affected
4.0.0 – 4.18.0
41 releases
Affected
4.18.1
1 release
What happens
If one of these versions was installed
- Treat the machines and CI runners that installed it as compromised.
- Rotate the npm, GitHub and cloud tokens they could reach.
- Reinstall from a lockfile that pins a version outside the list.
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (c2ec4a50c0b553e9abbcc25147ad50014cf1488415e1ec8e3234f3e9bb3cc24e)
The package posthog-node was found to contain malicious code.
Source: google-open-source-security (5dac9bdcf8ac8226ec0441699268220426948df17dbc750b5724a663527c1822)
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.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.