cvelo
P4 · InfoCVSS 3.7EPSS 0.3%

node-opcua-client is vulnerable to prototype pollution via fieldsToJson()

  • CVE-2026-69200
  • GHSA-cv5q-7543-48q4
  • EUVD-2026-80867

Description

### Summary A Prototype Pollution vulnerability exists in `node-opcua-client@2.144.0` due to an unsafe internal implementation of the `fieldsToJson()` function, which allows attackers to inject malicious properties into the global prototype chain via unsanitized field names. Although [CVE-2024-57086](https://nvd.nist.gov/vuln/detail/CVE-2024-57086) addressed this issue in the `node-opcua-alarm-condition` package, this is a **distinct vulnerability** in `node-opcua-client` which implements its own `fieldsToJson()` logic. --- ### Details In `node-opcua-client@2.144.0`, the internal file `client_alarm.ts` contains a method `fieldsToJson()` that performs direct assignments like: ```ts output[field] = value; ``` ### PoC ```javascript import { fieldsToJson } from 'node-opcua-client/dist/alarms_and_conditions/client_alarm.js'; console.log("Before:", JSON.stringify({}.__proto__)); fieldsToJson(["__proto__.pollutedKey"], [{ value: { value: "pollutedValue" } }]); console.log("After:", JSON.stringify({}.__proto__)); // Cleanup delete Object.prototype.pollutedKey; ``` ### Impact This vulnerability allows attackers to perform Prototype Pollution, which may lead to Denial of Service (DoS), logic corruption, or even arbitrary code execution if polluted keys reach sensitive paths. Applications that use node-opcua-client and expose user-controlled data to fieldsToJson() are at risk.

Text from the GitHub Advisory record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • node-opcua-clientnpm

    Affected versionsFixed in
    from 2.144.0 to before 2.145.02.145.0
    from 2.137.0 to before 2.139.02.139.0

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.