Malicious code in react-native-datepickerror (npm)
MAL-2026-20197
Published · Modified
Dependency scanning
Check whether react-native-datepickerror is in your codebase
Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.
Description
react-native-datepickerror 99.9.1 is a dependency-confusion package with an inflated version number and no code of its own (index.js exports an empty object; the 0.0.0-stage placeholder published a minute earlier is inert and not listed). It declares a single dependency, ltidisafe, as a tarball URL outside the npm registry (https://ltidi.storage.googleapis.com/depenconf/ltidisafe-4.0.6.tgz). That tarball's preinstall script runs node test.js with all output discarded. The script reads the OS user name, host name and home directory, hex-encodes each, and sends each one as the leading label of a cleartext HTTP GET to react-native-datepickerror.s70bgesazvr7qu260dzlumnp1g77vxjm.oastify.com, a Burp Collaborator out-of-band callback host, so the values leave the machine through the DNS lookup alone even if the HTTP request fails. It runs on install without the package being imported. The script collects the machine's non-internal IPv4 addresses but does not send them. The same publisher released @clickwraps/fetch (MAL-2026-20119) and @clikwraps/navigate within minutes, with the same payload and a per-package callback host. The payload is hosted outside the registry, so the publisher can change it without a new npm release. Remove the package, treat any machine that installed it as having disclosed its host identity, and block the callback and tarball hosts on build hosts.
__
Source: amazon-inspector (3bcf783e24cde31842f042ce3c02b4b1a2b77927a9a76262084ed5ab9c12ce79)
react-native-datepickerror@99.9.1 ships an empty index.js stub; its entire effect on install is dependency resolution. package.json declares its only dependency as a direct tarball URL — "ltidisafe": "https://ltidi.storage.googleapis.com/depenconf/ltidisafe-4.0.6.tgz" — rather than a registry version range. npm install fetches that tarball from a Google Cloud Storage bucket and installs whatever bytes it returns, running any lifecycle scripts inside with no version pin, no registry provenance, and no integrity check; the bucket owner controls code execution on every installer. The package name differs from the popular react-native-datepicker by a single trailing typo, and the version 99.9.1 is implausibly high — both consistent with a typosquat lure designed to win resolution and pull in attacker-controlled code.
References
Ready to move
Start Securing
Free, no credit card | First findings in minutes