{"id":"CVE-2026-55520","published":"2026-08-28T18:42:38Z","modified":"2026-08-31T18:54:01Z","title":"Protego: Exponential backtracking ReDoS in robots.txt URL wildcard matching","vendor":"scrapy","product":"protego","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00511,"percentile":0.36794,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/scrapy/protego/security/advisories/GHSA-wjmf-p669-5m5p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/scrapy/protego/commit/785940181659bf440ba82f1da148fade5087e858","tags":["x_refsource_MISC"]},{"url":"https://github.com/scrapy/protego/releases/tag/0.6.2","tags":["x_refsource_MISC"]}],"priority":{"score":12.3,"factors":[{"name":"EPSS percentile","points":7.36},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"scrapy","affectedVersions":[{"vendor":"scrapy","product":"protego","versions":["< 0.6.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-31T15:42:18.385319Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Protego","vulnerableRanges":["<0.6.2"],"patched":["0.6.2"],"from":["GHSA-wjmf-p669-5m5p","PYSEC-2026-3906"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-67865","exploited":false,"provenance":"source"}}