{"id":"MAL-2025-190886","summary":"Malicious code in @posthog/nextjs (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (79eae844852de94f0a7cd6826f344e60fe40945cdacfaa3d3d589c965ade4ad1)\nThe package @posthog/nextjs was found to contain malicious code.\n\n## Source: google-open-source-security (b3751a8050beed95d0bc8e5ae8ca9c915c9e5733b6032ad72bbe7e602c6099ac)\nThis package was compromised by the Sha1-Hulud: The Second Coming NPM worm.\nThe malicious payload steals tokens and credentials and publishes them to\nGitHub. The worm will propogate itself to NPM packages the user owns and\nestablish persistence is a GitHub action.\nThe package may also destroy the user's home directory.\n","modified":"2025-11-26T00:10:57.317042Z","published":"2025-11-24T16:31:47Z","database_specific":{"malicious-packages-origins":[{"versions":["0.0.3"],"sha256":"79eae844852de94f0a7cd6826f344e60fe40945cdacfaa3d3d589c965ade4ad1","import_time":"2025-11-24T16:39:41.937118537Z","source":"amazon-inspector","modified_time":"2025-11-24T16:31:47Z"},{"versions":["0.0.3"],"sha256":"b3751a8050beed95d0bc8e5ae8ca9c915c9e5733b6032ad72bbe7e602c6099ac","import_time":"2025-11-25T00:17:32.81745Z","source":"google-open-source-security","modified_time":"2025-11-25T00:16:49Z"}]},"references":[{"type":"WEB","url":"https://www.aikido.dev/blog/shai-hulud-strikes-again-hitting-zapier-ensdomains"},{"type":"WEB","url":"https://www.wiz.io/blog/shai-hulud-2-0-ongoing-supply-chain-attack"},{"type":"WEB","url":"https://www.stepsecurity.io/blog/sha1-hulud-the-second-coming-zapier-ens-domains-and-other-prominent-npm-packages-compromised"}],"affected":[{"package":{"name":"@posthog/nextjs","ecosystem":"npm","purl":"pkg:npm/%40posthog/nextjs"},"versions":["0.0.3"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@posthog/nextjs/MAL-2025-190886.json"}}],"schema_version":"1.7.3","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"}]}