High severity · published May 27, 2022
CVE-2022-25878
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
7.5
CVSS
2.3%
EPSS
No
On KEV
Description
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
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.3% · higher than 83% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PR
Protobufjs · Protobufjs Project
before 6.11.3 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-25878
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-25878
Broken Link
https://github.com/protobufjs/protobuf.js/blob/d13d5d5688052e366aa2e9169f50dfca376b32cf/src/util.js%23L176-L197
Patch
https://github.com/protobufjs/protobuf.js/commit/b5f1391dff5515894830a6570e6d73f5511b2e8f
Patch
https://github.com/protobufjs/protobuf.js/pull/1731
Exploit
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2841507
Exploit
https://snyk.io/vuln/SNYK-JS-PROTOBUFJS-2441248
More from Protobufjs
9.8
CVE-2026-41242
protobufjs has an arbitrary code execution issue
9.8
CVE-2023-36665
"protobuf.js (aka protobufjs) 6.10.0 through 7.x before 7.2.5 allows Prototype Pollution, a different vulnerability than CVE-2022-25878
8.8
CVE-2026-44293
protobufjs: Code injection through bytes field defaults in generated toObject code
8.1
CVE-2026-44291
protobufjs: Code generation gadget after prototype pollution
7.5
CVE-2026-59877
protobufjs: Denial of Service via infinite loop in .proto option parsing
