Malicious code in qr-code-styling-temp (npm)
Description
The npm package 'qr-code-styling-temp' is a malicious typosquatting package impersonating the legitimate 'qr-code-styling' library. It executes code during installation and runtime that collects system information such as username, hostname, and current directory, then exfiltrates this data via DNS queries to an attacker-controlled domain. This behavior occurs on every npm install and require call, potentially compromising the host system. The package's author email and exfiltration domain share the same attacker-controlled domain, confirming malicious intent. Systems with this package installed should be considered fully compromised.
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
The 'qr-code-styling-temp' npm package contains malicious code that triggers during the install lifecycle script and on every require call. It loads system modules dynamically to evade static detection and collects sensitive system identifiers (username, hostname, current working directory). This information is encoded into a subdomain and sent via DNS resolution requests to a command-and-control domain 'oob.sl4x0.xyz', enabling out-of-band data exfiltration. The package is a typosquat of the legitimate 'qr-code-styling' library, with a different API and attacker-controlled infrastructure. The presence of this package indicates a full system compromise risk.
Potential Impact
Any system with this package installed or running is at high risk of compromise due to active data exfiltration of sensitive system information. The attacker gains knowledge of the user identity and system environment, which can facilitate further attacks or unauthorized access. The compromise is severe enough that all secrets and keys on the affected system should be considered exposed and rotated immediately. Removing the package alone may not eliminate all malicious artifacts or backdoors.
Mitigation Recommendations
Remove the 'qr-code-styling-temp' package immediately from all affected systems. Consider all systems with this package installed as fully compromised. Rotate all secrets, credentials, and keys from a secure, unaffected system. Conduct a full security audit and forensic analysis to identify and remediate any persistent malicious presence. There is no official patch or fix for this malicious package; prevention involves avoiding installation of typosquatting packages and verifying package authenticity before use.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-4655
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-pp2c-4x5r-7h8j"]
- Ecosystems
- ["npm"]
Threat ID: 6a885f1aacd9273b493f7916
Added to database: 08/21/2026, 14:22:18 UTC
Last enriched: 09/10/2026, 18:06:34 UTC
Last updated: 10/04/2026, 04:46:17 UTC
Views: 20
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.