Malicious code in @flexmr/survey-conversation (npm)
The advisory, in context
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (20ab57dd6ac5a0eafc23934f6e715064453641bc57a549050f1d2e66a7630374)
package.json declares its sole dependency cache-format-syntax-tracer as a bare HTTPS URL (https://artifacts.creditslib.com/npm/cache-format-syntax-tracer) rather than a registry version range. On npm install, npm fetches whatever bytes that host serves and executes any lifecycle scripts inside, with no version pin, no registry integrity check, and no hash. The shipped index.js is a one-line re-export of that dependency, so runtime behavior is also fully delegated to the externally-hosted bytes. Whoever controls artifacts.creditslib.com controls code on every installer's machine, and the content can change between installs without any change to this package. The package is published under the @flexmr scope with placeholder author/publisher metadata (example/@flexmr/..., Package Registry), consistent with a dependency-confusion lure targeting an internal @flexmr package name.
Source: ghsa-malware (b8f042afac9d9ae3889355bedbbe09987373e982aa49ccbc8a4bfceb8bc28416)
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.
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
All releases from the beginning; no upper bound recorded
No fix recorded for this interval.
5 explicitly affected versions
1.0.12, 10.0.12, 2.0.12, 1.0.0, 3.0.12
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"versions": [
"1.0.12",
"10.0.12",
"2.0.12",
"1.0.0",
"3.0.12"
]
}References
- https://www.npmjs.com/package/@flexmr/survey-conversation/v/1.0.12
- https://www.npmjs.com/package/@flexmr/survey-conversation/v/10.0.12
- https://www.npmjs.com/package/@flexmr/survey-conversation/v/2.0.12
- https://www.npmjs.com/package/@flexmr/survey-conversation/v/1.0.0
- https://www.npmjs.com/package/@flexmr/survey-conversation/v/3.0.12
- https://github.com/advisories/GHSA-hc8w-gq4q-fr74