Vulnerabilities in pkg:npm/@farmfe/core

PACKAGE
Advisory Identifier: GHSA-p773-8mf4-rjm5
Advisory Summary

CVE-2025-56647 is a MODERATE (CVSS 6.5) @farmfe/core is missing origin validation vulnerability (CWE-1385: Missing Origin Validation in WebSockets) affecting @farmfe/core libraries in the npm ecosystem. The issue involves @farmfe/core is missing origin validation in websocket. Remediation is available by upgrading affected packages to version 1.7.6.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@farmfe/core

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@farmfe/core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-p773-8mf4-rjm5 CVE-2025-56647 MODERATE @farmfe/core is Missing Origin Validation in WebSocket

CVE-2025-56647 at a Glance

CVE Identifier CVE-2025-56647
GHSA Identifier GHSA-p773-8mf4-rjm5
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-1385: Missing Origin Validation in WebSockets
Affected Product @farmfe/core
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2025-56647

To remediate this vulnerability, upgrade all affected @farmfe/core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@farmfe/core fixed: 1.7.6
npm install @farmfe/core@1.7.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @farmfe/core

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-56647, inspect your project dependencies using npm:

npm ls @farmfe/core

Analyze the terminal output to locate any version of @farmfe/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.6), your application is affected.

Note: The npm ls @farmfe/core command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1385: Missing Origin Validation in WebSockets, where the product uses a websocket, but it does not properly verify that the source of data or communication is valid. In @farmfe/core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

npm @farmfe/core before 1.7.6 is Missing Origin Validation in WebSocket. The development (hot module reloading) server does not validate origin when connecting to a WebSocket client. This allows attackers to surveil developers running Farm who visit their webpage and steal source code that is leaked by the WebSocket server.

CVE-2025-56647 Affected @farmfe/core Versions

1 component(s)
Fixed Versions:
1.7.6
Product / Package Ecosystem Affected Versions Fixed Version
@farmfe/core
npm
< 1.7.6
1.7.6

References

Frequently Asked Questions

What is CVE-2025-56647?
CVE-2025-56647 is a security vulnerability in @farmfe/core involving @farmfe/core is Missing Origin Validation in WebSocket under CWE-1385: Missing Origin Validation in WebSockets.
Which @farmfe/core versions are affected?
Affected versions include releases prior to 1.7.6 across affected packages: @farmfe/core.
What version fixes CVE-2025-56647?
Upgrading to 1.7.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @farmfe/core affected?
Yes, @farmfe/core is affected in releases prior to 1.7.6. Upgrade your dependency to 1.7.6 or later.
What is the CVSS score of CVE-2025-56647?
CVE-2025-56647 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2025-56647?
CVE-2025-56647 is classified under CWE-1385: Missing Origin Validation in WebSockets (The product uses a WebSocket, but it does not properly verify that the source of data or communication is valid.).
How can I check npm dependencies for CVE-2025-56647?
Run the dependency tree command: 'npm ls @farmfe/core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-p773-8mf4-rjm5",
  "modified" : "2026-02-12T22:14:12Z",
  "published" : "2026-02-12T18:30:23Z",
  "aliases" : [ "CVE-2025-56647" ],
  "summary" : "@farmfe/core is Missing Origin Validation in WebSocket",
  "details" : "npm @farmfe/core before 1.7.6 is Missing Origin Validation in WebSocket. The development (hot module reloading) server does not validate origin when connecting to a WebSocket client. This allows attackers to surveil developers running Farm who visit their webpage and steal source code that is leaked by the WebSocket server.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@farmfe/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-56647"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/farm-fe/farm/issues/2168"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/farm-fe/farm/commit/83342ef06e0aea37270950fd8c930422c4df0679"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/R4356th/d4372c6f83275d583c180c0e7d7332af"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/farm-fe/farm"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1385" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-12T22:14:11Z",
    "nvd_published_at" : "2026-02-12T16:16:03Z"
  }
}