# CVE-2026-55520: Protego: Exponential backtracking ReDoS in robots.txt URL wildcard matching

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-08-28T18:42:38.334Z
- Modified: 2026-09-10T12:25:43.026Z
- Also known as: GHSA-wjmf-p669-5m5p, PYSEC-2026-3906
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- scrapy protego: < 0.6.2
- protego (PyPI): before 0.6.2

## Every score

- GitHub_M: CVSS:4.0 7.1 High `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`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: 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`

## References

- <https://github.com/scrapy/protego/security/advisories/GHSA-wjmf-p669-5m5p> (web)
- <https://github.com/scrapy/protego/commit/785940181659bf440ba82f1da148fade5087e858> (web)
- <https://github.com/scrapy/protego/releases/tag/0.6.2> (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)

## Sources

- CVE List: [CVE-2026-55520](https://www.cve.org/CVERecord?id=CVE-2026-55520), CVE Terms of Use, modified 2026-08-31
- GitHub Advisory Database: [GHSA-wjmf-p669-5m5p](https://github.com/advisories/GHSA-wjmf-p669-5m5p), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-55520](https://nvd.nist.gov/vuln/detail/CVE-2026-55520), Public domain, modified 2026-09-09
- PyPA Advisory Database: [PYSEC-2026-3906](https://osv.dev/vulnerability/PYSEC-2026-3906), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-55520 · Whole record: https://cve.day/CVE-2026-55520.json · Rebuilt by cve.day 2026-11-25T22:59:35.689Z
