Skip to content

An editorial team and a community building with AI

← All articles

News · Unitary AI (Detoxify) · 2 min read

Event date: · Published:

Detoxify patches high-severity deserialization flaw in load_checkpoint

Unitary AI disclosed a high-severity insecure deserialization vulnerability in the load_checkpoint function of its Detoxify library, allowing code execution via crafted checkpoint files.

On November 27, 2026, GitHub Security Advisories published the GHSA-58rq-hrhw-p349 advisory (CVE-2026-137998), disclosing a high-severity insecure deserialization vulnerability in Detoxify, a toxicity-classification library from Unitary AI that is commonly used in content-moderation and LLM guardrail pipelines.

What changed

  • The vulnerability affects Detoxify versions 0.5.3 through 0.5.4.
  • It carries a CVSS score of 8.5 (High) and is classified as CWE-502, Deserialization of Untrusted Data.
  • The flaw lives in the load_checkpoint function.
  • An attacker can embed a pickle reduce gadget inside a crafted .ckpt checkpoint file.
  • Loading that file through torch.load with weights_only=False triggers code execution at the privilege level of the user running it.
  • Exploitation requires local access and passive user interaction, with no special privileges needed.

What it means for AI builders

Detoxify (unitaryai/detoxify) is widely used for toxicity detection in content-moderation and LLM guardrail pipelines, so teams that load third-party or community checkpoint files into those pipelines risk silent code execution on their own infrastructure. Because the attack only requires local access and passive user interaction rather than elevated privileges, a single untrusted .ckpt file passed through load_checkpoint can run arbitrary code at whatever privilege level the loading process has.


Sources

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

Detoxify patches high-severity deserialization flaw in load_checkpoint | vibecoding.inc