regex backtracking

  1. Pygments ReDoS: Mitigating Regex Backtracking in Code Highlighting

    Pygments’ long-running role as Python’s go-to syntax highlighter collided with a classic but under-appreciated risk in March 2021: several lexer regular expressions exhibited exponential or cubic worst‑case complexity, allowing crafted input to trigger a Regular Expression Denial of Service...