Skip to main content

@libp2p/gossipsub EUVDEUVD-2026-141616

| CVE-2026-142214 MEDIUM
Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution) (CWE-1321)
2026-12-02 VulnCheck GHSA-x74h-pmq5-pcjm
6.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect as remote gossipsub peer
  2. Exploit
    Publish messages on __proto__ topic
  3. Execution
    Trigger prototype pollution in PeerScore
  4. Impact
    Set inherited scoring fields to NaN process-wide

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V3 - Web Frontend Security Prototype pollution prevention
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires the victim to be running @libp2p/gossipsub at or below 17.2.3 with peer scoring (PeerScore) active, and the attacker must be a connected remote gossipsub peer able to send messages on the '__proto__' topic. No authentication is required (PR:N). Limiting factors: the CVSS vector marks increased attack complexity (AC:H) and a specific attack requirement (AT:P) - the exact trigger condition behind these is not described in the available sources - and the impact is confined to limited integrity (VI:L), namely setting inherited scoring counters to NaN, with no confidentiality (VC:N) or availability (VA:N) impact claimed.

Impact

Signals converge on a genuine but moderate-priority issue rather than an urgent one. The CVSS 4.0 base score is 6.3 (medium) with network vector (AV:N) and no privileges required (PR:N), which sounds reachable, but this is tempered by increased attack complexity (AC:H) and a present attack requirement (AT:P), and by a narrow impact profile - only limited integrity (VI:L), with no confidentiality (VC:N) and no availability (VA:N) effect. The vuln.today decision label is 'this_month,' not act_now or emergency, consistent with that moderate profile. There is no CISA KEV listing and no EPSS score supplied in the input, so widespread or active exploitation is not indicated; exploitation status is 'no public exploit identified at time of analysis' (the supplied references are vulnerable-source-code lines and a VulnCheck advisory, not working exploit code). The practical ceiling is important: per the description the pollution sets inherited invalidMessageDeliveries/firstMessageDeliveries to NaN, i.e. it corrupts gossipsub peer-scoring arithmetic across the Node.js process - a logic/integrity degradation of the peer-scoring subsystem rather than code execution or data theft. One caveat to verify: the input Tags include 'Information Disclosure,' which conflicts with the CVSS vector's VC:N (no confidentiality impact) and the CWE-1321 integrity-oriented nature of the flaw.

Exploit ScenarioDerived

A remote peer connected to the victim's gossipsub mesh publishes messages (valid or invalid) on the special '__proto__' topic. The PeerScore logic uses that topic string as a property key, so processing the message walks into Object.prototype and sets inherited invalidMessageDeliveries or firstMessageDeliveries to NaN, corrupting peer-scoring state process-wide. No confirmed working exploit code is published; the available references show the vulnerable source and a vendor advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Prototype pollution in @libp2p/gossipsub's PeerScore component (versions through 17.2.3) allows a connected remote gossipsub peer to corrupt Object.prototype for the entire victim Node.js process by sending messages on the specially named '__proto__' topic, which drives inherited invalidMessageDeliveries or firstMessageDeliveries counters to NaN. The victim must be running gossipsub with peer scoring (PeerScore) active and must be connected to the attacker as a gossipsub peer; no authentication is required per the assessed vector, although attack complexity is rated high and a specific attack prerequisite is flagged whose exact trigger is not described in the available sources. Impact is confined to limited integrity of scoring state (VI:L) with no confidentiality or availability impact claimed; no public exploit was identified at time of analysis, the issue is not in CISA KEV, and it carries a this_month priority label.

RemediationAI

