Skip to main content

FUXA CVE-2026-43947

HIGH
Incorrect Authorization (CWE-863)
2026-05-26 https://github.com/frangoteam/FUXA GHSA-rg3m-cfq7-g6h6
8.9
CVSS 4.0 · Vendor: https://github.com/frangoteam/FUXA
Share

Severity by source

Vendor (https://github.com/frangoteam/FUXA) PRIMARY
8.9 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/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
vuln.today AI
9.8 CRITICAL

Unauthenticated network RCE with no user interaction (guest auto-auth plus permissionless script), so AV:N/AC:L/PR:N/UI:N; arbitrary code execution yields full C/I/A high, scope unchanged as code runs within the FUXA process.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/frangoteam/FUXA).

CVSS VectorVendor: https://github.com/frangoteam/FUXA

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

5
Analysis Updated
Jul 21, 2026 - 22:31 vuln.today
v2 (cvss_changed)
Re-analysis Queued
Jul 21, 2026 - 22:26 vuln.today
cvss_changed
CVSS changed
Jul 21, 2026 - 22:26 NVD
8.9 (HIGH)
Source Code Evidence Fetched
May 27, 2026 - 00:01 vuln.today
Analysis Generated
May 27, 2026 - 00:01 vuln.today

DescriptionCVE.org

Summary

An unauthenticated Remote Code Execution vulnerability exists in FUXA when secureEnabled is set to true. The POST /api/runscript endpoint checks authorization against the stored script's permission by ID, but when test: true is set in the request, it compiles and executes attacker-supplied code instead of the stored script's code. An unauthenticated attacker who knows a valid script ID and name may execute arbitrary code via test mode if at least one server-side script exists and is accessible without restrictive permissions.

Script IDs and names can be obtained through the unauthenticated information disclosure in GET /api/project (reported separately).

The only prerequisite is that at least one server-side script exists in the project.

Details

Authorization confused deputy in script execution

File: server/runtime/scripts/index.js, lines 86-103

The authorization check looks up the stored script by ID and validates the stored script's permission field:

javascript
this.isAuthorised = function (_script, permission) {
    const st = scriptModule.getScript(_script);  // finds stored script by _script.id
    if (admin || (st && (!st.permission || st.permission & permission))) {
        return true;
    }
    return false;
}

When a script has no permission field set (or permission: 0), the expression !st.permission evaluates to true, and the check passes for any caller including guests.

Guest auto-authentication in the middleware

File: server/api/jwt-helper.js, lines 46-72

The verifyToken middleware generates a valid guest JWT when no token is provided:

javascript
if (!token) {
    token = getGuestToken();
}

The guest token passes verification. The request proceeds to the handler with userId: "guest". The isAuthorised check then finds the stored script and validates against its permission. Scripts without a permission field pass for any user including guests.

Test mode executes attacker-supplied code

File: server/runtime/scripts/msm.js

When test: true is set, runTestScript takes the attacker's code field from the request body, compiles it into a Node.js module via Module._compile, and executes it with full access to require, child_process, fs, and the entire Node.js runtime. The authorization checked the stored script's permission. The execution runs the attacker's code.

PoC

Requires an existing server-side script accessible without restrictive permissions.

Step 1: Retrieve script IDs from the unauthenticated project endpoint

bash
curl -s http://192.168.32.129:1881/api/project | jq '.scripts[] | {id, name, permission}'
json
{
  "id": "legit-001",
  "name": "calculate",
}
{
  "id": "s_42a888fa-8e3d4213",
  "name": "subs",
}

Step 2: Execute whoami without authentication

Using the script ID and name from step 1:

bash
curl -s -X POST http://192.168.32.129:1881/api/runscript \
  -H "Content-Type: application/json" \
  -d '{"params":{"script":{"id":"s_42a888fa-8e3d4213","name":"subs","test":true,"code":"return require(\"child_process\").execSync(\"whoami\").toString()","parameters":[],"sync":true}}}'

Impact

Any network-reachable attacker can achieve Remote Code Execution on the FUXA server without any credentials. The attacker needs a valid script ID and name (obtainable through the separately reported information disclosure) and one server-side script to exist in the project.

Potential impact includes arbitrary command execution on the host, access to configured device connections and credentials, and compromise of industrial control functionality managed by the FUXA instance.

This issue depends on the presence of an existing server-side script with no restrictive permissions configured. It does not affect configurations without server-side scripts or where script permissions prevent guest access.

AnalysisAI

Remote code execution in FUXA SCADA/HMI server version 1.3.0 lets unauthenticated attackers run arbitrary OS commands when secureEnabled is true, by abusing the POST /api/runscript endpoint's test mode. The endpoint authorizes against a stored script's permission, but with test:true it compiles and runs attacker-supplied code instead, so a guest who knows any low-permission script's ID and name (leaked via the unauthenticated GET /api/project endpoint) achieves full RCE. A working PoC exists in the vendor advisory and the flaw is fixed in v1.3.1; EPSS is a moderate 0.59% (70th percentile), and there is no public exploit identified beyond the advisory PoC and no active exploitation confirmed.

Technical ContextAI

FUXA is a Node.js-based web SCADA/HMI and IIoT platform (npm package fuxa-server) used to build operator dashboards and connect to industrial devices. The root cause is CWE-863 (Incorrect Authorization), a confused-deputy: in server/runtime/scripts/index.js the isAuthorised function resolves the stored script by ID and checks that script's permission field (!st.permission || st.permission & permission), so a stored script with no permission or permission 0 passes for any caller. Meanwhile the JWT middleware in server/api/jwt-helper.js auto-issues a valid guest token when none is supplied, so requests reach the handler as userId:"guest". When test:true is set, runTestScript in server/runtime/scripts/msm.js takes the request's code field, compiles it with Node's Module._compile, and executes it with full access to require, child_process, and fs - meaning the authorization decision (on the stored script) and the executed payload (the attacker's code) are decoupled.

RemediationAI

Vendor-released patch: upgrade FUXA to version 1.3.1, which is the fixed release (https://github.com/frangoteam/FUXA/releases/tag/v1.3.1); the fix hardens the isAuthorised default to return false, corrects the unauthorized response handling, and tightens the Node-RED public-route allowance (see PR https://github.com/frangoteam/FUXA/pull/2260 and commit 78534da61a91613712b44bb63c8d7da8c5df5ca4). If you cannot upgrade immediately, reduce exposure by placing FUXA behind a reverse proxy or firewall so /api/runscript and /api/project are not reachable by untrusted networks (trade-off: breaks any legitimate remote/anonymous dashboard use), and by setting a restrictive permission value on every server-side script so guest access is denied (trade-off: guest/anonymous dashboards that legitimately call those scripts will stop working). Removing all server-side scripts also eliminates the precondition but may break dashboard logic. These are compensating controls only - upgrading to 1.3.1 is the durable fix.

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2013-4660 MEDIUM POC
6.8 Jun 28

The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic

CVE-2016-2107 MEDIUM POC
5.9 May 05

The AES-NI implementation in OpenSSL before 1.0.1t and 1.0.2 before 1.0.2h does not consider memory allocation during a

Share

CVE-2026-43947 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy