GHSA-cv5q-7543-48q4

Suggest an improvement
Source
https://github.com/advisories/GHSA-cv5q-7543-48q4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-cv5q-7543-48q4/GHSA-cv5q-7543-48q4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cv5q-7543-48q4
Aliases
Published
2026-11-30T17:33:43Z
Modified
2026-11-30T17:45:03Z
Severity
  • 3.7 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
node-opcua-client is vulnerable to prototype pollution via fieldsToJson()
Details

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 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:

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.

Database specific
{
    "cwe_ids":  [
        "CWE-1321"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-11-30T17:33:43Z",
    "nvd_published_at":  "2026-09-16T17:18:01Z",
    "severity":  "LOW"
}
References

Affected packages

npm / node-opcua-client

Package

Name
node-opcua-client
View open source insights on deps.dev
Purl
pkg:npm/node-opcua-client

Affected ranges

Type
SEMVER
Events
Introduced
2.137.0
Fixed
2.139.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-cv5q-7543-48q4/GHSA-cv5q-7543-48q4.json"

npm / node-opcua-client

Package

Name
node-opcua-client
View open source insights on deps.dev
Purl
pkg:npm/node-opcua-client

Affected ranges

Type
SEMVER
Events
Introduced
2.144.0
Fixed
2.145.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-cv5q-7543-48q4/GHSA-cv5q-7543-48q4.json"