Malicious code in ambera (npm)
Description
The ambera npm package versions 1.0.0 and 1.0.1 contain malicious code that executes arbitrary JavaScript fetched from a remote server with disabled TLS verification. The package masquerades as an SVG helper but its getPlugin() function downloads code from a lookalike Avalanche RPC endpoint and executes it with Node's require function, enabling remote code execution on the caller's machine.
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 ambera package, presented as a zero-dependency SVG helper, includes a getPlugin() function that performs an HTTPS GET request to a hardcoded remote host (https://api.avax-test.dev/ext/bc/rpc) with TLS verification disabled (rejectUnauthorized: false). The response body is passed directly to new Function('require', data)(require), causing any JavaScript returned by the remote host to be executed with access to Node's require function. This creates a concealed remote code execution channel unrelated to the package's stated purpose. The remote host is a lookalike of the legitimate Avalanche Fuji RPC endpoint, and the Avalanche/Snowtrace naming is a cover story. This behavior affects ambera versions 1.0.0 and 1.0.1.
Potential Impact
Any user invoking the getPlugin() function in affected ambera versions risks arbitrary remote code execution on their system, as the package executes JavaScript fetched from a malicious remote server with disabled TLS verification. This can lead to full compromise of the environment running the package.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately cease using ambera versions 1.0.0 and 1.0.1. Avoid calling the getPlugin() function or any functionality from this package. Monitor for updates from the package maintainer or npm registry for any official fixes or removals. Until then, consider removing the package from projects and replacing it with trusted alternatives.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14225
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a85b4c2acd9273b492524c5
Added to database: 08/19/2026, 13:50:58 UTC
Last enriched: 08/19/2026, 14:30:17 UTC
Last updated: 10/02/2026, 13:52:15 UTC
Views: 26
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.