← Back to scan
File as GitHub Issue repo: huggingface/transformers

Push this scan report to huggingface/transformers

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

Dockerfile pipes a remote script into a shell

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… src/transformers/models/beit/convert_be…:243
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… src/transformers/models/audio_spectrogr…:187
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… src/transformers/integrations/integrati…:2562
HIGH SEC035 [SEC035] Unbounded Resource Allocation — DoS risk: Allocating resources (buffers, recursi… examples/pytorch/image-pretraining/run_…:670
HIGH DKR006 Dockerfile pipes a remote script into a shell docker/transformers-pytorch-xpu/Dockerf…:60
HIGH DKR006 Dockerfile pipes a remote script into a shell docker/transformers-intel-cpu/Dockerfile:40
HIGH DKR014 Dockerfile copies the entire context without .dockerignore docker/transformers-gpu/Dockerfile:27
HIGH SEC016 [SEC016] LLM Prompt Injection — User Input in AI Prompt: User-supplied text is interpolat… src/transformers/models/openai/convert_…:46
HIGH SEC020 [SEC020] Secret Printed to Logs: Debug or diagnostic code appears to print a credential-b… src/transformers/generation/continuous_…:263
HIGH SEC020 [SEC020] Secret Printed to Logs: Debug or diagnostic code appears to print a credential-b… src/transformers/generation/continuous_…:266
HIGH SEC020 [SEC020] Secret Printed to Logs: Debug or diagnostic code appears to print a credential-b… examples/pytorch/transformers_serve_cb_…:179
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… src/transformers/models/beit/modeling_b…:628
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… src/transformers/data/processors/utils.…:119
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… examples/modular-transformers/modeling_…:1258
MED SEC012 [SEC012] ZipSlip — Archive Path Traversal: Archive extraction without path validation all… src/transformers/models/parakeet/conver…:72
MED SEC012 [SEC012] ZipSlip — Archive Path Traversal: Archive extraction without path validation all… src/transformers/models/marian/convert_…:694
MED SEC007 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code. src/transformers/models/maskformer/conv…:251
MED SEC007 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code. src/transformers/models/maskformer/conv…:282
MED SEC007 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code. src/transformers/models/marian/convert_…:107
MED SEC031 [SEC031] Catastrophic Backtracking Regex (ReDoS): Regex contains nested quantifiers like … src/transformers/models/gpt_neox_japane…:225
MED SEC011 [SEC011] Unsafe PyTorch Model Loading: torch.load() uses pickle internally and can execut… src/transformers/models/bamba/convert_m…:214
MED SEC011 [SEC011] Unsafe PyTorch Model Loading: torch.load() uses pickle internally and can execut… src/transformers/models/autoformer/mode…:1297
MED SEC011 [SEC011] Unsafe PyTorch Model Loading: torch.load() uses pickle internally and can execut… src/transformers/modeling_utils.py:380
MED SEC034 [SEC034] Log Injection / Log Forging — unsanitized user input in log: User input is logge… examples/pytorch/image-classification/r…:491
MED SEC034 [SEC034] Log Injection / Log Forging — unsanitized user input in log: User input is logge… examples/pytorch/continuous_batching.py:289
MED SEC034 [SEC034] Log Injection / Log Forging — unsanitized user input in log: User input is logge… benchmark_v2/run_benchmarks.py:84
MED DKR003 Compose service `grafana` image uses the latest tag examples/metrics-monitoring/docker-comp…:38
MED DKR003 Compose service `tempo` image uses the latest tag examples/metrics-monitoring/docker-comp…:23
MED DKR003 Compose service `prometheus` image uses the latest tag examples/metrics-monitoring/docker-comp…:10
MED DKR007 Docker build context has no .dockerignore .dockerignore
MED DKR009 Dockerfile separates apt update from install docker/transformers-quantization-latest…:16
MED DKR009 Dockerfile separates apt update from install docker/transformers-pytorch-xpu/Dockerf…:20
MED DKR009 Dockerfile separates apt update from install docker/transformers-pytorch-gpu/Dockerf…:6
MED DKR009 Dockerfile separates apt update from install docker/transformers-intel-cpu/Dockerfile:13
MED DKR009 Dockerfile separates apt update from install docker/transformers-doc-builder/Dockerf…:4
MED DKR009 Dockerfile separates apt update from install docker/transformers-all-latest-gpu/Dock…:21
MED DKR013 Dockerfile ADD downloads remote content docker/transformers-pytorch-deepspeed-a…:38
MED DKR013 Dockerfile ADD downloads remote content docker/transformers-pytorch-amd-gpu/Doc…:32
MED DKR001 Docker final stage has no non-root USER docker/transformers-quantization-latest…:1
MED DKR001 Docker final stage has no non-root USER docker/transformers-pytorch-xpu/Dockerf…:1
MED DKR001 Docker final stage has no non-root USER docker/transformers-pytorch-tpu/Dockerf…:1
MED DKR001 Docker final stage has no non-root USER docker/transformers-pytorch-gpu/Dockerf…:1
MED DKR001 Docker final stage has no non-root USER docker/transformers-pytorch-deepspeed-n…:2
MED DKR001 Docker final stage has no non-root USER docker/transformers-pytorch-deepspeed-l…:2
MED DKR001 Docker final stage has no non-root USER docker/transformers-pytorch-deepspeed-a…:1
MED DKR001 Docker final stage has no non-root USER docker/transformers-pytorch-amd-gpu/Doc…:1
MED DKR001 Docker final stage has no non-root USER docker/transformers-intel-cpu/Dockerfile:1
MED DKR001 Docker final stage has no non-root USER docker/transformers-gpu/Dockerfile:1
MED DKR001 Docker final stage has no non-root USER docker/transformers-doc-builder/Dockerf…:1
MED DKR001 Docker final stage has no non-root USER docker/transformers-all-latest-gpu/Dock…:1
MED SEC017 [SEC017] Unbounded Input to LLM/External API: User input is passed to an LLM or external … src/transformers/models/openai/convert_…:46
LOW AIC003 Duplicated implementation block across source files src/transformers/models/mobilenet_v2/im…:30
LOW AIC003 Duplicated implementation block across source files src/transformers/models/jina_embeddings…:123
LOW AIC003 Duplicated implementation block across source files src/transformers/models/jina_embeddings…:122
LOW AIC003 Duplicated implementation block across source files src/transformers/models/jina_embeddings…:71
LOW AIC003 Duplicated implementation block across source files src/transformers/models/jina_embeddings…:38
LOW AIC003 Duplicated implementation block across source files src/transformers/models/jina_embeddings…:190
LOW AIC003 Duplicated implementation block across source files src/transformers/models/jina_embeddings…:95
LOW AIC003 Duplicated implementation block across source files src/transformers/models/jina_embeddings…:66
LOW AIC003 Duplicated implementation block across source files src/transformers/models/hy_v3/modular_h…:202
LOW AIC003 Duplicated implementation block across source files src/transformers/models/hy_v3/modular_h…:125
LOW AIC003 Duplicated implementation block across source files src/transformers/models/hy_v3/modular_h…:62
LOW AIC003 Duplicated implementation block across source files src/transformers/models/hy_v3/modular_h…:33
LOW AIC003 Duplicated implementation block across source files src/transformers/models/hy_v3/modeling_…:154
LOW AIC003 Duplicated implementation block across source files src/transformers/models/hy_v3/modeling_…:75
LOW AIC003 Duplicated implementation block across source files src/transformers/models/hy_v3/modeling_…:31
LOW AIC003 Duplicated implementation block across source files src/transformers/models/hy_v3/configura…:34
LOW AIC003 Duplicated implementation block across source files src/transformers/models/higgs_audio_v2/…:266
LOW AIC003 Duplicated implementation block across source files src/transformers/models/higgs_audio_v2/…:79
LOW AIC003 Duplicated implementation block across source files src/transformers/models/higgs_audio_v2/…:25
LOW AIC003 Duplicated implementation block across source files src/transformers/models/higgs_audio_v2/…:51
LOW AIC003 Duplicated implementation block across source files src/transformers/models/higgs_audio_v2/…:39
LOW AIC003 Duplicated implementation block across source files src/transformers/models/higgs_audio_v2/…:82
LOW AIC003 Duplicated implementation block across source files src/transformers/models/hgnet_v2/modula…:100
LOW AIC003 Duplicated implementation block across source files src/transformers/models/hgnet_v2/modula…:20
LOW AIC003 Duplicated implementation block across source files src/transformers/models/deepseek_v3/mod…:212
LOW AIC003 Duplicated implementation block across source files src/transformers/models/deepseek_v3/mod…:35
LOW AIC003 Duplicated implementation block across source files src/transformers/models/deepseek_v3/mod…:32
LOW AIC003 Duplicated implementation block across source files src/transformers/models/deepseek_v3/con…:28
LOW AIC003 Duplicated implementation block across source files src/transformers/models/deepseek_v2/mod…:116
LOW AIC003 Duplicated implementation block across source files src/transformers/models/deepseek_v2/mod…:29
LOW DKR010 Dockerfile leaves apt package indexes in the image layer docker/transformers-pytorch-tpu/Dockerf…:10
LOW DKR010 Dockerfile leaves apt package indexes in the image layer docker/transformers-intel-cpu/Dockerfile:8
LOW DKR011 Dockerfile installs recommended OS packages docker/transformers-quantization-latest…:17
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-pytorch-xpu/Dockerf…:87
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-pytorch-xpu/Dockerf…:84
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-pytorch-xpu/Dockerf…:81
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-pytorch-xpu/Dockerf…:78
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-pytorch-xpu/Dockerf…:77
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-pytorch-xpu/Dockerf…:76
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-pytorch-xpu/Dockerf…:75
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-pytorch-xpu/Dockerf…:74
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-pytorch-xpu/Dockerf…:68
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-pytorch-xpu/Dockerf…:67
LOW DKR011 Dockerfile installs recommended OS packages docker/transformers-pytorch-xpu/Dockerf…:45
LOW DKR011 Dockerfile installs recommended OS packages docker/transformers-pytorch-xpu/Dockerf…:10
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-pytorch-tpu/Dockerf…:50
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-pytorch-tpu/Dockerf…:33
LOW DKR011 Dockerfile installs recommended OS packages docker/transformers-pytorch-tpu/Dockerf…:33
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-pytorch-gpu/Dockerf…:29
LOW DKR011 Dockerfile installs recommended OS packages docker/transformers-pytorch-gpu/Dockerf…:7
LOW DKR011 Dockerfile installs recommended OS packages docker/transformers-pytorch-deepspeed-n…:11
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-pytorch-deepspeed-l…:46
LOW DKR011 Dockerfile installs recommended OS packages docker/transformers-pytorch-deepspeed-l…:12
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-intel-cpu/Dockerfile:56
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-intel-cpu/Dockerfile:53
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-intel-cpu/Dockerfile:52
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-intel-cpu/Dockerfile:51
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-intel-cpu/Dockerfile:50
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-intel-cpu/Dockerfile:49
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-intel-cpu/Dockerfile:47
LOW DKR011 Dockerfile installs recommended OS packages docker/transformers-intel-cpu/Dockerfile:8
LOW DKR011 Dockerfile installs recommended OS packages docker/transformers-gpu/Dockerfile:5
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-doc-builder/Dockerf…:18
LOW DKR011 Dockerfile installs recommended OS packages docker/transformers-doc-builder/Dockerf…:12
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-doc-builder/Dockerf…:10
LOW DKR012 Dockerfile keeps pip download cache docker/transformers-all-latest-gpu/Dock…:74
LOW DKR011 Dockerfile installs recommended OS packages docker/transformers-all-latest-gpu/Dock…:22
LOW AIC009 Multiple AI-agent scaffold marker files are present .github/copilot-instructions.md:1
LOW AIC005 Duplicate top-level symbol appears in a patch-style file src/transformers/models/deepseek_v2/con…:1
LOW AIC005 Duplicate top-level symbol appears in a patch-style file src/transformers/models/deberta_v2/mode…:1
LOW AIC005 Duplicate top-level symbol appears in a patch-style file src/transformers/models/pp_doclayout_v2…:1
LOW AIC005 Duplicate top-level symbol appears in a patch-style file src/transformers/models/mobilenet_v1/mo…:1
LOW AIC005 Duplicate top-level symbol appears in a patch-style file src/transformers/models/deepseek_v3/mod…:1
LOW AIC005 Duplicate top-level symbol appears in a patch-style file src/transformers/models/deepseek_v2/mod…:1
LOW AIC005 Duplicate top-level symbol appears in a patch-style file src/transformers/models/seamless_m4t_v2…:1
LOW DKC010 Compose service lacks no-new-privileges hardening examples/metrics-monitoring/docker-comp…:38
LOW DKC010 Compose service lacks no-new-privileges hardening examples/metrics-monitoring/docker-comp…:23
LOW DKC010 Compose service lacks no-new-privileges hardening examples/metrics-monitoring/docker-comp…:10
LOW DKC010 Compose service lacks no-new-privileges hardening examples/metrics-monitoring/docker-comp…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/mobilenet_v1/mo…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/mobilenet_v1/im…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/mobilenet_v1/im…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/mobilenet_v1/co…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/jina_embeddings…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/jina_embeddings…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/jina_embeddings…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/hy_v3/modular_h…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/hy_v3/modeling_…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/hy_v3/configura…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/higgs_audio_v2/…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/higgs_audio_v2/…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/higgs_audio_v2/…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/higgs_audio_v2/…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/higgs_audio_v2/…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/hgnet_v2/modula…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/hgnet_v2/modeli…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/hgnet_v2/config…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/deepseek_v4/mod…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/deepseek_v4/mod…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/deepseek_v4/con…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/deepseek_v3/mod…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/deepseek_v3/mod…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/deepseek_v3/con…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/deepseek_v2/mod…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/deepseek_v2/mod…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/deepseek_v2/con…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/deberta_v2/toke…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/deberta_v2/mode…:1
LOW AIC002 Source file name looks like an AI patch artifact src/transformers/models/deberta_v2/conf…:1
LOW DKC006 Compose service does not declare a runtime user examples/metrics-monitoring/docker-comp…:38
LOW DKC006 Compose service does not declare a runtime user examples/metrics-monitoring/docker-comp…:23
LOW DKC006 Compose service does not declare a runtime user examples/metrics-monitoring/docker-comp…:10
LOW DKC006 Compose service does not declare a runtime user examples/metrics-monitoring/docker-comp…:1
Reset to top 5 164 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `huggingface/transformers`

**Score: 84/100 (A-)**  ·  164 findings  ·  scanned 2026-05-17 20:10 UTC  ·  1,740,177 LOC

| Severity | Count |
|---|---|
| CRITICAL | 0 |
| HIGH | 14 |
| MEDIUM | 37 |
| LOW | 113 |

📊 [Full filterable report](https://repobility.com/scan/27ddd460-787e-4a71-a753-7f661c746582/)  ·  ![scorecard](https://repobility.com/scan/27ddd460-787e-4a71-a753-7f661c746582/report.png?v=1779048608-s2)

### Top findings

1. **HIGH** `SEC029` — Server-Side Request Forgery (SSRF) — outbound HTTP from user input
   `src/transformers/models/beit/convert_beit_unilm_to_pytorch.py:243` · A10:2021 SSRF
2. **HIGH** `SEC029` — Server-Side Request Forgery (SSRF) — outbound HTTP from user input
   `src/transformers/models/audio_spectrogram_transformer/convert_audio_spectrogram_transformer_original_to_pytorch.py:187` · A10:2021 SSRF
3. **HIGH** `SEC029` — Server-Side Request Forgery (SSRF) — outbound HTTP from user input
   `src/transformers/integrations/integration_utils.py:2562` · A10:2021 SSRF
4. **HIGH** `SEC035` — Unbounded Resource Allocation — DoS risk
   `examples/pytorch/image-pretraining/run_mim_no_trainer.py:670` · CWE-770 · A04:2021 Insecure Design (DoS)
5. **HIGH** `DKR006` — Dockerfile pipes a remote script into a shell
   `docker/transformers-pytorch-xpu/Dockerfile:60`

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/27ddd460-787e-4a71-a753-7f661c746582/_
Already filed
Repobility already filed issue #46016 on this repo on 2026-05-17. Filing again would be duplicate spam.
View existing issue
Premium account
This scan was submitted by a Enterprise-tier account. Premium accounts have full outreach control â Repobility doesn't pre-fill the 'file as GitHub issue' button for paid users. You can still file the issue manually using the markdown body above (Copy markdown), or contact us if you'd like batch-filing enabled for your account.
Already filed
'huggingface' is on the known-megaproject org list. These projects use auto-triage bots and established security disclosure channels. Unsolicited automated issues from Repobility would be perceived as AI-generated spam. For security findings, follow the project's SECURITY.md policy. For non-security findings, open a focused PR or community discussion instead.
Already filed
This repo publishes a SECURITY.md policy and the scan contains 11 Critical/High security finding(s). Public issue filing would violate coordinated disclosure. Submit privately via the project's security reporting channel.
Megaproject â high spam risk
Could not determine 'huggingface/transformers' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.