CVE-2022-25878 Prototype Pollution
Attackers can pollute Object.prototype via untrusted input or .proto files, potentially leading to code execution or privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-25878?
CVE-2022-25878 is a high-severity vulnerability in protobufjs, published on 27 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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
Weakness: CWE-1321
Which versions are affected by CVE-2022-25878?
4 open source packages ship an affected version, including protobufjs. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
protobufjs npm | From 6.10.0 | 6.10.3 |
protobufjs npm | From 6.10.0 | 6.10.3 |
protobufjs npm | From 6.11.0 | 6.11.3 |
protobufjs npm | From 6.11.0 | 6.11.3 |
Products include Protobufjs Project Protobufjs.
How do I fix CVE-2022-25878?
Upgrade protobufjs to a fixed version for your release line: 6.10.3 or 6.11.3.
Is CVE-2022-25878 being exploited?
There is no known exploitation of CVE-2022-25878 in the wild and no public exploit code.
Other vulnerabilities in protobufjs
- CVE-2023-36665 protobufjs Prototype Pollution vulnerability
- CVE-2026-41242 protobufjs has an arbitrary code execution issue
- CVE-2026-44291 protobufjs: Code generation gadget after prototype pollution
- CVE-2026-44293 protobufjs: Code injection through bytes field defaults in generated toObject code
- CVE-2026-48712 protobufjs: Denial of service through unbounded Any expansion during JSON conversion
Sources
Also known as GHSA-g954-5hwp-pp24, ROOT-APP-NPM-CVE-2022-25878.