Malicious Code Exfiltration in pf23727 Package
Summary
MAL-2026-16338: Malicious code in pf23727 (npm). Affects pf23727 versions 1.0.0. 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 pf23727 package is an npm library that, under normal circumstances, would serve a legitimate purpose in web development. However, it has been identified as containing malicious code that compromises user data. The package's main file, index.js, executes immediately upon import, which allows it to perform unauthorized actions such as reading cookies and sending sensitive information to a third-party server.
Vulnerability Detail
The vulnerability in the pf23727 package stems from embedded malicious code that reads document cookies and captures authenticated responses from the user's session. It issues a fetch request to '/profile' with credentials included, exfiltrating sensitive data to a hardcoded collector at a third-party service. This behavior poses a significant risk as it can lead to unauthorized access to user accounts and data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall pf23727
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 prevent the execution of the pf23727 package by removing it from your dependencies and replacing it with a secure alternative that provides similar functionality without the risk of data exfiltration.
Conclusion
The pf23727 package poses a serious security risk due to its embedded malicious code that exfiltrates sensitive user data. Immediate action is required to remove this package and safeguard user information. Regular monitoring for vulnerabilities is essential to maintain application security.
See every vulnerability recorded for pf23727 →
FAQ
pf23727 is an npm package that has been identified to contain malicious code capable of exfiltrating sensitive user data.
The malicious code reads cookies and sends authenticated user data to a third-party server, compromising user privacy and security.
You should immediately remove the pf23727 package from your project and monitor for any unauthorized access to user accounts.
Currently, there is no patched version available. It is recommended to remove the package until a secure alternative is found.
You can use Vulert to monitor your application for open-source vulnerabilities in real-time. Vulert requires only the package-lock.json file to alert you about potential issues.