Intel

AIKIDO-2026-626655

stanza is vulnerable to Deserialization of Untrusted Data

GHSA-487q-m798-cp85Published Jul 20, 2026
July 20, 2026

59

CVE Score

Medium

Deserialization of Untrusted Data

Are you affected? Scan for Free

TL;DR

The Document.from_serialized() method reconstructs annotated documents by calling pickle.loads() directly on the supplied serialized string. An application that deserializes a Stanza Document originating from an untrusted source triggers full pickle deserialization, executing arbitrary code embedded in a crafted payload. The vulnerable serialization path had used unrestricted pickle since the feature was introduced. The fix routes legacy pickle loading through a restricted unpickler that blocks unsafe globals and moves default document serialization to JSON.

How do I fix this?

Upgrade the stanza library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application deserializes Stanza Document objects that originate from untrusted sources.

Package

Versions

1.1.1 - 1.13.0

Fixed in 1.14.0

Background info

stanza is vulnerable to Deserialization of Untrusted Data in versions 1.1.1 - 1.13.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea