CVE-2026-55520scrapy protego
High 7.1 No auth needed
Follow: this CVE · scrapy · scrapy protego We alert you by email or Slack (account required).
- Priority
- 58
- CVSS 4.0
- 7.1
- EPSS
- —
- Auth required
- No
- Published
- Aug 28, 2026
- Updated
- Sep 9, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- 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/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
What happens
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.
What to do
- Apply the vendor's security update for protego.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | protego |
< 0.6.2 |
0.6.2 |
pip install "protego>=0.6.2" |
| PyPI | protego |
< 0.6.2 |
0.6.2 |
pip install "protego>=0.6.2" |
Per OSV / GitHub Advisories (GHSA-wjmf-p669-5m5p, PYSEC-2026-3906). Check the version in your lockfile before upgrading.
Affected products
- scrapy · protego
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- python313-Protego-0.6.2-1.1 on GA media · SUSE · openSUSE-SU-2026:11202-1 · Jul 7, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.