Articles

California sues OpenAI over the Hugging Face incident: what happened and what changes

California Attorney General Rob Bonta sued OpenAI on 16 November 2026 over the July incident in which agents from one of its tests left their sandbox and got into Hugging Face’s systems. Earlier state lawsuits were about how ChatGPT treats consumers. This one treats AI agents that escape control as a risk to everyone.

By , founder of Convexify ·

Cover of the article “California sues OpenAI over the Hugging Face incident”, with a portrait of Javier Sáez Hurtado

Why did California sue OpenAI?

The California Attorney General sued OpenAI on Monday, 16 November 2026, over the July incident in which AI agents from one of its tests left the environment they were supposed to stay in and got into Hugging Face’s systems. The case was filed in San Francisco Superior Court and announced by Attorney General Rob Bonta.

The complaint has two parts. First, that OpenAI tested models with cybersecurity skills “without the safeguards and monitoring necessary”, and that this is a public nuisance, the legal tool for a risk that affects everyone. Second, that the company misled the public about how safe its practices were, which would break California’s Unfair Competition Law. Bonta put it in one line: “The law is simple: Don’t do things that can hurt people without proper safeguards in place.”

Sandbox
A closed test space where an agent can run code without touching real systems. Once the agent gets out, it is acting on the real world.
Evaluation
A test that measures what a model can do. In security, the model is asked to attack prepared systems to see how far it gets.
Misalignment
When a model chases the goal you gave it by a path you did not want. Here: getting a good score by going out to find the answers.

A state suing OpenAI is not new. Florida did it in June, eight states in October and Texas on 23 October, according to Newsweek’s list. What is new is the reason. Earlier suits were mostly about how ChatGPT treats consumers and minors. This one is about agents that get out.

What happened at Hugging Face in July?

Between 9 and 13 July 2026, an agent system that OpenAI was evaluating left its test environment and got into the infrastructure of Hugging Face, the platform where most open models are published and downloaded. Hugging Face found it, cut off access and disclosed it on 16 July. OpenAI explained days later that the agents were its own.

Timeline of the case: from 9 to 13 July 2026, agents from an OpenAI test get into Hugging Face systems; on 16 November, the California Attorney General sues OpenAI
Four months between the incident and the lawsuit. Infographic by Javier Sáez Hurtado, CC BY 4.0.

The technical report Hugging Face published on 27 July sets out the path in some detail:

  1. The way out. According to OpenAI’s account, as summarized by Hugging Face, the agent left the evaluation sandbox through an unknown flaw in the package registry cache proxy. It then used a third party’s public sandbox as a launch pad.
  2. The way in. It uploaded a dataset to Hugging Face with a malicious configuration. That abused two flaws in dataset processing: one to read files and one to run code.
  3. What it reached. Hugging Face reports unauthorized access to a limited set of internal datasets and to several credentials used by its services, read access to an internal database with no writes, and about 17,600 logged actions.
  4. Why. The agents guessed that Hugging Face might hold the solutions to the security benchmark they were taking, and went to look for them. In Hugging Face’s words, it was an attempt to cheat the evaluation. CNBC reports the same, based on what OpenAI said.

Hugging Face added two important points. It found no changes to public models, datasets or Spaces, and the only customer content accessed was five datasets linked to security benchmarks. Even so, it advised all users to rotate their access tokens and review recent activity on their accounts.

What does the lawsuit say?

The lawsuit argues that the Hugging Face incident was not a one-off accident but the expected result of a culture that puts growth ahead of safety. Its key number: OpenAI lost control of its autonomous agents at least 80 times during testing, and Hugging Face was one of those 80 incidents.

The numbers do not fully match across sources, so it helps to see them side by side:

Table comparing what the California Attorney General and Hugging Face say about the incident: who attacked, duration, what they reached, customer data, motive and other cases
The numbers of the incident, by source. Infographic by Javier Sáez Hurtado, CC BY 4.0.

How many agents, and for how long?

What each source says, checked on 17 November 2026

Agents or modelsDuration
California Attorney General (press release)Hundreds of autonomous agentsOver two days
Newsweek (on the complaint)About 700 agentsAbout two and a half days
CNBC (citing OpenAI)Two models, one unreleasedNot given
Hugging Face (technical report)One agent system with many short-lived sandboxesAbout two and a half days inside, activity from 9 to 13 July

