{"id":"CVE-2026-69200","aliases":["CVE-2026-69200","GHSA-cv5q-7543-48q4"],"related":[],"kind":"vulnerability","state":"published","title":"node-opcua: Prototype Pollution via internal `fieldsToJson()` implementation (Related to CVE-2024-57086)","summary":"node-opcua is an OPC UA implementation for TypeScript and Node.js. Prior to node-opcua-client 2.145.0, the internal fieldsToJson method in packages/node-opcua-client/source/alarms_and_conditions/client_alarm.ts directly assigns unsanitized field names and allows a __proto__.pollutedKey path to modify Object.prototype. Successful exploitation requires an application to expose attacker-controlled event fields to fieldsToJson and may cause denial of service or application logic corruption. This vulnerability is fixed in 2.145.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"node-opcua is an OPC UA implementation for TypeScript and Node.js. Prior to node-opcua-client 2.145.0, the internal fieldsToJson method in packages/node-opcua-client/source/alarms_and_conditions/client_alarm.ts directly assigns unsanitized field names and allows a __proto__.pollutedKey path to modify Object.prototype. Successful exploitation requires an application to expose attacker-controlled event fields to fieldsToJson and may cause denial of service or application logic corruption. This vulnerability is fixed in 2.145.0.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA 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.\n\nAlthough [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.\n\n---\n\n### Details\n\nIn `node-opcua-client@2.144.0`, the internal file `client_alarm.ts` contains a method `fieldsToJson()` that performs direct assignments like:\n\n```ts\noutput[field] = value;\n```\n\n### PoC\n```javascript\nimport { fieldsToJson } from 'node-opcua-client/dist/alarms_and_conditions/client_alarm.js';\n\nconsole.log(\"Before:\", JSON.stringify({}.__proto__));\n\nfieldsToJson([\"__proto__.pollutedKey\"], [{ value: { value: \"pollutedValue\" } }]);\n\nconsole.log(\"After:\", JSON.stringify({}.__proto__));\n\n// Cleanup\ndelete Object.prototype.pollutedKey;\n```\n\n\n### Impact\nThis 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.","format":"markdown","source":"ghsa"}],"published":"2026-09-16T16:15:58.656Z","modified":"2026-11-30T17:45:03.644Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":"< 2.145.0","status":"affected"}],"vendor":"node-opcua","product":"node-opcua","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.137.0","status":"affected","fixed":"2.139.0"}],"ecosystem":"npm","package":"node-opcua-client","purl":"pkg:npm/node-opcua-client","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.144.0","status":"affected","fixed":"2.145.0"}],"ecosystem":"npm","package":"node-opcua-client","purl":"pkg:npm/node-opcua-client","source":"ghsa"}],"references":[{"url":"https://github.com/node-opcua/node-opcua/security/advisories/GHSA-cv5q-7543-48q4","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-69200","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/node-opcua/node-opcua","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/node-opcua/node-opcua/tree/v2.139.0","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/node-opcua/node-opcua/tree/v2.145.0","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-09-18T18:10:04.882Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-69200","url":"https://www.cve.org/CVERecord?id=CVE-2026-69200","licence":"CVE Terms of Use","modified":"2026-09-18T18:10:31.375Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cv5q-7543-48q4","url":"https://github.com/advisories/GHSA-cv5q-7543-48q4","licence":"CC-BY-4.0","modified":"2026-11-30T17:45:03.644Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-69200","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-69200","licence":"Public domain","modified":"2026-09-24T21:19:05.340Z"}],"updatedAt":"2026-11-30T18:17:15.938Z","epss":{"score":0.00331,"percentile":0.2839,"date":"2026-12-01T12:00:22.000Z"}}