Malicious Code Detected in com.unity.xrtools.utils: A Critical Security Alert
Summary
MAL-2025-17376: Malicious code in com.unity.xrtools.utils (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 package com.unity.xrtools.utils is a utility library designed for Unity developers, providing essential tools and functionalities to enhance XR (Extended Reality) development. It is widely used in various projects to streamline development processes. However, recent findings have revealed that this package contains malicious code, posing significant security risks to users and their applications.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code within the com.unity.xrtools.utils package. This code can potentially compromise the integrity of applications utilizing this package, leading to unauthorized access, data breaches, or other malicious activities. The issue was introduced from version 0 and affects all subsequent versions, making it imperative for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall com.unity.xrtools.utils
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 measure, users can remove the com.unity.xrtools.utils package from their project until a secure version is released. This can be done by executing the following command: npm uninstall com.unity.xrtools.utils. Additionally, consider using alternative packages that provide similar functionalities without the associated risks.
Conclusion
The discovery of malicious code in the com.unity.xrtools.utils package poses a serious threat to developers and their applications. Immediate action is required to mitigate risks, including updating the package or removing it from projects. Utilizing tools like Vulert can aid in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for com.unity.xrtools.utils →
FAQ
The malicious code can lead to unauthorized access and potential data breaches, compromising the security of applications that utilize this package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
Users are encouraged to check the package repository for any updates that address this security issue. If a patched version is available, updating the package is crucial.
As a workaround, consider uninstalling the com.unity.xrtools.utils package until a secure version is released, or look for alternative packages that provide similar functionalities.
The vulnerability was identified by Amazon Inspector, a security tool that helps in detecting vulnerabilities in software packages.