Protego: Exponential backtracking ReDoS in robots.txt URL wildcard matching
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1333.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| scrapy | protego | before 0.6.2 | 0.6.2 | Patch available | CNA |
| — | Protego (PyPI) | before 0.6.2 | 0.6.2 | Patch available | GHSA-wjmf-p669-5m5p |
- protego Vendorscrapy Affected before 0.6.2 Fixed in 0.6.2 Patch available CNA
- Protego (PyPI) Vendor— Affected before 0.6.2 Fixed in 0.6.2 Patch available GHSA-wjmf-p669-5m5p
Remediation
- Fix · CNA protego (scrapy) Fixed in 0.6.2
- Fix · GHSA-wjmf-p669-5m5p Protego (PyPI) Fixed in 0.6.2 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-55520
- 2026-10-03 Alias added: GHSA-wjmf-p669-5m5p
References
More scrapy vulnerabilities
- TI-2025-05586 Brotli decompression bomb DoS in scrapy/scrapy CVSS 3.0HIGH 7.5
- TI-2024-03333 Authorization Header Leak During Cross-Domain Redirect in scrapy/scrapy CVSS 3.0HIGH 7.5
- TI-2024-03331 XML External Entity (XXE) Vulnerability in scrapy/scrapy CVSS 3.0HIGH 7.5
- TI-2024-01831 Authorization Header Leakage in scrapy/scrapy on Scheme Change Redirects CVSS 3.0HIGH 7.5
- TI-2026-68383 Arbitrary module import via Referrer-Policy header in Scrapy CVSS 3.1HIGH 7.5
- TI-2017-10313 Scrapy 1.4 allows remote attackers to cause a denial of service (memory consumption) via… CVSS 3.0HIGH 7.5
Sources
- CVE-2026-55520 · CVE Program
- CVE-2026-55520 · NVD
- FIRST EPSS
- GHSA-wjmf-p669-5m5p · GitHub Advisory Database · CC BY 4.0
- CVE-2026-55520 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences