Skip to content
Heist/ feed
Back to feed
Medium

python-jwcrypto — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-39373

JWCrypto implements JWK, JWS, and JWE specifications using python-cryptography. Prior to 1.5.7, an unauthenticated attacker can exhaust server memory by sending crafted JWE tokens with ZIP compression. The existing patch for CVE-2024-28102 limits input token size to 250KB but does not validate the decompressed output size. An unauthenticated attacker can cause memory exhaustion on memory-constrained systems. A token under the 250KB input limit can decompress to approximately 100MB. This vulnerability is fixed in 1.5.7.

Products
python-jwcrypto
Affected versions
0.2.1-1, 0.3.2-1, 0.4.2-1, 0.6.0-1, 0.6.0-2, 0.8.0-1, 1.0.0-2, 1.1.0-1, 1.5.4-1, 1.5.6-1, 1.5.6-1.1, 1.5.6-1.2
Fixed versions
Not specified
CVEs
CVE-2026-39373
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:01 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-39373

core-osv · Original source

Published 7 Apr 2026, 20:16 UTC

JWCrypto implements JWK, JWS, and JWE specifications using python-cryptography. Prior to 1.5.7, an unauthenticated attacker can exhaust server memory by sending crafted JWE tokens with ZIP compression. The existing patch for CVE-2024-28102 limits input token size to 250KB but does not validate the decompressed output size. An unauthenticated attacker can cause memory exhaustion on memory-constrained systems. A token under the 250KB input limit can decompress to approximately 100MB. This vulnerability is fixed in 1.5.7.

osv:UBUNTU-CVE-2026-39373

python-jwcrypto

Fixed versions: Not specified

python-jwcrypto

Fixed versions: Not specified

python-jwcrypto

Fixed versions: Not specified

python-jwcrypto

Fixed versions: Not specified

python-jwcrypto

Fixed versions: Not specified

python-jwcrypto

Fixed versions: Not specified

python-jwcrypto

Fixed versions: Not specified

python-jwcrypto

Fixed versions: Not specified

Complete source record
{
  "id": "db9584b5298e50eded2097ea9881778a172c41edd9b3273e1739fe5283659ee8",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-39373",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-39373",
    "summary": "JWCrypto implements JWK, JWS, and JWE specifications using python-cryptography. Prior to 1.5.7, an unauthenticated attacker can exhaust server memory by sending crafted JWE tokens with ZIP compression. The existing patch for CVE-2024-28102 limits input token size to 250KB but does not validate the decompressed output size. An unauthenticated attacker can cause memory exhaustion on memory-constrained systems. A token under the 250KB input limit can decompress to approximately 100MB. This vulnerability is fixed in 1.5.7.",
    "evidence": "osv:UBUNTU-CVE-2026-39373",
    "products": [
      {
        "name": {
          "value": "python-jwcrypto",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.2.1-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-jwcrypto",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.3.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.4.2-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-jwcrypto",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.6.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.6.0-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-jwcrypto",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.0.0-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-jwcrypto",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.5.4-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-jwcrypto",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.5.6-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-jwcrypto",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.5.6-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "1.5.6-1.1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "1.5.6-1.2",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-jwcrypto",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.5.6-1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-39373",
      "aliases": [
        "UBUNTU-CVE-2026-39373"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-jwcrypto",
            "purl": "pkg:deb/ubuntu/python-jwcrypto?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "0.2.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-39373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-jwcrypto",
                "binary_version": "0.2.1-1"
              },
              {
                "binary_name": "python3-jwcrypto",
                "binary_version": "0.2.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-jwcrypto",
            "purl": "pkg:deb/ubuntu/python-jwcrypto?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "0.3.2-1",
            "0.4.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-39373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-jwcrypto",
                "binary_version": "0.4.2-1"
              },
              {
                "binary_name": "python3-jwcrypto",
                "binary_version": "0.4.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-jwcrypto",
            "purl": "pkg:deb/ubuntu/python-jwcrypto?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.6.0-1",
            "0.6.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-39373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-jwcrypto",
                "binary_version": "0.6.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-jwcrypto",
            "purl": "pkg:deb/ubuntu/python-jwcrypto?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.8.0-1",
            "1.0.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-39373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-jwcrypto",
                "binary_version": "1.0.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-jwcrypto",
            "purl": "pkg:deb/ubuntu/python-jwcrypto?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.1.0-1",
            "1.5.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-39373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-jwcrypto",
                "binary_version": "1.5.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-jwcrypto",
            "purl": "pkg:deb/ubuntu/python-jwcrypto?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.5.6-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-39373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-jwcrypto",
                "binary_version": "1.5.6-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-jwcrypto",
            "purl": "pkg:deb/ubuntu/python-jwcrypto?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.5.6-1",
            "1.5.6-1.1",
            "1.5.6-1.2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-39373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-jwcrypto",
                "binary_version": "1.5.6-1.2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-jwcrypto",
            "purl": "pkg:deb/ubuntu/python-jwcrypto?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.5.6-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-39373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-jwcrypto",
                "binary_version": "1.5.6-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:02.728272245Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-39373"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-39373",
        "https://www.cve.org/CVERecord?id=CVE-2026-39373",
        "https://github.com/latchset/jwcrypto/security/advisories/GHSA-fjrm-76x2-c4q4"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-39373",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360183,
  "published_at": "2026-04-07T20:16:00+00:00"
}