npm · Malicious package advisory
Malwarechegg-contentful
GHSA-xr78-48r2-g5fr
Malicious code in chegg-contentful (npm)
Details
**Severity:** Critical **Affected versions:** `= 2.0.0` ## Source: checkmarx (0f294558304bba4da1c74169d026ebb78d4c1509bc734739942abe3860bc7390) Malicious packages campaign since 2021 targeting developers, steals source code and secrets ## Source: ossf-package-analysis (b21e5b3cb40750e7ef67dd512238447bd3dfcd1c791d87c2ea89ea2b5efc34ae) The OpenSSF Package Analysis project identified 'chegg-contentful' @ 2.0.0 (npm) as malicious. It is considered malicious because: - The package executes one or more commands associated with malicious behavior. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/4012598c9b06e58935bd8883f7a0cd37c3130664/osv/malicious/npm/chegg-contentful/MAL-2023-1135.json)) **References:** - https://github.com/ossf/malicious-packages/blob/4012598c9b06e58935bd8883f7a0cd37c3130664/osv/malicious/npm/chegg-contentful/MAL-2023-1135.json - https://medium.com/checkmarx-security/an-ongoing-open-source-attack-reveals-roots-dating-back-to-2021-4a511979fd98 - https://github.com/advisories/GHSA-xr78-48r2-g5fr
Compromised versions (1)
- = 2.0.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.