Loading advisory.
Loading advisory.
node-opcua-client is vulnerable to prototype pollution via fieldsToJson()
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.
Published 2026-09-16 16:15 UTC · Modified 2026-11-30 17:45 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| node-opcua-client | npm | >= 2.137.0, < 2.139.0 >= 2.144.0, < 2.145.0 | 2.139.0, 2.145.0 | npm install node-opcua-client@2.139.0npm install node-opcua-client@2.145.0 |
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 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.
In node-opcua-client@2.144.0, the internal file client_alarm.ts contains a method fieldsToJson() that performs direct assignments like:
output[field] = value;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;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.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.003 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |