CVE-2022-25878
HIGH 7.5CVSS 3.1Prototype Pollution in protobufjs
The package protobufjs before 6.11.3 are 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
- Published
- 27 May 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1321
- Also known as
- GHSA-g954-5hwp-pp24
- Sources
- NVDJSONOSV GHSA-g954-5hwp-pp24JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | protobufjs_project | protobufjscpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:* |
< 6.11.3 | 6.11.3 |
| OSV | npm | protobufjs | >= 6.11.0, < 6.11.3 | 6.11.3 |
| OSV | npm | protobufjs | >= 6.10.0, < 6.10.3 | 6.10.3 |
References
- https://github.com/protobufjs/protobuf.js/blob/d13d5d5688052e366aa2e9169f50dfca376b32cf/src/util.js%23L176-L197 · Broken Link, WEB
- https://github.com/protobufjs/protobuf.js/commit/b5f1391dff5515894830a6570e6d73f5511b2e8f · Patch, Third Party Advisory, WEB
- https://github.com/protobufjs/protobuf.js/pull/1731 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2841507 · Exploit, Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-PROTOBUFJS-2441248 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25878 · ADVISORY
- https://github.com/protobufjs/protobuf.js/pull/1735 · WEB
- https://github.com/protobufjs/protobuf.js · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 27 May 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 28 May 2022)