ADVISORIES

Vulnerability

CVE-2026-55520

Protego is a pure-Python robots.txt parser with support for modern conventions. Prior to 0.6.2, protego._urlpattern._URLPattern._prepare_pattern_for_regex translates every asterisk in an Allow or Disallow directive into a lazy regular-expression wildcard, so a directive containing many asterisks creates exponential backtracking. After protego.Protego.parse processes a crafted robots.txt file, protego.Protego.can_fetch can spend an attacker-controlled period matching a near-miss URL and deny service to the crawler. The vulnerable path is src/protego/_urlpattern.py in the _URLPattern match logic. This issue is fixed in version 0.6.2.

5 advisories report this vulnerability, across 4 ecosystems.

Advisories

  • DEBIAN-CVE-2026-55520

    Protego is a pure-Python robots.txt parser with support for modern conventions. Prior to 0.6.2, protego._urlpattern._URLPattern._prepare_pattern_for_regex translates every asterisk in an Allow or Disallow directive into…

    CVE-2026-55520 Debian Updated 1 October 2026
  • GHSA-wjmf-p669-5m5p

    Protego has exponential backtracking ReDoS in robots.txt URL wildcard matching

    High CVE-2026-55520 PyPI Updated 10 September 2026
  • PYSEC-2026-3906

    Protego has exponential backtracking ReDoS in robots.txt URL wildcard matching

    CVE-2026-55520 PyPI Updated 10 September 2026
  • UBUNTU-CVE-2026-55520

    Protego is a pure-Python robots.txt parser with support for modern conventions. Prior to 0.6.2, protego._urlpattern._URLPattern._prepare_pattern_for_regex translates every asterisk in an Allow or Disallow directive into…

    CVE-2026-55520 Ubuntu Updated 24 November 2026
  • openSUSE-SU-2026:11202-1

    python313-Protego-0.6.2-1.1 on GA media

    CVE-2026-55520 openSUSE Updated 9 July 2026

References