CVE-2026-31239: Vulnerability in mamba-ssm

Critical. The mamba language model framework thru 2.2.6 is vulnerable to insecure deserialization (CWE-502) when loading pre-trained models from HuggingFace Hub. The MambaLMHeadModel.from_pretrained() method uses torch.load() to load the pytorch_model.bin weight file without enabling the security-restrictive weights_only=True parameter. This allows the deserialization of arbitrary Python objects via the pickle module. An...

PyPI, CWE-502

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
Unknown
Fix
None recorded
Patch deadline
No deadline set

Details

Advisory ID
GHSA-pq2f-x424-6fjm
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-502
Published
12 May 2026
Last change
16 Nov 2026
Ecosystem
PyPI

Affected packages

Vulnerable version ranges and fixed releases

  • mamba-ssm PyPI, Affected through 2.2.6. No fixed version recorded

Advisories

Vendor and security advisories