nativescript-swisspost-imagepicker (npm) · Malicious Code
Affects nativescript-swisspost-imagepickerSource GCVE Database
Malicious package : remove nativescript-swisspost-imagepicker and rotate any secrets on hosts that installed it.
Data as of 15 Jul 2026, 12:54 UTC
Malicious package
Published to npm · OSV MAL-2026-5792
What to do
Remove nativescript-swisspost-imagepicker from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmnativescript-swisspost-imagepicker | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package nativescript-swisspost-imagepicker version 52.31.0 contains malicious code that exfiltrates the installer's internal project name to an attacker-controlled server during installation. This behavior leaks sensitive information about private package namespaces and organizations using the package. The package is identified as a dependency confusion squat targeting an internal Swiss Post NativeScript namespace. The malicious code executes silently on npm install by sending a JSON payload with project details to a hardcoded URL. Removal of the package may not fully remediate the compromise, as the attacker may have gained full control of the affected system.