Skip to content
Heist/ feed
Back to feed
High

python-protego — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-55520

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.

Products
python-protego
Affected versions
0.1.16+dfsg-1, 0.1.16+dfsg-2, 0.1.16+dfsg-3, 0.2.1+dfsg-1, 0.3.0+dfsg-1, 0.4.0+dfsg-1, 0.5.0+dfsg-1, 0.6.0+dfsg-1, 0.6.2+dfsg-1
Fixed versions
Not specified
CVEs
CVE-2026-55520
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:46 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-55520

core-osv · Original source

Published 28 Aug 2026, 20:18 UTC

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.

osv:UBUNTU-CVE-2026-55520

python-protego

Fixed versions: Not specified

python-protego

Fixed versions: Not specified

python-protego

Fixed versions: Not specified

python-protego

Fixed versions: Not specified

python-protego

Fixed versions: Not specified

python-protego

Fixed versions: Not specified

Complete source record
{
  "id": "e04c8934c03e7442bf1200a22f868346dbf4295fe32f9329fab90d927ea4aead",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-55520",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-55520",
    "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.",
    "evidence": "osv:UBUNTU-CVE-2026-55520",
    "products": [
      {
        "name": {
          "value": "python-protego",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.1.16+dfsg-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-protego",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.1.16+dfsg-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.1.16+dfsg-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.2.1+dfsg-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-protego",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.2.1+dfsg-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.3.0+dfsg-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-protego",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.0+dfsg-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-protego",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.6.0+dfsg-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.6.2+dfsg-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-protego",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.0+dfsg-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "0.5.0+dfsg-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "0.6.0+dfsg-1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-55520",
      "aliases": [
        "UBUNTU-CVE-2026-55520"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-protego",
            "purl": "pkg:deb/ubuntu/python-protego?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.1.16+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-55520.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-protego",
                "binary_version": "0.1.16+dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-protego",
            "purl": "pkg:deb/ubuntu/python-protego?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.1.16+dfsg-2",
            "0.1.16+dfsg-3",
            "0.2.1+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-55520.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-protego",
                "binary_version": "0.2.1+dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-protego",
            "purl": "pkg:deb/ubuntu/python-protego?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.2.1+dfsg-1",
            "0.3.0+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-55520.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-protego",
                "binary_version": "0.3.0+dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-protego",
            "purl": "pkg:deb/ubuntu/python-protego?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.4.0+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-55520.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-protego",
                "binary_version": "0.4.0+dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-protego",
            "purl": "pkg:deb/ubuntu/python-protego?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.6.0+dfsg-1",
            "0.6.2+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-55520.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-protego",
                "binary_version": "0.6.2+dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-protego",
            "purl": "pkg:deb/ubuntu/python-protego?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.4.0+dfsg-1",
            "0.5.0+dfsg-1",
            "0.6.0+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-55520.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-protego",
                "binary_version": "0.6.0+dfsg-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:59:07.799702364Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-55520"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-55520",
        "https://www.cve.org/CVERecord?id=CVE-2026-55520",
        "https://github.com/scrapy/protego/security/advisories/GHSA-wjmf-p669-5m5p"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-55520",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 359327,
  "published_at": "2026-08-28T20:18:00+00:00"
}