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…

MAL-2026-10180: Malicious code in auth-next-gen (npm)

0
Critical
Published: 07/10/2026 (07/10/2026, 22:42:02 UTC)
Source: GCVE Database
Product: auth-next-gen

Description

The npm package auth-next-gen contains malicious code that executes arbitrary code fetched from an attacker-controlled URL during module loading. It also collects and exfiltrates sensitive environment and system information. The malicious payload is dynamically loaded from a mutable anonymous pastebin service, allowing the attacker to change the executed code without updating the package. The package masquerades as a legitimate SSR auth-sync helper by reusing assets from a known logging project. Installation or use of this package results in full system compromise.

Affected software

npmghsa
auth-next-gen
Affected versions
=1.6.29=1.7.11=1.7.2

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, 09:43:33 UTC

Technical Analysis

The auth-next-gen npm package versions 1.6.29, 1.7.2, and 1.7.11 include a malicious module (writer.js) that performs an axios GET request to a base64- and hex-obfuscated URL hosted on jsonkeeper.com, an anonymous pastebin service. The response body is passed directly to eval(), enabling arbitrary code execution controlled by the attacker at install or runtime. Concurrently, the module collects extensive system information including environment variables, OS platform, hostname, username, and MAC addresses, which it stages for exfiltration alongside the fetched payload. The package's metadata and assets are designed to appear as a legitimate SSR auth-sync helper, using assets from the pino logger project as a lure. Because the payload is hosted on a mutable external service, the executed code can change dynamically without any package update. This results in a fully compromised system upon installation or execution of the package.

Potential Impact

Any system with the affected versions of auth-next-gen installed or running is fully compromised, as the package executes arbitrary attacker-controlled code and exfiltrates sensitive system information. All secrets and keys stored on the compromised system should be considered exposed and must be rotated immediately. Removal of the package alone does not guarantee eradication of all malicious artifacts or backdoors introduced by the attacker.

Mitigation Recommendations

No official patch or fix is available. Immediate removal of the auth-next-gen package versions 1.6.29, 1.7.2, and 1.7.11 is strongly recommended. All secrets, credentials, and keys on affected systems should be rotated from a separate, trusted environment. Due to the severity and nature of the compromise, affected systems should be treated as fully compromised and undergo thorough incident response and 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-10180
Osv Schema Version
1.7.4
Aliases
["GHSA-8qpp-8j53-4wh7"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a520e9e68715ace438f3f88

Added to database: 07/11/2026, 09:36:30 UTC

Last enriched: 07/11/2026, 09:43:33 UTC

Last updated: 07/11/2026, 09:43:33 UTC

Views: 2

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