Malicious Code Detected in com.unity.xr.arfoundation: A Critical Security Alert
Summary
MAL-2025-17369: Malicious code in com.unity.xr.arfoundation (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.xr.arfoundation is a popular npm package used for augmented reality development within the Unity framework. It provides essential tools and functionalities for developers to create immersive AR experiences. However, recent findings have revealed that this package contains malicious code, posing significant risks to users and their applications.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the com.unity.xr.arfoundation package. This code can compromise the security of applications that utilize the package, potentially leading to unauthorized access, data breaches, or other malicious activities. The severity of this vulnerability necessitates immediate attention from developers and users alike.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall com.unity.xr.arfoundation
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, consider removing the com.unity.xr.arfoundation package from your project until a secure version is released. You can do this by executing the command: 'npm uninstall com.unity.xr.arfoundation'. This will help prevent any potential exploitation of the malicious code.
Conclusion
The discovery of malicious code in the com.unity.xr.arfoundation package highlights the importance of vigilance in software development. Developers should take immediate action to update or remove the affected package to protect their applications from potential threats. Utilizing tools like Vulert can further enhance security by providing real-time alerts for vulnerabilities.
See every vulnerability recorded for com.unity.xr.arfoundation →
FAQ
The malicious code can compromise application security, leading to unauthorized access and potential data breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
Currently, there is no specific patch version mentioned. It is advisable to keep an eye on updates from the package maintainers.
As a temporary measure, consider uninstalling the package to mitigate risks until a secure version is available.
Regularly check vulnerability databases and consider using tools like Vulert for real-time monitoring of your dependencies.