No vendor-released patch or fixed version is identified in the available data, and the only upstream references point at the vulnerable gossipsub-v17.2.3 tree, so verify the project's release feed at https://github.com/libp2p/js-libp2p before assuming a fix exists, and review https://www.vulncheck.com/advisories/libp2p-gossipsub-through-17.2.3-prototype-pollution-via-proto-topic-in-peer-scoring for updates. Because the flaw is only reachable when PeerScore is active and the attacker is a connected remote gossipsub peer able to publish on the '__proto__' topic, the practical compensating controls follow from those two preconditions. Disabling peer scoring removes the vulnerable scoring path entirely, at the cost of losing the delivery-threshold, graylisting and pruning behaviour that PeerScore provides against spam and misbehaving peers. Alternatively, constrain who can become a gossipsub peer - private/swarm-key-gated networks, explicit peer allowlists, or strict connection and topic admission limits - which narrows the set of parties able to publish on the abusive topic, though any peer still admitted retains the capability and the trade-off is reduced openness of the network. Adding an application-level guard that rejects subscriptions or messages whose topic equals '__proto__', 'constructor' or 'prototype' can block this specific payload shape, but it is a per-deployment stopgap that must be maintained as new pollution keys are discovered and does not repair the underlying key-handling flaw in peer-score.ts.

Affected VersionsENISA

@libp2p/gossipsub 0 ≤17.2.3

Affected Packages

euvd libp2p_gossipsub no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libp2p is a modular peer-to-peer networking stack, and gossipsub is its pub/sub message-routing protocol in which peers subscribe to named topics and relay messages. PeerScore is the reputation subsystem that tracks per-peer behaviour - including delivery counters such as firstMessageDeliveries and invalidMessageDeliveries - to graylist or prune misbehaving peers. This issue is CWE-1321 (improperly controlled modification of object prototype attributes), rooted in the way peer-score.ts at the referenced gossipsub-v17.2.3 revision (lines 457-465 and 540-546) keys score bookkeeping by attacker-influenced topic strings: a message on the topic named '__proto__' is handled as a property assignment rather than an isolated data key, so the write lands on Object.prototype instead of a bounded per-topic record. Because Node.js objects inherit from Object.prototype process-wide, the resulting NaN values in firstMessageDeliveries or invalidMessageDeliveries become visible to every object in the runtime that lacks its own shadowing property, potentially distorting score calculations far beyond the offending peer. The affected technology is JavaScript/TypeScript running on Node.js; the CPE cpe:2.3:a:libp2p:@libp2p/gossipsub:*:*:*:*:*:*:*:* matches all versions through 17.2.3 per EUVD. The trigger mechanics behind the high attack complexity and attack prerequisite ratings in the CVSS vector are not described in the available sources.

Know when Prototype Pollution gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.3 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 3.7 LOW

Remotely reachable by an unauthenticated mesh peer (AV:N/PR:N) but with added complexity (AC:H); impact limited to integrity of peer-scoring state (I:L), no confidentiality or availability effect.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

@libp2p/gossipsub through 17.2.3 contains a prototype pollution vulnerability in PeerScore that allows remote gossipsub peers to modify Object.prototype by sending messages on the __proto__ topic. Attackers can send invalid or valid messages on that topic to set inherited invalidMessageDeliveries or firstMessageDeliveries properties to NaN across the victim Node.js process.

Threat Intelligence Overview

Prevalence
Medium
p2p pubsub library used in IPFS/libp2p and blockchain Node.js stacks, not ubiquitous
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS N/A
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2026-34621 HIGH POC
8.6 Apr 11

Prototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu

CVE-2021-23450 CRITICAL POC
9.8 Dec 17

All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (

CVE-2024-56059 CRITICAL
9.8 Dec 18

Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau

CVE-2021-23383 CRITICAL POC
9.8 May 04

The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co

CVE-2020-7788 CRITICAL POC
9.8 Dec 11

This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2020-28271 CRITICAL POC
9.8 Nov 12

Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service

CVE-2023-38894 CRITICAL POC
9.8 Aug 16

A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi

CVE-2024-24292 CRITICAL POC
9.8 Mar 28

A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function

CVE-2023-26121 CRITICAL POC
10.0 Apr 11

All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s

CVE-2021-23449 CRITICAL POC
10.0 Oct 18

This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr

CVE-2024-39011 CRITICAL POC
9.8 Jul 30

Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser

CVE-2024-38988 CRITICAL POC
9.8 Mar 28

alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy