Skip to main content

Malicious code in ambera (npm)

0
Critical
Published: 08/19/2026 (08/19/2026, 03:36:58 UTC)
Source: GCVE Database
Product: ambera

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

npmghsa
ambera
Affected versions
=1.0.0=1.0.1

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: 08/19/2026, 14:30:17 UTC

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.

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-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 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