High
Prototype Pollution
Type: advisorySources: OSV
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
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-25878
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 03:43 UTC · Revision 1
Source evidence
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
osv:CVE-2022-25878
Complete source record
{
"id": "70ef64704b41fd18b5115c7e6508782f639a724b463c34ebfd74e0fd48771917",
"url": "https://osv.dev/vulnerability/CVE-2022-25878",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Prototype Pollution",
"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",
"evidence": "osv:CVE-2022-25878",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2022-25878",
"aliases": [
"CVE-2022-25878",
"GHSA-g954-5hwp-pp24"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/protobufjs/protobuf.js",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "b130dfd4f06b642d4b7c3ccc9f3f9fb6a6e6ed0d"
},
{
"fixed": "b5f1391dff5515894830a6570e6d73f5511b2e8f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "6.11.3"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "b5f1391dff5515894830a6570e6d73f5511b2e8f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v6.11.2",
"v6.11.1",
"v6.11.0",
"v6.10.2",
"v6.10.1",
"v6.10.1-beta.0",
"v6.10.0",
"v6.10.0-beta.2",
"v6.10.0-beta.1",
"v6.10.0-beta.0",
"v6.9.0",
"v6.9.0-beta.0",
"6.8.8",
"6.8.7",
"6.8.6",
"6.8.5",
"6.8.4",
"6.8.3",
"6.8.2",
"6.8.1",
"6.8.0",
"6.7.3",
"6.7.2",
"6.7.1",
"6.7.0",
"6.6.5",
"6.6.4",
"6.6.3",
"6.6.2",
"6.6.1",
"6.6.0",
"6.5.3",
"6.5.2",
"6.5.1",
"6.5.0",
"6.4.6",
"6.4.5",
"6.4.4",
"6.4.3",
"6.4.2",
"6.4.1",
"6.4.0",
"6.3.1",
"6.3.0",
"6.2.1",
"6.2.0",
"6.1.1",
"6.1.0",
"6.0.2",
"6.0.1",
"6.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25878.json"
}
}
],
"modified": "2026-10-28T02:30:49.540674679Z",
"provider": "osv",
"references": [
"https://github.com/protobufjs/protobuf.js/blob/d13d5d5688052e366aa2e9169f50dfca376b32cf/src/util.js%23L176-L197",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25878.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-25878",
"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2841507",
"https://snyk.io/vuln/SNYK-JS-PROTOBUFJS-2441248",
"https://github.com/protobufjs/protobuf.js/commit/b5f1391dff5515894830a6570e6d73f5511b2e8f",
"https://github.com/protobufjs/protobuf.js/pull/1731"
],
"provider_metadata": {
"cna_assigner": "snyk",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25878.json"
}
},
"related_cves": [
{
"value": "CVE-2022-25878",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 517853,
"published_at": "2022-05-27T20:00:15.716+00:00"
}