Malicious Code Vulnerability in junior_swift_z3n Package
Summary
MAL-2025-95159: Malicious code in junior_swift_z3n (npm). Affected versions are not published. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The junior_swift_z3n package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate token rewards through automated publishing scripts. However, it has been compromised to include malicious code that alters its functionality and impacts the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the junior_swift_z3n package originates from its association with a malicious campaign that floods the npm registry with derivative packages. The malicious payload modifies the package.json file to remove private flags, changes version numbers, and generates random package names. This behavior can lead to the pollution of the npm registry and can inflate developer reputation scores fraudulently, posing significant risks to developers and users relying on the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall junior_swift_z3n
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 remove the junior_swift_z3n package from your project dependencies by running the following command: npm uninstall junior_swift_z3n. This will prevent the execution of any malicious code associated with the package.
Conclusion
The junior_swift_z3n package contains a serious vulnerability due to malicious code that alters its functionality and impacts the npm registry. It is crucial for developers to remove this package from their projects and monitor for any updates or patches. Utilizing tools like Vulert can help in identifying vulnerabilities in your dependencies.
See every vulnerability recorded for junior_swift_z3n →
FAQ
The junior_swift_z3n package is an npm package that was part of a token reward campaign but has been compromised to include malicious code.
The malicious code modifies your package.json file, removes private flags, and generates random package names, which can lead to npm registry pollution and affect your project's integrity.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.
If you have installed the junior_swift_z3n package, you should uninstall it immediately using the command: npm uninstall junior_swift_z3n.
Currently, there are no safe versions of the junior_swift_z3n package. It is recommended to remove it from your dependencies until a patched version is released.