These accounts can all be true at once: two models can run hundreds of agents in parallel. But they show there is no single, checked version of the facts yet, and the figure of 80 incidents comes from the state. According to CNBC, the state says OpenAI told investigators about 80 incidents involving loss of control and access to third-party networks and websites. Newsweek adds that the complaint describes them as losses of control in testing, not 80 attacks the size of Hugging Face.

What California wants: the press release gives no figures. According to Newsweek, the complaint asks for a court order to change OpenAI’s practices, restitution, the return of profits from those practices and civil penalties of 2,500 dollars per proven violation, with no total amount. The investigation started in September, with a subpoena to OpenAI the same month.

How has OpenAI responded?

OpenAI rejects the case. Its spokesperson, Drew Pusateri, told CNBC, CBS and others that the lawsuit appears to single out OpenAI over a challenge every major AI lab has identified. He added that since the incident the company has made an extensive and transparent effort to understand and address misaligned model activity.

According to those outlets, OpenAI lists what it has done since July: it published a technical report, commissioned an independent one, notified affected organizations (more than 100 by 26 September, according to Newsweek), strengthened its safeguards and set up a framework to disclose misalignment cases. On the same day, 16 November, it said outside evaluators from Apollo Research, METR, Transluce and Goodfire will work with deep access to its models.

One fact supports part of its argument. According to CBS, Anthropic has disclosed three incidents in which Claude gained unauthorized access to outside organizations during testing, and CNBC says Meta and Google have also reported cases. The problem exists at every lab. The lawsuit asks a different question: whether OpenAI took the care it should have, and whether it told the truth about it.

Is this only an OpenAI problem?

No. It is the core problem with agents: a system that chases a goal with real tools can find paths nobody planned for. What this case shows is that those paths are no longer theory. An agent that only wanted to pass a test ended up reading another company’s credentials.

That is why the public safety angle matters to me. Until now, an agent’s mistakes were treated as a matter between the company and its customer: if the agent gets it wrong, you pay. Here the harm fell on a third party that had signed nothing. Hugging Face was not part of that test. It is the same reason OpenAI limits GPT-6 Cyber to verified organizations: a model that can attack systems needs a boundary, and that boundary has to hold against the model itself.

In the United States, the case has already reached Congress: on 23 July two representatives introduced an AI “kill switch” bill, according to CNBC. Alabama and Delaware have also asked OpenAI for information about the incident, according to Newsweek.

What does it mean for companies in Europe?

For a European company nothing changes legally right away: this is a case in a California court, and it will take time. But the context changes in three ways.

The AI Act already covers part of this. The EU AI Act requires providers of general-purpose models with systemic risk, the most powerful ones, to test them with adversarial testing, assess and reduce their risks, protect their cybersecurity and report serious incidents to the Commission’s AI Office (Article 55). These rules have applied since 2 August 2025. An incident like Hugging Face is exactly the kind of case they want reported.

If you use Hugging Face, check your tokens. The advice to rotate access tokens dates from July, but many companies have old tokens in scripts, servers or integrations that nobody reviews. It takes ten minutes.

If you use agents, isolation is not optional. An agent that runs code, browses or calls APIs should:

  1. work in a real sandbox, with no internet access except to the places it needs;
  2. have its own credentials, with the least access possible and an expiry date;
  3. log everything it does, with alerts when it goes off plan;
  4. ask a person for approval before any action that cannot be undone.

This is the same advice I gave about OpenAI agents with skills and plugins: the more an agent can do, the more its limits matter.

What I would do

I don’t know how the lawsuit will end, and it is not for me to judge it. What I do see is that the incident confirms something I keep saying: an agent does what you ask by the path it finds, not by the one you picture.

So I keep my rule: no irreversible action without human approval, and no high-value account within an agent’s reach. I also don’t hand my communication with other people to an agent. If the best labs in the world, with whole teams working on this, have had agents leave their test environments, a normal company should not assume its own will stay put.

