Malicious Code Injection in async-json-metalsmith-elektra Package

Summary

12/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-139628: Malicious code in async-json-metalsmith-elektra (npm). Affected versions are not published. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The async-json-metalsmith-elektra package is part of the npm ecosystem and is used in conjunction with Metalsmith, a static site generator. This package is intended to facilitate asynchronous JSON processing within the Metalsmith framework. However, it has been identified as part of a malicious campaign that exploits npm's package publishing system, leading to severe vulnerabilities.

Vulnerability Detail

The vulnerability originates from a malicious payload embedded within the async-json-metalsmith-elektra package. This payload modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which are then republished to the npm registry. This behavior not only compromises the integrity of the affected package but also pollutes the npm ecosystem, potentially leading to reputation damage for developers and security risks for users who unknowingly install these malicious variants.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall async-json-metalsmith-elektra

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can prevent the installation of the async-json-metalsmith-elektra package by using npm's package-lock.json file to lock dependencies. Additionally, you can monitor your project for vulnerabilities using tools like Vulert, which analyzes your package-lock.json file for any known vulnerabilities.

Conclusion

The async-json-metalsmith-elektra package has been compromised with malicious code that poses significant risks to users and the npm ecosystem. It is essential to take immediate action by removing the package and monitoring your project for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.

See every vulnerability recorded for async-json-metalsmith-elektra →

Share this vulnerability

FAQ

It is an npm package designed to work with Metalsmith for asynchronous JSON processing.

The vulnerability can lead to the installation of malicious code that modifies your package.json and repopulates the npm registry with harmful packages.

You should immediately remove the package and check for any unauthorized changes to your project files.

Yes, you can use Vulert to monitor your project for open-source vulnerabilities by analyzing your package-lock.json file.

Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities without needing to sign up.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall async-json-metalsmith-elektra

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.