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

CVE-2026-42544: Granian vulnerable to unauthenticated DoS via WebSocket subprotocol header panic

May 6, 2026 (updated May 13, 2026)

Granian aborts a worker process when an unauthenticated client sends a WebSocket upgrade request whose Sec-WebSocket-Protocol header contains non-ASCII bytes.

The crash happens in Granian’s WebSocket scope construction path, before the ASGI application is invoked.

This is a single-request Denial Of Service against one worker. Repeating the request across workers takes the service offline.

References

  • github.com/advisories/GHSA-vrg7-482j-p6f6
  • github.com/emmett-framework/granian/security/advisories/GHSA-vrg7-482j-p6f6
  • nvd.nist.gov/vuln/detail/CVE-2026-42544

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.2.0 before 2.7.4

Fixed versions

  • 2.7.4

Solution

Upgrade to version 2.7.4 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-248: Uncaught Exception
  • CWE-400: Uncontrolled Resource Consumption

Source file

pypi/granian/CVE-2026-42544.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:14 +0000.