Malicious code in @sql-access/nodesql (npm)
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.
AI Analysis
Technical Summary
@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.
Malicious code in @sql-access/nodesql (npm)
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
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.