HighGHSA-g954-5hwp-pp24CVE-2022-25878

Prototype Pollution in protobufjs

Published 28 May 2022 · Updated 14 Jan 2025

Affected packages

Affected
>=6.11.0 <6.11.3
Fixed in
6.11.3
Update to the fixed version for your release line, for example:npm install protobufjs@6.11.3
Affected
>=6.10.0 <6.10.3
Fixed in
6.10.3
Update to the fixed version for your release line, for example:npm install protobufjs@6.10.3

Details

The package protobufjs is vulnerable to Prototype Pollution, which can allow an attacker to add/modify properties of the Object.prototype. Versions after and including 6.10.0 until 6.10.3 and after and including 6.11.0 until 6.11.3 are vulnerable.

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

Is GHSA-g954-5hwp-pp24 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected protobufjs, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.