Malicious code in lines-columns (npm)
MAL-2026-13765 · GHSA-572q-x4v9-m474
Published · Modified
Dependency scanning
Check whether lines-columns 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 (7c9abe51d09dfaa6a2e38e60df64038009c1029b34587cc2c8906d37642187cd)
Package name 'lines-columns' closely resembles the popular 'lines-and-columns' package, and the README instructs users to install 'lines-and-columns'. The LinesAndColumns class is a faithful reimplementation of the referenced library. Two additional module exports, 'Commitment' and 'Innovation', hold random-looking constant strings ('7fA9mX2#Qv8Lp$N1zK@5Rw!eY3Hc%T6J' and 'd9F@2kL#8mP!4QxZ') that are not referenced by any code path in the module. There are no install/lifecycle scripts, no network I/O, no child_process or exec usage, no filesystem access, and no credential or environment access in the package.
Source: ghsa-malware (b5e939f96529962677dd4ee81b101ad9f09c6485bf99e2ca537bd7c4f0456228)
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
Ready to move
Start Securing
Free, no credit card | First findings in minutes