
UpTrajectory Review
Hugging Face Transformers, a ubiquitous Python library for deploying and testing machine learning models, carries a high-severity remote code execution flaw that went unpatched for months. The vulnerability exploits a deceptively simple trick: attackers add a parameter named _attn_implementation_internal to model configuration files hosted on Hugging Face, bypassing the trust_remote_code=false safeguard that developers rely on to prevent untrusted code from running. Because the parameter name mimics legitimate internal fields, it triggers no warnings, prompts, or log alerts—making it nearly invisible to the developer or operator downloading the model.
For small-business operators, this matters immediately if your team uses Hugging Face to test, fine-tune, or deploy AI models—whether for internal tools, customer-facing features, or CI/CD pipelines. You likely assumed that setting trust_remote_code=false kept you safe from malicious code embedded in third-party models. It did not. An attacker could poisoned a popular open model, and your automated pipeline would pull and execute it without raising a flag. The library sees 146 million downloads per month and 2.2 billion total installs; the surface area is staggering.
The vulnerability remained unfixed from August through early March, and patched versions account for only about one-fourth of current weekly installations. That means roughly 7 to 8 million downloads per week are still vulnerable. Hugging Face pushed a silent patch in version 5.3.0 on March 3, but silence helps no one—many teams did not upgrade immediately, and the CVE identifier (CVE-2026-4372) was assigned well after the fact. Researchers from Pluto Security discovered the flaw and responsibly reported it, but the lag between discovery and disclosure left organizations exposed without their knowledge.
The second-order damage extends beyond direct exploitation. This vulnerability exposes the fragility of the AI supply chain, a target attackers are already probing aggressively. A poisoned model in Hugging Face's repository could reach thousands of enterprises, startups, and researchers simultaneously. It also erodes confidence in the open-source AI ecosystem at a moment when adoption is accelerating. Teams now face a harder choice: isolate models from remote code execution at the cost of functionality, or trust that library maintainers catch every bypass.
Operators should immediately audit which versions of Transformers your teams use across development, testing, and production environments. Upgrade to version 5.3.0 or later without delay, and treat any Hugging Face model downloaded during the vulnerable window (August 2025 onward) as potentially compromised until verified. Beyond this incident, treat trust_remote_code=false as a starting line, not a finish line. Implement additional controls: scan model files for suspicious parameters before execution, restrict which repositories and models your pipelines can access, and log model downloads and configurations for forensic review. This flaw is a reminder that open-source does not mean untrusted—but it does mean you own the verification.
“The malicious field uses an underscore-prefixed name that looks like an internal implementation detail — the kind of field that config files are full of.” — CSO Online
Takeaway: Upgrade Transformers to 5.3.0 immediately; the trust_remote_code flag was bypassed for months.
Excerpt from the original — CSO Online
A high severity vulnerability in Hugging Face Transformers enables attackers to compromise systems that use the popular Python library to test and run AI models. The flaw impacts library versions that continue to be actively downloaded and comes at a time when attackers are increasingly targeting the AI supply chain, including through malicious models hosted on the Hugging Face platform.
The exploit for this vulnerability involves adding an innocuous-looking parameter called _attn_implementation_internal to remote model configuration files on Hugging Face and bypasses the trust_remote_code=false flag that normally prevents the execution of remote code accompanying models.
“The malicious field uses an underscore-prefixed name that looks like an internal implementation detail — the kind of field that config files are full of,” researchers from Pluto Security who found the …