Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. node-opcua
  4. ›
  5. CVE-2022-21208

CVE-2022-21208: Uncontrolled Resource Consumption

August 23, 2022 (updated August 8, 2023)

The package node-opcua before 2.74.0 is vulnerable to Denial of Service (DoS) due to a missing limitation on the number of received chunks - per single session or in total for all concurrent sessions. An attacker can exploit this vulnerability by sending an unlimited number of huge chunks (e.g. 2GB each) without sending the Final closing chunk.

References

  • github.com/node-opcua/node-opcua/commit/33ca3bab4ab781392a2f8d8f5a14de9a0aa0e410
  • github.com/node-opcua/node-opcua/commit/dbcb5d5191118c22ee9c89332a94b94e6553d76b
  • github.com/node-opcua/node-opcua/pull/1149
  • nvd.nist.gov/vuln/detail/CVE-2022-21208
  • security.snyk.io/vuln/SNYK-JS-NODEOPCUA-2988723

Code Behaviors & Features

Detect and mitigate CVE-2022-21208 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.74.0

Fixed versions

  • 2.74.0

Solution

Upgrade to version 2.74.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1284: Improper Validation of Specified Quantity in Input

Source file

npm/node-opcua/CVE-2022-21208.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:47 +0000.