CVE-2026-55520
HIGH 7.1CVSS 4.0Protego has exponential backtracking ReDoS in robots.txt URL wildcard matching
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.
- Published
- 28 Aug 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-wjmf-p669-5m5pPYSEC-2026-3906
- Sources
- NVDJSONOSV GHSA-wjmf-p669-5m5pJSONOSV PYSEC-2026-3906JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | PyPA | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | protego | < 0.6.2 | 0.6.2 |
References
- https://github.com/scrapy/protego/commit/785940181659bf440ba82f1da148fade5087e858 · WEB
- https://github.com/scrapy/protego/releases/tag/0.6.2 · WEB
- https://github.com/scrapy/protego/security/advisories/GHSA-wjmf-p669-5m5p · WEB
- https://github.com/scrapy/protego · PACKAGE
- https://pypi.org/project/protego · PACKAGE
- https://github.com/advisories/GHSA-wjmf-p669-5m5p · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-55520 · ADVISORY
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 28 Aug 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Sep 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 28 Aug 2026)