# CVE-2026-142214: @libp2p/gossipsub through 17.2.3 Prototype Pollution via __proto__ Topic in Peer Scoring

Source: https://aplosec.si/cve/CVE-2026-142214/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142214

Medium 6.3 · Reported · No fix listed · CWE-1321 · npm

# @libp2p/gossipsub through 17.2.3 Prototype Pollution via __proto__ Topic in Peer Scoring

CVE-2026-142214 · published 2026-12-02

In plain words: this type of bug lets someone change parts of the application's data they should not be able to set (prototype pollution or mass assignment). No fixed release is listed yet.

## Summary

CVE-2026-142214 affects @libp2p/gossipsub (npm) <= 17.2.3: Prototype Pollution via __proto__ Topic in Peer Scoring (CWE-1321). No fixed release is listed. CVSS 4.0 base score 6.3 (Medium), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

@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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/libp2p-gossipsub-through-17.2.3-prototype-pollution-via-proto-topic-in-peer-scoring](https://www.vulncheck.com/advisories/libp2p-gossipsub-through-17.2.3-prototype-pollution-via-proto-topic-in-peer-scoring)

- [Vulnerable codehttps://github.com/libp2p/js-libp2p/blob/gossipsub-v17.2.3/packages/gossipsub/src/score/peer-score.ts#L540-L546](https://github.com/libp2p/js-libp2p/blob/gossipsub-v17.2.3/packages/gossipsub/src/score/peer-score.ts#L540-L546)

- [Vulnerable codehttps://github.com/libp2p/js-libp2p/blob/gossipsub-v17.2.3/packages/gossipsub/src/score/peer-score.ts#L457-L465](https://github.com/libp2p/js-libp2p/blob/gossipsub-v17.2.3/packages/gossipsub/src/score/peer-score.ts#L457-L465)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142214](https://www.cve.org/CVERecord?id=CVE-2026-142214)

**Severity:** Medium 6.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142214)

**Package:** @libp2p/gossipsub

**Ecosystem:** npm

**Affected:** <= 17.2.3

**Fixed:** None

**Weakness:** CWE-1321

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
