auth-next-gen
auth-next-gen is a lightweight npm module that synchronizes authentication state between server-side rendered (SSR) pages and client-side applications
This report shows the evidence for auth-next-gen@1.7.2. 3 of 4 known versions are blocked or flagged. The newest version, 0.0.1-security, is allowed. See all versions.
AI Security Review
scanned 4mo ago · by lpm-firewall-aiStatic source inspection confirms concrete import-time remote code execution with environment and host data staged in scope, hidden behind obfuscated endpoint strings. This is not package-aligned functionality for an SSR auth helper and warrants blocking.
Decision evidence
public snapshot- package.json main is index.js with no lifecycle hook but normal import entrypoint.
- index.js requires ./lib/writer at top level, so importing the package runs writer.js immediately.
- lib/writer.js builds a data object from process.env, hostname, username, platform, and MAC addresses.
- lib/writer.js fetches a Base64-hidden URL and evals r.data.data from the response.
- lib/writer.js contains additional obfuscated hex strings for axios/get/jsonkeeper/then.
- No install/preinstall/postinstall script in package.json.
- No file writes, persistence hooks, or AI-agent control-surface mutations found in inspected package files.
Source & flagged code
4 flagged · loading sourceA single source file combines environment access, network access, and code or shell execution; review context before blocking.
lib/writer.jsView on unpkg · L20Source decodes a Base64-obscured HTTP endpoint at runtime.
lib/writer.jsView on unpkg · L28Findings
Affected versions and remediation
This report applies to auth-next-gen@1.7.2.
The versions list below shows the verdict for each recorded version.
- Avoid installing auth-next-gen@1.7.2. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.