CVE-2022-25878 json
Prototype Pollution
published 4y ago modified 4mo ago also GHSA-g954-5hwp-pp24 , EUVD-2022-3928
- cvss
- 8.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.3%
- EPSS 2.3% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
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
Patch / fix
- npm protobufjs 6.10.3, 6.11.3
- n/a protobufjs 6.11.3
- github.com/protobufjs/protobuf.js@b5f1391 commit
- github.com/protobufjs/protobuf.js#1731 pull request
- github.com/protobufjs/protobuf.js#1735 pull request
- snyk.io/vuln/SNYK-JS-PROTOBUFJS-2441248 advisory
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2841507 advisory
Is CVE-2022-25878 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-25878 updated cvss 8.2
protobufjs: Prototype Pollution via util.setProperty or ReflectionObject.setParsedOption methods
-
Red Hat Enterprise Linux 8 grafana, grafana-loki, grafana-mssql, grafana-mysql, grafana-selinux, grafana-graphite, +8 more Red Hat Enterprise Linux 9 grafana, grafana-selinux Red Hat OpenShift Container Platform 4 openshift4/ose-consoleaffected: no fix planned “Will not fix”
-
Red Hat OpenShift Service Mesh 2.1 servicemesh-grafananot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.33% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P |
| CNA | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | protobufjs | >=6.11.0, <6.11.3 >=6.10.0, <6.10.3 |
6.11.3 6.10.3 |
Affected products
- n/a protobufjs
Classification
- Weakness
-
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes
References
-
github.com
/protobufjs/protobuf.js/commit/b5f1391dff5515894830a6570e6d73f5511b2e8f
web, patch, third-party-advisory
-
github.com
/protobufjs/protobuf.js/pull/1731
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-PROTOBUFJS-2441248
web, exploit, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-2841507
web, exploit, patch, third-party-advisory
-
github.com
/protobufjs/protobuf.js/pull/1735
web
-
github.com
/protobufjs/protobuf.js/blob/d13d5d5688052e366aa2e9169f50dfca376b32cf/src/util.js%23L176-L197
web, broken-link
-
nvd.nist.gov
/vuln/detail/CVE-2022-25878
advisory
-
github.com
/protobufjs/protobuf.js
package
Sources
- CVE List CVE-2022-25878
- GitHub Advisory GHSA-g954-5hwp-pp24
- NVD CVE-2022-25878
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.