Back to list

Snorkel Trainer.load uses an unsafe torch.load — CVE-2026-31222

GitHub · GitHub · CVE-2026-31222

ID
CVE-2026-31222
Date
Updated
Activity
Source
GitHub
Vendor
GitHub
Threat
high
CVSS
8.8
EPSS
0.00282

Summary

The snorkel library thru v0.10.0 contains an insecure deserialization vulnerability (CWE-502) in the Trainer.load() method of the Trainer class. The method loads model checkpoint files using torch.load() without enabling the security-restrictive weights_only=True parameter. This default behavior allows the deserialization of arbitrary Python objects via the Pickle module. A remote attacker can exploit this by…

Product

pip: snorkel

What to do

General, cautious steps (verify details in the official source):

  • Prioritize patching or mitigation immediately (treat as actively risky).
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories