Vulnerability DatabaseGHSA-g7f3-828f-7h7m

GHSA-g7f3-828f-7h7m
Python vulnerability analysis and mitigation

Overview

A vulnerability in Authlib's JWE zip=DEF implementation (GHSA-g7f3-828f-7h7m) was discovered, affecting versions prior to 1.6.5. The vulnerability allows attackers to perform denial of service attacks through unbounded DEFLATE decompression. The issue was disclosed and patched on October 10, 2025, with a CVSS score of 6.5 (Moderate) (GitHub Advisory).

Technical details

The vulnerability exists in Authlib's JOSE JWE zip=DEF (DEFLATE) support. The DeflateZipAlgorithm.decompress method in authlib/jose/rfc7518/jwe_zips.py calls zlib.decompress(s, -zlib.MAX_WBITS) without implementing a maximum output limit. When the protected header contains 'zip': 'DEF', the JWE decode flow processes the decrypted ciphertext through the decompress method without any streaming limit or quota. The CVSS base vector is CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, indicating network accessibility, low attack complexity, and high availability impact (GitHub Advisory).

Impact

The vulnerability enables denial of service attacks through memory and CPU exhaustion during JWE token decryption. A small ciphertext can expand into tens or hundreds of megabytes during decryption, with demonstration showing that a 4KB ciphertext can decompress to 50MB, consuming significant system resources. This affects any service using Authlib to decrypt JWE tokens with zip=DEF where attackers can submit decryptable tokens (GitHub Advisory).

Mitigation and workarounds

Several mitigation strategies are recommended: 1) Reject or strip zip=DEF for inbound JWEs at the application boundary until patching, 2) Implement a bounded decompression guard using zlib.decompress with max_length parameter, 3) Enforce strict maximum token sizes and implement rate limiting. The vulnerability is patched in version 1.6.5, which implements proper decompression limits (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23949HIGH8.6
  • PythonPython
  • jaraco.context
NoYesJan 20, 2026
CVE-2026-22219HIGH8.3
  • PythonPython
  • chainlit
NoYesJan 20, 2026
CVE-2026-23842HIGH7.5
  • PythonPython
  • chatterbot
NoYesJan 19, 2026
CVE-2026-23877MEDIUM5.3
  • PythonPython
  • swingmusic
NoYesJan 19, 2026
CVE-2026-23833LOW1.7
  • PythonPython
  • esphome
NoYesJan 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management