CVE-2022-25878
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability CVE-2022-25878 affects protobufjs versions before 6.11.3, which is a protocol buffer library for JavaScript and TypeScript. The vulnerability was discovered and disclosed on April 6, 2022, and allows attackers to perform Prototype Pollution attacks by adding or modifying properties of the Object.prototype (Snyk DB).

Technical details

The vulnerability is a Prototype Pollution issue that can be exploited in multiple ways: by providing untrusted user input to util.setProperty or ReflectionObject.setParsedOption functions, or by parsing/loading .proto files. The vulnerability has a CVSS v3.1 base score of 8.2 (High severity), with attack vector being Network, attack complexity Low, and requiring no privileges or user interaction (Snyk DB).

Impact

When successfully exploited, this vulnerability can lead to several impacts: Denial of Service (DoS) by polluting Object.prototype attributes used in generic operations, potential Remote Code Execution if the codebase evaluates and executes specific object attributes, and Property Injection where attackers can modify security-critical properties like access control flags (Snyk DB).

Mitigation and workarounds

The recommended mitigation is to upgrade protobufjs to version 6.11.3 or higher. For prevention, it is recommended to freeze the prototype using Object.freeze(Object.prototype), implement schema validation for JSON input, avoid unsafe recursive merge functions, and consider using objects without prototypes or using Map instead of Object (Snyk DB).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55182CRITICAL10
  • JavaScriptJavaScript
  • react-server-dom-webpack
NoYesDec 03, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-66412HIGH8.5
  • JavaScriptJavaScript
  • @angular/compiler
NoYesDec 01, 2025
CVE-2025-66415MEDIUM6.9
  • JavaScriptJavaScript
  • @fastify/reply-from
NoYesDec 01, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management