GHSA-wfcx-722r-fg5h: Malicious code in string-target-mapper-hash (npm)

Published Oct 27, 2026
·
Updated

--- -= Per source details. Do not edit below this line.=-

Source: amazon-inspector (4f356f513bed48330cd1a0538e53ac429f5570385e8b0bcc3fcc5c94876e437b) package.json declares its sole dependency shard-writer-parser-mutex as a bare HTTPS URL to a non-registry host (https://artifacts.creditslib.com/npm/shard-writer-parser-mutex) rather than a semver range against the npm registry. On npm install, npm fetches whatever tarball that URL currently returns and installs it, executing any lifecycle scripts it contains; the shipped index.js is a one-line re-export, so loading this package also loads code from that host. The URL is unpinned (no version, no commit, no integrity hash), the host is unrelated to the npm registry, and the content served there can change at any time without any republish of this package. The declared dependency name also mirrors the host package's own naming shape, consistent with a dependency-confusion lure where the manifest itself is the delivery mechanism.

Source: ghsa-malware (aa1723c1a5589a8e05f050b8315839ef0733a2429c6da7993fba409cd36188de) 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 Software

2 affected components
npm/string-target-mapper-hash*
npm/string-target-mapper-hash>=0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Remove

    Remove npm/string-target-mapper-hash from your environment.

    Remove the string-target-mapper-hash package; removing it may not remove all malicious software resulting from its installation.

  2. Operational

    Rotate all secrets and keys stored on the affected computer immediately, using a different computer.

Event History

Oct 27, 2026
Advisory Published
via GitHub·03:49 PM
Data Sourced
via GitHub·03:49 PM
DescriptionWeaknessAffected Software
Data Sourced
via OSV·03:49 PM
DescriptionAffected Software

Frequently Asked Questions

1

Which environments should be treated as exposed?

Any computer with this package installed or running should be considered fully compromised. Exposure can occur during npm install because the package retrieves and installs its sole dependency from a non-registry HTTPS host.

2

Does exploitation require a particular application feature or runtime path?

No particular application feature is identified. Installing the package can execute lifecycle scripts from the remotely served dependency, and loading the package also loads code from that host.

3

Is the remotely retrieved dependency fixed to a known version or artifact?

No. The dependency URL is unpinned and has no version, commit, or integrity hash, so the host can serve different content without a republish of this package.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203