Malicious code in formatting-subtitles-for-claude (npm)
The advisory, in context
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (f683c00ef9c42d55e37cdb367179f21e58ce2441dba55485d6d19670bcefa700)
The package declares a postinstall hook sh./node_modules/unicode-title-normalizer/x.js && exit 0, which runs arbitrary shell content shipped by the separate npm dependency unicode-title-normalizer on every installer at install time. The package's own visible source (index.js, cli.js, README) is a near-verbatim clone of unicode-title-normalizer's documented API — the README begins # unicode-title-normalizer and index.js re-implements normalizeTitle/normalizeColor — while the package is published under the unrelated name formatting-subtitles-for-claude. The name/content mismatch combined with the lifecycle hook shelling out to the dependency's x.js is a dropper shape: the installer-facing code is a decoy, and the install-time code path executed on the host is whatever bytes the dependency's maintainer chooses to ship at x.js, with no pinning beyond a version range, no integrity check, and no inspection.
Source: ghsa-malware (df3e538de57455a661949a30ffd71da5534d5f36c59147155be0b957d9e427df)
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.
2 explicitly affected versions
1.0.1, 1.0.0
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"versions": [
"1.0.1",
"1.0.0"
]
}