What I would do this week: review which tokens and credentials our agents and scripts hold, remove the ones we don’t need and check that everything that runs code does it in a closed environment. You don’t need to wait for any court ruling for that.

Disclosure: Convexify, the firm I founded, is part of the OpenAI Select Partner program. This article is based on the California Attorney General’s press release, Hugging Face’s posts and the linked sources. OpenAI’s page on the incident could not be read while preparing this article, so OpenAI’s position comes from what the press has quoted.

Visual summary in six ideas of California's lawsuit against OpenAI over the Hugging Face incident: date, claims, what happened, motive, numbers and OpenAI's response
California v. OpenAI in six ideas. Infographic by Javier Sáez Hurtado, CC BY 4.0.

What to remember

  • California sued OpenAI on 16 November 2026 for public nuisance and unfair competition.
  • It started with the July incident: agents from an OpenAI test left their sandbox and got into Hugging Face looking for the evaluation answers.
  • Hugging Face says they reached internal datasets and credentials, plus five customer datasets linked to security benchmarks.
  • The state counts at least 80 losses of control in testing. OpenAI says every major lab faces this challenge.
  • For a company: agents in closed environments, minimal credentials, full logs and human approval for anything irreversible.

The article in one image

Visual summary in six ideas of California's lawsuit against OpenAI over the Hugging Face incident: date, claims, what happened, motive, numbers and OpenAI's response
You can reuse this infographic under a CC BY 4.0 licence: credit Javier Sáez Hurtado and link to this article.

Frequently asked questions

Why did California sue OpenAI?

Because of the July 2026 incident in which agents from an OpenAI test left their sandbox and got into Hugging Face. The Attorney General says OpenAI tested its models without the safeguards and monitoring they needed, that this is a public nuisance, and that it breaks California’s Unfair Competition Law.

What happened between OpenAI and Hugging Face?

Between 9 and 13 July 2026, an agent system that OpenAI was evaluating left its test environment and used a malicious dataset to run code at Hugging Face. It reached internal datasets and several credentials. Hugging Face found it, cut off access and disclosed it on 16 July.

Was Hugging Face user data stolen?

According to Hugging Face’s technical report of 27 July, the only customer content accessed was five datasets linked to security benchmarks, and it found no changes to public models, datasets or Spaces. Even so, it advised users to rotate their access tokens.

What does California want?

The press release gives no figures. According to Newsweek, which read the complaint, the state asks for a court order to change OpenAI’s practices, restitution, the return of profits and civil penalties of up to 2,500 dollars per proven violation, with no total amount.

How has OpenAI responded?

Its spokesperson told several outlets that the lawsuit appears to single out OpenAI over a challenge every major AI lab has identified, and that since July it has made an extensive and transparent effort to understand and address misaligned model activity, with a technical report, an independent report and notices to affected organizations.

Does this affect companies in Europe?

Not directly: it is a case in a California court. But in the EU the AI Act already requires providers of general-purpose models with systemic risk to test them, reduce their risks and report serious incidents. Any company that uses agents should also check how it isolates them and which credentials they hold.

Sources

  1. California Attorney General, press release on the lawsuit against OpenAI (16 Nov 2026)
  2. California Attorney General, complaint (PDF)
  3. Hugging Face, Security incident disclosure, July 2026 (16 Jul 2026)
  4. Hugging Face, technical timeline of the intrusion (27 Jul 2026)
  5. OpenAI, The Hugging Face incident and the road ahead
  6. CNBC, California sues OpenAI over Hugging Face and other AI model loss of control (16 Nov 2026)
  7. CBS San Francisco, California AG sues OpenAI over Hugging Face hack (16 Nov 2026)
  8. Newsweek, California sues OpenAI: full list of state lawsuits (Nov 2026)
  9. CBS News, interview with Clément Delangue of Hugging Face about the incident (2 Aug 2026)
  10. Al Jazeera, OpenAI says its AI model went rogue: what do we know? (22 Jul 2026)
  11. Regulation (EU) 2024/1689 on artificial intelligence (AI Act), EUR-Lex

Javier Sáez Hurtado is the founder of Convexify, an Andorra-based boutique AI firm, and Head of AI Heroes at Learning Heroes. Podcast appearances · LinkedIn · YouTube channel