MEDIUM · CVSS 3.1 6.5 EPSS 0.4% · 32th percentile CWE-400

CVE-2026-62300: filecoin-pin: Unbounded DAG pinning can exhaust server resources

Published 2026-11-05 · Updated 2026-11-05 · Also known as GHSA-m5ph-mmg5-6w5h

Summary

The filecoin-pin package suffers from unbounded DAG pinning that allows authenticated or unauthorized attackers to exhaust system resources. Users should upgrade to version 1.1.1 or later to implement necessary resource constraints.

Who is affected

Affected deployments are vulnerable to disk, memory, CPU, and network exhaustion when the API processes malicious CIDs. The vulnerability is most severe when the server is exposed to untrusted networks, configured with ALLOW_NO_AUTH=true, or when access tokens are shared among multiple users.

Exploitability

The vulnerability is rated as Medium severity with a CVSS 3.1 base score of 6.5, reflecting an attack vector that is network-based but requires low complexity and attacker-controlled input. The EPSS score of 0.002 indicates a low current probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm filecoin-pin >= 0, < 1.1.1 1.1.1 npm install [email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Attack vectorNetwork
Attack complexityLow
Privileges requiredLow
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

FAQ

Does this require authentication to exploit?

By default, the server requires an access token, but it can be exploited by an unauthenticated caller if the service is started with ALLOW_NO_AUTH=true.

What specific resources are exhausted by this flaw?

Attackers can cause disk exhaustion via large CAR files, as well as network, CPU, and memory exhaustion through recursive Bitswap operations and concurrent libp2p processes.

Is this vulnerability currently being exploited in the wild?

There is no evidence of active exploitation, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.

Original advisory description
## Summary The IPFS Pinning Service API implementation accepts a caller-controlled CID through `POST /pins`, queues background processing, and then recursively fetches the full DAG with `helia.pins.add(cid)`. The route and background pinning path do not enforce a request rate limit, per-user quota, maximum DAG byte count, maximum block count, traversal timeout, or concurrent pinning limit. An authenticated caller, or an unauthenticated caller when the server is started with `ALLOW_NO_AUTH=true`, can submit one or more pins whose CIDs resolve to very large DAGs. The server writes fetched blocks to CAR files under `carStoragePath` and can consume disk, network, CPU, and libp2p resources until the process or host becomes unavailable. ## Details `POST /pins` validates only that the request body contains a syntactically valid CID string, then forwards it to the pin store: - `src/filecoin-pinning-server.ts:304-342` accepts the request, parses `cid` with `CID.parse`, and calls `pinStore.pin(request.user, cidObject, parsed.options)`. - `src/filecoin-pin-store.ts:153-188` stores the pin as `queued` and schedules `_processPinInBackground` with `setTimeout`. There is no queue, semaphore, or global cap around this scheduling. - `src/filecoin-pin-store.ts:211-217` creates a per-pin Helia node and forwards caller-supplied `origins`. - `src/filecoin-pin-store.ts:260-274` walks the full DAG with `for await (const pinnedCid of helia.pins.add(cid))`. - `src/create-pinning-helia.ts:47-80` creates a libp2p/Helia node with the Bitswap block broker and no application-level resource limits. - `src/core/car/car-blockstore-base.ts:65-107` writes every fetched block and updates `stats.totalSize` only after writing. - `src/core/car/car-file-backend.ts:84-93` streams blocks to the CAR writer on disk. The Helia node created for each pin has no bootstrap or mDNS configuration (`src/create-pinning-helia.ts:57`). A public CID alone may therefore not be fetchable unless the node can reach a content source. In practice, the API also accepts `origins`, so an attacker can supply a reachable attacker-controlled libp2p origin that serves a large DAG and cause the server to retrieve it. ## Impact Successful exploitation affects availability: - Disk exhaustion from unbounded CAR files in `carStoragePath`. - Network exhaustion from recursive Bitswap retrieval. - CPU and memory pressure from concurrent libp2p/Helia pin operations. - Service degradation or process failure for other users of the daemon. - Operational cost and manual recovery burden from large partial CAR files. The default daemon configuration reduces exposure because the server binds to `localhost` and refuses to start without an access token unless `ALLOW_NO_AUTH=true`. The finding is most significant when the daemon is exposed beyond localhost, when the token is shared across untrusted users, or when the no-auth mode is enabled. ## PoC ```bash curl -X POST "https://target.example/pins" \ -H "Authorization: Bearer $ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "cid": "CID_OF_LARGE_DAG", "origins": ["/ip4/203.0.113.10/tcp/4001/p2p/ATTACKER_PEER_ID"], "meta": { "purpose": "resource-exhaustion-validation" } }' ``` Submitting many such requests concurrently accelerates resource pressure because each request schedules independent background processing.

References

Source records: GHSA-m5ph-mmg5-6w5h (OSV.dev) · EPSS by FIRST, 2026-11-22.