Skip to main content

Malicious code in librastandardlib (npm)

0
Critical
Published: 08/28/2026 (08/28/2026, 23:15:31 UTC)
Source: GCVE Database
Product: librastandardlib

Description

The npm package 'librastandardlib' version 45.0.0 contains malicious code delivered via a self-referential dependency that points to an off-registry URL. Installing this package causes npm to fetch and execute code from a remote server controlled by an attacker, potentially compromising the installer's machine. The shipped code itself is inert, but the dependency mechanism enables arbitrary code execution during installation. Systems with this package installed should be considered fully compromised, and all secrets and keys must be rotated. Removal of the package alone may not eliminate all malicious artifacts.

Affected software

npmghsa
librastandardlib
Affected versions
=45.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/09/2026, 20:39:05 UTC

Technical Analysis

The 'librastandardlib' npm package version 45.0.0 declares a dependency with the same name as the package, but instead of a version range, it uses an off-registry HTTPS URL (https://repo.securityctrl.com/librastandardlib). When npm installs this package, it fetches code from this external URL and executes lifecycle scripts without version pinning or integrity checks. This dependency-confusion technique allows an attacker controlling the external repository to run arbitrary code on the installer's machine. The package's index.js is a benign stub, making the manifest URL the actual attack vector. This results in full compromise of any system installing this package version.

Potential Impact

Any computer with 'librastandardlib' version 45.0.0 installed or running is considered fully compromised. The attacker gains arbitrary code execution during installation, potentially leading to theft of secrets, keys, and full system control. Because the malicious payload is delivered via an external URL and executed without integrity verification, the attacker can modify the payload at will. Simply removing the package does not guarantee removal of all malicious software introduced, necessitating secret/key rotation from a trusted environment.

Mitigation Recommendations

No official patch or fix is currently documented. The best mitigation is to immediately remove the 'librastandardlib' package version 45.0.0 from all systems. Rotate all secrets and keys that may have been exposed, performing this from a secure, uncompromised machine. Avoid installing packages that declare dependencies via off-registry URLs without integrity checks. Monitor for any suspicious activity resulting from this compromise. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-15538
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a92f7e3acd9273b49e75ce4

Added to database: 08/29/2026, 15:16:51 UTC

Last enriched: 09/09/2026, 20:39:05 UTC

Last updated: 10/01/2026, 22:27:24 UTC

Views: 22

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses