Malicious code in finup-mongo-library (npm)
MAL-2026-4564 · GHSA-3765-55wp-8fqh
Published · Modified
Dependency scanning
Check whether finup-mongo-library 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
__
Source: amazon-inspector (1d9d0b210938322b805e1c8d94db07f45ca029fc4e69fb3a57f424eb885c1a39)
dist/common/instrument.js calls Sentry.init() at module top level with a hardcoded DSN pointing at the author's Sentry project (o4511257159139328.ingest.us.sentry.io/4511257262161920), with tracesSampleRate and profilesSampleRate both set to 1.0. Because dist/index.js re-exports this module via __exportStar, any consumer that does require('finup-mongo-library') (or imports it in a NestJS app, the package's stated purpose) globally configures the Sentry SDK singleton in their Node.js process. From that point onward, all uncaught exceptions, performance traces, and profiles produced by the consumer's application — which routinely include stack frames, source file paths, request URLs, query parameters, and incidental PII captured in error context — are shipped to a Sentry account the author controls, with no caller opt-in and no documented disclosure. This is a silent-relay shape: the destination is hardcoded by the author, the trigger is module import, and the data flowing out is the consumer's application telemetry, not the package's own. A separately-shipped HttpExceptionFilter additionally POSTs request bodies to a Telegram bot URL, but that destination is read from consumer env vars, so it is opt-in and not part of the relay finding.
Source: ghsa-malware (46570dd164e5ea9b6affc03d34477c0cab7d976e2e933f5f80fd8281aa5c87ce)
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.
References
- PACKAGE https://www.npmjs.com/package/finup-mongo-library/v/4.0.1
- PACKAGE https://www.npmjs.com/package/finup-mongo-library/v/3.9.9
- PACKAGE https://www.npmjs.com/package/finup-mongo-library/v/4.0.6
- PACKAGE https://www.npmjs.com/package/finup-mongo-library/v/4.0.7
- PACKAGE https://www.npmjs.com/package/finup-mongo-library/v/4.1.3
- PACKAGE https://www.npmjs.com/package/finup-mongo-library/v/4.0.9
- PACKAGE https://www.npmjs.com/package/finup-mongo-library/v/4.0.5
- PACKAGE https://www.npmjs.com/package/finup-mongo-library/v/4.0.4
- PACKAGE https://www.npmjs.com/package/finup-mongo-library/v/4.1.2
- PACKAGE https://www.npmjs.com/package/finup-mongo-library/v/4.1.5
- PACKAGE https://www.npmjs.com/package/finup-mongo-library/v/4.2.2
- PACKAGE https://www.npmjs.com/package/finup-mongo-library/v/4.2.1
- ADVISORY https://github.com/advisories/GHSA-3765-55wp-8fqh
Ready to move
Start Securing
Free, no credit card | First findings in minutes