MEDIUM4.3
PYSEC-2026-1536
py-libp2p is vulnerable to DoS attacks through use of large RSA keys
Quick fix
PYSEC-2026-1536 — libp2p: upgrade to the fixed version with the command below.
pip install --upgrade 'libp2p>=0.2.3'Details
py-libp2p before 0.2.3 allows a peer to cause a denial of service (resource consumption) via a large RSA key.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-29606[ADVISORY]
- https://github.com/libp2p/py-libp2p/issues/526[WEB]
- https://github.com/libp2p/py-libp2p/pull/531/files[WEB]
- https://github.com/libp2p/py-libp2p/commit/e150d3153af30530ce61d751bc166e099f1ead7a[WEB]
- https://github.com/libp2p/py-libp2p[PACKAGE]
- https://github.com/libp2p/py-libp2p/compare/v0.2.2...v0.2.3[WEB]
- https://pypi.org/project/libp2p[PACKAGE]
- https://github.com/advisories/GHSA-x8c6-gj59-6rx8[ADVISORY]