Critical Malicious Code Vulnerability in focus-sherlock Package
Summary
MAL-2025-20733: Malicious code in focus-sherlock (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 focus-sherlock package is an npm library designed to assist developers in managing focus states within web applications. It provides utilities for tracking and manipulating focus, enhancing user experience and accessibility. However, it has been identified to contain malicious code that poses a significant security risk to applications utilizing this package.
Vulnerability Detail
The focus-sherlock package has been found to contain malicious code that can compromise the security of applications using it. This vulnerability originates from the package itself, which was introduced in version 0 and has the potential to execute harmful actions within the application environment. The ramifications of this vulnerability include unauthorized access, data breaches, and potential exploitation by malicious actors.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall focus-sherlock
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 using alternative packages that provide similar functionality without the associated risks. Always ensure to review the security history of any package before integrating it into your project.
Conclusion
The focus-sherlock package has been identified as containing malicious code, posing a significant security risk. It is crucial for developers to uninstall this package and consider alternatives to safeguard their applications. Regularly monitoring for vulnerabilities using tools like Vulert can help maintain application security.
See every vulnerability recorded for focus-sherlock →
FAQ
Focus-sherlock is an npm package that helps manage focus states in web applications, enhancing accessibility and user experience.
The malicious code can execute harmful actions, potentially leading to unauthorized access and data breaches.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
You should uninstall the package immediately and consider using alternative solutions until a secure version is released.
Yes, there are several alternative packages available that provide similar functionality without the associated risks. Always review their security history before use.