Critical Malicious Code Vulnerability in focus-sherlock Package

focus-sherlock Updated 02 Oct 2025

Summary

14/08/2025
CRITICAL
No i
Critical
Not published

MAL-2025-20733: Malicious code in focus-sherlock (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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

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 →

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