Vulnerability DatabaseGHSA-q77q-crp2-mmjc

GHSA-q77q-crp2-mmjc: 
Python vulnerability analysis and mitigation

Summary

An Inefficient Regular Expression Complexity ('Catastrophic Backtracking / ReDoS', CWE-1333) vulnerability in LLM Markdown code-block and JSON extraction regexes (r"```(?:json)?\s*([\s\S]+?)+\s*```") allows remote attackers to freeze the Python/Node.js event loop (100% CPU Denial of Service) by returning a crafted unclosed code fence of 5,000 characters.

Proof of Concept (PoC)

import re
VULN_RE = re.compile(r"```(?:json)?\s*([a-zA-Z0-9_\s]+)+\s*```")
VULN_RE.search("```json\n" + "a" * 5000 + "!")

Remediation

Replace nested quantifier regular expressions with bounded linear-time string slicing (str.find()) and enforce a maximum input length limit.


Source: NVD

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-wrc3-8c98-283wHIGH8.6
  • Python logoPython
  • boi-tech-rag-xml-document-loader
NoYesOct 30, 2026
GHSA-q749-wr8p-6pc9HIGH8.5
  • Python logoPython
  • boi-tech-ai-agent-telemetry-logger
NoYesOct 30, 2026
GHSA-vr42-692h-pmm6HIGH8.2
  • Python logoPython
  • boi-tech-ai-chat-markdown-renderer
NoYesOct 30, 2026
GHSA-q77q-crp2-mmjcHIGH7.5
  • Python logoPython
  • boi-tech-llm-output-regex-parser
NoYesOct 30, 2026
GHSA-9pg5-8c7x-5hfxMEDIUM6.9
  • Python logoPython
  • joserfc
NoYesOct 30, 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

Additional Wiz resources

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