Case · DiggingBeagle record

Hugging Face SDK sent custom-Hub API calls to the default public endpoint

The v2.3.0 release fixes 20 methods that ignored HfApi(endpoint=...) and contacted huggingface.co with the configured instance token; behavior using HF_ENDPOINT was not affected.

Scope

huggingface_hub versions prior to v2.3.0 using HfApi(endpoint=...) in affected methods; credential routing and service neutrality.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
demonstrated
Evidence
Grade B
Remediation
patch available
AI role
AGAINST AI
Basis and provenance

CASE-2026-HF-HUB-CUSTOM-ENDPOINT-TOKEN: 20 affected methods; benchmark of 798,924 files improved from 776s to 19.7s in a separate feature. Evidence comes from SRC-2026-HF-HUB-230-RELEASE. Published technical statements or controlled results are not verified production-loss counts. No impact band is assigned because the observed outcome and its denominator do not establish a comparable severity measure.

Assessed Oct 24, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    Configure an independent Hub API endpoint

    An HfApi client receives an explicit endpoint together with a token intended for the selected compatible service.

    Boundary: Independent Hub tenant / client configuration

  2. 02

    Invoke one of twenty affected methods

    Certain webhook, access request and user/organization API methods ignored the instance endpoint and directed requests to huggingface.co.

    Boundary: Client method routing / global Hugging Face domain

  3. 03

    Expose the selected endpoint token to the wrong service

    The original client may attach the independent service token to a call addressed to Hugging Face; that is a credential-routing defect, not proof that Hugging Face abused the token.

    Boundary: Instance-scoped token / unrelated service recipient

Timeline

  1. Oct 22, 2026
    Event type unspecified

    SDK release 2.3.0

    The endpoint-routing fix and independent filesystem-listing optimizations shipped in the same SDK release.

  2. Oct 22, 2026
    disclosure

    Public disclosure

Claims & evidence

CLM-HF-HUB-01Hugging Face listed 20 API methods that ignored the explicit HfApi custom endpoint, instead sending requests to huggingface.co with the instance token.supported

Basis: reported finding

Link to claim
CLM-HF-ENRICH-PERFIn a vendor benchmark, HfFileSystem find() enumerated 798,924 files in 19.7 seconds versus 776 seconds before the parallel traversal change; this measures listing performance, not security remediation.supported

Basis: reported finding

Link to claim
CLM-HF-ENRICH-CONFIGThe v2.3.0 release notes identify 20 HfApi methods that sent requests to huggingface.co using a token configured for a custom HfApi(endpoint=...) instance; HF_ENDPOINT configurations did not have that defect.supported

Basis: reported finding

Link to claim

Implications

An endpoint selection defect undermines the assumption that independent Hub-compatible deployments receive only their own secrets. It is a concrete interoperability and credential-boundary bug, not proof that repositories became exportable or that data was exfiltrated by an attacker.

Controls and mitigations

  • Upgrade huggingface_hub to at least 2.3.0, audit calls made using explicit HfApi(endpoint=...), and rotate any custom-instance token when external exposure is possible. The release notes state HF_ENDPOINT setups were not affected by this exact routing bug.

Unknowns and contradictions

  • Whether any custom-instance credentials reached an unauthorized recipient or were accepted at another endpoint is not established.

Sources and citation

Material revision history

  1. Oct 24, 2026 · Canonical change recorded · new in release · revision 188