Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. apscheduler
  4. ›
  5. CVE-2026-31072

CVE-2026-31072: APScheduler's JSONSerializer and CBORSerializer are vulnerable to Remote Code Execution (RCE) via Insecure Deserialization

May 19, 2026 (updated June 4, 2026)

The JSONSerializer and CBORSerializer in APScheduler (all versions including 3.10.x and 4.0.0a5) are vulnerable to Remote Code Execution (RCE) via Insecure Deserialization. The unmarshal_object function allows for arbitrary class instantiation and state injection by dynamically importing modules and calling setstate on any class available in the Python environment. An attacker can exploit this by submitting a specially crafted JSON or CBOR payload to an application using these serializers

References

  • gist.github.com/nedlir/11fb77f35a59cbba73392a086b02a9c6
  • github.com/advisories/GHSA-9cfw-f3f9-7mm7
  • nvd.nist.gov/vuln/detail/CVE-2026-31072

Code Behaviors & Features

Detect and mitigate CVE-2026-31072 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0-a.1 up to 4.0.0-a.6

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data

Source file

pypi/apscheduler/CVE-2026-31072.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:26 +0000.