Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in @sql-access/nodesql (npm)

0
Critical
Published: 06/09/2026 (06/09/2026, 15:58:52 UTC)
Source: GCVE Database
Product: @sql-access/nodesql

Description

The npm package @sql-access/nodesql is a malicious decoy package that misrepresents its functionality and silently executes attacker-controlled code. It masquerades as a SQL/Node utility but contains unrelated code copied from a Buffer polyfill and injects a dynamic import of a separate malicious package (@sqlite-node/createsql). Installing or requiring this package results in the execution of untrusted code, potentially compromising the host system. The package versions explicitly identified as affected include multiple 1.0.x and 1.1.x releases. Due to the nature of the attack, any system with this package installed should be considered fully compromised, and secrets should be rotated immediately. No official patch or remediation is provided, and removal alone may not fully restore system integrity.

Affected software

npmghsa
@sql-access/nodesql
Affected versions
=1.0.7=1.1.7=1.1.8=1.0.5=1.1.6=1.1.3=1.1.4=1.1.2=1.0.9=1.1.5=1.0.8=1.1.1=1.0.6

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: 07/11/2026, 13:16:10 UTC

Technical Analysis

@sql-access/nodesql versions 1.0.5 through 1.1.8 (specific versions enumerated) are malicious decoy packages that do not perform their advertised SQL or Buffer polyfill functions. Instead, they inject a dynamic import statement that loads and executes the top-level code of an attacker-controlled package (@sqlite-node/createsql) at runtime. This results in silent execution of malicious code on any system that installs or requires @sql-access/nodesql. The package's README and code are inconsistent with its name and advertised purpose, indicating a supply-chain attack pattern involving namesquatting and dynamic code loading. The attack compromises the host system, potentially exposing all stored secrets and keys.

Potential Impact

Systems with any of the affected @sql-access/nodesql package versions installed or running are considered fully compromised. The malicious package executes attacker-controlled code silently, potentially allowing unauthorized access, data exfiltration, or further system compromise. All secrets and keys stored on the compromised system should be considered exposed and must be rotated from a secure environment. Simply removing the package does not guarantee removal of all malicious artifacts or backdoors introduced by the attacker.

Mitigation Recommendations

No official patch or fix is currently available for this malicious package. Immediate removal of @sql-access/nodesql from affected systems is recommended. All secrets, credentials, and keys stored on compromised systems should be rotated immediately from a different, trusted environment. Due to the high likelihood of full system compromise, consider rebuilding affected systems from known-good backups or reinstalling the operating system to ensure complete remediation.

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-5394
Osv Schema Version
1.7.4
Aliases
["GHSA-qpx3-6fx4-259q"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a483ca027e9c79719d7f9f3

Added to database: 07/03/2026, 22:50:08 UTC

Last enriched: 07/11/2026, 13:16:10 UTC

Last updated: 07/20/2026, 22:26:08 UTC

Views: 8

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