7.3
HIGH CVSS 4.0
CVE-2025-64726
External Control of System or Configuration Setting and Uncontrolled Search Path Element in sfw
Description

Socket Firewall is an HTTP/HTTPS proxy server that intercepts package manager requests and enforces security policies by blocking dangerous packages. Socket Firewall binary versions (separate from installers) prior to 0.15.5 are vulnerable to arbitrary code execution when run in untrusted project directories. The vulnerability allows an attacker to execute arbitrary code by placing a malicious `.sfw.config` file in a project directory. When a developer runs Socket Firewall commands (e.g., `sfw npm install`) in that directory, the tool loads the `.sfw.config` file and populates environment variables directly into the Node.js process. An attacker can exploit this by setting `NODE_OPTIONS` with a `--require` directive to execute malicious JavaScript code before Socket Firewall's security controls are initialized, effectively bypassing the tool's malicious package detection. The attack vector is indirect and requires a developer to install dependencies for an untrusted project and execute a command within the context of the untrusted project. The vulnerability has been patched in Socket Firewall version 0.15.5. Users should upgrade to version 0.15.5 or later. The fix isolates configuration file values from subprocess environments. Look at `sfw --version` for version information. If users rely on the recommended installation mechanism (e.g. global installation via `npm install -g sfw`) then no workaround is necessary. This wrapper package automatically ensures that users are running the latest version of Socket Firewall. Users who have manually installed the binary and cannot immediately upgrade should avoid running Socket Firewall in untrusted project directories. Before running Socket Firewall in any new project, inspect `.sfw.config` and `.env.local` files for suspicious `NODE_OPTIONS` or other environment variable definitions that reference local files.

INFO

Published Date :

Nov. 13, 2025, 8:15 p.m.

Last Modified :

Oct. 18, 2026, 8:10 p.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2025-64726 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Socketdev firewall-release
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 4.0 HIGH [email protected]
Solution
Update Socket Firewall to version 0.15.5 or later to fix arbitrary code execution.
  • Upgrade Socket Firewall to version 0.15.5 or later.
  • Inspect configuration files for suspicious environment variables.
  • Avoid running in untrusted project directories.
  • Ensure global installation via npm.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2025-64726.

URL Resource
https://bsky.app/profile/evilpacket.net/post/3m4iylwxtns2t
https://github.com/SocketDev/firewall-release/security/advisories/GHSA-6c5p-vqrh-h6fp
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-64726 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-64726 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-64726 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Oct. 18, 2026

    Action Type Old Value New Value
    Added Translation Title: firewall-release de SocketDev, Description: Socket Firewall es un servidor proxy HTTP/HTTPS que intercepta solicitudes del gestor de paquetes y aplica políticas de seguridad bloqueando paquetes peligrosos. Versiones binarias de Socket Firewall (separadas de los instaladores) anteriores a la 0.15.5 son vulnerables a la ejecución de código arbitrario cuando se ejecutan en directorios de proyectos no confiables. La vulnerabilidad permite a un atacante ejecutar código arbitrario colocando un archivo '.sfw.config' malicioso en un directorio de proyecto. Cuando un desarrollador ejecuta comandos de Socket Firewall (por ejemplo, 'sfw npm install') en ese directorio, la herramienta carga el archivo '.sfw.config' y rellena las variables de entorno directamente en el proceso de Node.js. Un atacante puede explotar esto configurando 'NODE_OPTIONS' con una directiva '--require' para ejecutar código JavaScript malicioso antes de que se inicialicen los controles de seguridad de Socket Firewall, eludiendo eficazmente la detección de paquetes maliciosos de la herramienta. El vector de ataque es indirecto y requiere que un desarrollador instale dependencias para un proyecto no confiable y ejecute un comando dentro del contexto del proyecto no confiable. La vulnerabilidad ha sido parcheada en la versión 0.15.5 de Socket Firewall. Los usuarios deben actualizar a la versión 0.15.5 o posterior. La corrección aísla los valores del archivo de configuración de los entornos de subproceso. Consulte 'sfw --version' para obtener información sobre la versión. Si los usuarios confían en el mecanismo de instalación recomendado (por ejemplo, instalación global a través de 'npm install -g sfw'), entonces no es necesaria ninguna solución alternativa. Este paquete envoltorio asegura automáticamente que los usuarios estén ejecutando la última versión de Socket Firewall. Los usuarios que han instalado manualmente el binario y no pueden actualizar inmediatamente deben evitar ejecutar Socket Firewall en directorios de proyectos no confiables. Antes de ejecutar Socket Firewall en cualquier proyecto nuevo, inspeccione los archivos '.sfw.config' y '.env.local' en busca de 'NODE_OPTIONS' sospechosas u otras definiciones de variables de entorno que hagan referencia a archivos locales.
  • CVE Modified by [email protected]

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'SocketDev', 'product': 'firewall-release', 'versions': [{'status': 'affected', 'version': '< 0.15.5'}]}]
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 17, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2025-64726', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2025-11-13T20:14:35.678135Z'}
  • New CVE Received by [email protected]

    Nov. 13, 2025

    Action Type Old Value New Value
    Added Description Socket Firewall is an HTTP/HTTPS proxy server that intercepts package manager requests and enforces security policies by blocking dangerous packages. Socket Firewall binary versions (separate from installers) prior to 0.15.5 are vulnerable to arbitrary code execution when run in untrusted project directories. The vulnerability allows an attacker to execute arbitrary code by placing a malicious `.sfw.config` file in a project directory. When a developer runs Socket Firewall commands (e.g., `sfw npm install`) in that directory, the tool loads the `.sfw.config` file and populates environment variables directly into the Node.js process. An attacker can exploit this by setting `NODE_OPTIONS` with a `--require` directive to execute malicious JavaScript code before Socket Firewall's security controls are initialized, effectively bypassing the tool's malicious package detection. The attack vector is indirect and requires a developer to install dependencies for an untrusted project and execute a command within the context of the untrusted project. The vulnerability has been patched in Socket Firewall version 0.15.5. Users should upgrade to version 0.15.5 or later. The fix isolates configuration file values from subprocess environments. Look at `sfw --version` for version information. If users rely on the recommended installation mechanism (e.g. global installation via `npm install -g sfw`) then no workaround is necessary. This wrapper package automatically ensures that users are running the latest version of Socket Firewall. Users who have manually installed the binary and cannot immediately upgrade should avoid running Socket Firewall in untrusted project directories. Before running Socket Firewall in any new project, inspect `.sfw.config` and `.env.local` files for suspicious `NODE_OPTIONS` or other environment variable definitions that reference local files.
    Added CVSS V4.0 AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CWE CWE-427
    Added CWE CWE-15
    Added Reference https://bsky.app/profile/evilpacket.net/post/3m4iylwxtns2t
    Added Reference https://github.com/SocketDev/firewall-release/security/advisories/GHSA-6c5p-vqrh-h6fp
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.