Malicious Code Injection in pflag14570 Package - Session Cookie Theft

pflag14570 Updated 21 Sep 2026

Summary

21/09/2026
CRITICAL
No i
Critical
Not published

MAL-2026-16341: Malicious code in pflag14570 (npm). Affects pflag14570 versions 1.0.0. 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 pflag14570 package is an npm module that, based on its metadata, lacks a legitimate documented function. It is designed to be used in a browser context, but it has been identified as containing malicious code that executes upon loading the module. This code is capable of reading session cookies and scraping sensitive application paths, posing a significant security risk to users.

Vulnerability Detail

The vulnerability originates from an embedded malicious code within the pflag14570 package. When the module is loaded, it executes an Immediately Invoked Function Expression (IIFE) that reads the document.cookie, fetches a list of authenticated application paths, extracts sensitive information, and sends this data to a hardcoded external collector. This poses a risk of session hijacking and unauthorized access to user accounts, making it critical for users of this package to take immediate action.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall pflag14570

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 this malicious code by removing the pflag14570 package from your dependencies and replacing it with a secure alternative that provides similar functionality without the security risks.

Conclusion

The pflag14570 package poses a serious security threat due to its embedded malicious code that can steal session cookies and scrape sensitive information. Users are advised to remove this package and monitor their applications for any signs of compromise. Utilizing tools like Vulert can help in identifying vulnerabilities in real-time.

See every vulnerability recorded for pflag14570 →

Share this vulnerability

FAQ

pflag14570 is an npm package that has been identified as containing malicious code designed to steal session cookies and scrape sensitive information from web applications.

The malicious code executes when the module is loaded, reading cookies and sending sensitive data to an external server controlled by attackers.

The risks include session hijacking, unauthorized access to user accounts, and potential data breaches, which can lead to significant security incidents.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

If you have used the pflag14570 package, it is crucial to remove it from your project immediately and replace it with a secure alternative.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall pflag14570

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