Malicious code in qr-code-styling-temp (npm)
The npm package 'qr-code-styling-temp' is a malicious typosquatting package impersonating the legitimate 'qr-code-styling' library. It contains code that exfiltrates user and system information via DNS queries to an attacker-controlled domain during installation and runtime. Installing or running this package can lead to full system compromise, requiring immediate secret and key rotation and package removal.
AI Analysis
Technical Summary
The 'qr-code-styling-temp' npm package includes malicious code that executes during its install lifecycle script and whenever it is required. It collects the username, hostname, and current working directory basename from the host system and encodes this information into a subdomain of 'oob.sl4x0.xyz'. It then performs a DNS resolve4 lookup to this subdomain, effectively leaking sensitive environment details to an attacker-controlled domain. The package uses obfuscation techniques such as hiding module names and the command-and-control domain in character code arrays and dynamically loading modules to evade static detection. The package name mimics a popular library to lure victims, and the author email domain matches the exfiltration domain, confirming attacker control. The package versions 9.9.10 and 9.9.11 are affected. According to the source, any system with this package installed should be considered fully compromised.
Potential Impact
Systems with this package installed or running are at high risk of full compromise. Sensitive information such as usernames, hostnames, and working directory names are exfiltrated to an attacker-controlled domain. The compromise may allow attackers to gain persistent access and control over the affected system. Secrets and keys stored on the compromised system should be considered exposed and require immediate rotation from a secure environment. Removal of the package alone does not guarantee eradication of all malicious artifacts.
Mitigation Recommendations
Remove the 'qr-code-styling-temp' package immediately from all affected systems. Rotate all secrets, credentials, and keys that were stored or used on the compromised system from a different, trusted environment. Because the package may have allowed full system compromise, conduct a thorough incident response and forensic analysis to identify and remediate any additional persistence mechanisms or malware. No official patch or fix is available; the package itself is malicious and should be avoided entirely.
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 contains code that exfiltrates user and system information via DNS queries to an attacker-controlled domain during installation and runtime. Installing or running this package can lead to full system compromise, requiring immediate secret and key rotation and package removal.
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 includes malicious code that executes during its install lifecycle script and whenever it is required. It collects the username, hostname, and current working directory basename from the host system and encodes this information into a subdomain of 'oob.sl4x0.xyz'. It then performs a DNS resolve4 lookup to this subdomain, effectively leaking sensitive environment details to an attacker-controlled domain. The package uses obfuscation techniques such as hiding module names and the command-and-control domain in character code arrays and dynamically loading modules to evade static detection. The package name mimics a popular library to lure victims, and the author email domain matches the exfiltration domain, confirming attacker control. The package versions 9.9.10 and 9.9.11 are affected. According to the source, any system with this package installed should be considered fully compromised.
Potential Impact
Systems with this package installed or running are at high risk of full compromise. Sensitive information such as usernames, hostnames, and working directory names are exfiltrated to an attacker-controlled domain. The compromise may allow attackers to gain persistent access and control over the affected system. Secrets and keys stored on the compromised system should be considered exposed and require immediate rotation from a secure environment. Removal of the package alone does not guarantee eradication of all malicious artifacts.
Defensive Guidance
Remove the 'qr-code-styling-temp' package immediately from all affected systems. Rotate all secrets, credentials, and keys that were stored or used on the compromised system from a different, trusted environment. Because the package may have allowed full system compromise, conduct a thorough incident response and forensic analysis to identify and remediate any additional persistence mechanisms or malware. No official patch or fix is available; the package itself is malicious and should be avoided entirely.
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"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a885f1aacd9273b493f7916
Added to database: 08/21/2026, 14:22:18 UTC
Last enriched: 08/21/2026, 14:28:34 UTC
Last updated: 08/21/2026, 22:24:28 UTC
Views: 3
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.
External Links
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.