node-opcua-client is vulnerable to prototype pollution via fieldsToJson()
Package Affected versions Patched versions Description Summary A Prototype Pollution vulnerability exists in [email protected] due to an unsafe internal implementation of the fieldsToJson() fu
Package
node-opcua-client (npm)Affected versions
>= 2.137.0, < 2.139.0 >= 2.144.0, < 2.145.0Patched versions
2.139.0 2.145.0Description
Summary
A Prototype Pollution vulnerability exists in [email protected] 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.
Details
In [email protected], the internal file client_alarm.ts contains a method fieldsToJson() that performs direct assignments like:
output[field] = value;
PoC
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.
References
- GHSA-cv5q-7543-48q4
- https://nvd.nist.gov/vuln/detail/CVE-2026-69200
- https://github.com/node-opcua/node-opcua/tree/v2.139.0
- https://github.com/node-opcua/node-opcua/tree/v2.145.0
Severity
Low CVSS overall score This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS). / 10CVSS v3 base metrics
Attack vector Network Attack complexity High Privileges required None User interaction None Scope Unchanged Confidentiality None Integrity None Availability Low CVSS v3 base metrics Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability. Attack complexity: More severe for the least complex attacks. Privileges required: More severe if no privileges are required. User interaction: More severe when no user interaction is required. Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope. Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user. Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user. Availability: More severe when the loss of impacted component availability is highest. CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:LEPSS score
Exploit Prediction Scoring System (EPSS) This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST. (21st percentile)Weaknesses
Weakness CWE-1321Improperly Controlled Modification of Object Prototype Attributes
The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. Learn more on MITRE.CVE ID
CVE-2026-69200GHSA ID
GHSA-cv5q-7543-48q4Source code
node-opcua/node-opcuaCredits
-
Anreddykarthikreddy3003 Reporter
Uh oh!
There was an error while loading. Please reload this page.
See something to contribute? Suggest improvements for this vulnerability.