Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. protobufjs
  4. ›
  5. CVE-2022-25878

CVE-2022-25878: Prototype Pollution in protobufjs

May 27, 2022 (updated June 8, 2022)

The package protobufjs before 6.11.3 is vulnerable to Prototype Pollution which can allow an attacker to add/modify properties of the Object.prototype. This vulnerability can occur in multiple ways: 1. by providing untrusted user input to util.setProperty or to ReflectionObject.setParsedOption functions 2. by parsing/loading .proto files

References

  • github.com/advisories/GHSA-g954-5hwp-pp24
  • github.com/protobufjs/protobuf.js/blob/d13d5d5688052e366aa2e9169f50dfca376b32cf/src/util.js%23L176-L197
  • github.com/protobufjs/protobuf.js/commit/b5f1391dff5515894830a6570e6d73f5511b2e8f
  • github.com/protobufjs/protobuf.js/pull/1731
  • nvd.nist.gov/vuln/detail/CVE-2022-25878
  • snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2841507
  • snyk.io/vuln/SNYK-JS-PROTOBUFJS-2441248

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 6.11.3

Fixed versions

  • 6.11.3

Solution

Upgrade to version 6.11.3 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/protobufjs/CVE-2022-25878.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:34 +0000.