pypi package report

Is protego safe?

1 known vulnerability, worst severity HIGH.

// reach

0 direct dependencies

none carry a known advisory

    6 packages depend on it

    an advisory here reaches each of them

    Create a free accountfor every dependency path, dependent and what to upgrade
    // ai model usage

    No published models are known to use this package.


    cvss
    0.0
    high

    severity out of 10

    epss
    0.00%
    medium

    chance of exploitation in 30 days, 43rd percentile of all CVEs

    xyz score
    0.0
    medium

    CyberXYZ composite out of 10

    fig. 01 — GHSA-wjmf-p669-5m5p, the advisory selected below

    // 1 advisories

    GHSA-wjmf-p669-5m5p

    HIGHCVE-2026-55520
    // problem description

    Protego constructs regular expressions to match URLs against robots.txt Allow: and Disallow: directives, see protego.urlpattern.URLPattern.preparepatternforregex(). Every in the directive value is translated into a lazy .? regex piece, thus a specially crafted directive value with many asterisks may produce a regex that freezes the parser due to exponential backtracking.

    // impact

    Parsing a specially crafted robots.txt with protego.Protego.parse() and then trying to match an URL with protego.Protego.canfetch() results in the latter call not returning for a period dependent on the length of the URL.

    // proof of concept
    from protego import Protego
    
    robotstxt = f"""
    User-agent: *
    Disallow: /{"*1" * 12}*Z
    """
    rp = Protego.parse(robotstxt)
    url = "/" + "1" * 60
    rp.can_fetch(url, "mybot")  # freezes
    // cvss v4.0 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

    Attack vector
    Network
    Attack complexity
    Low
    Attack requirements
    None
    Privileges required
    None
    User interaction
    Passive
    Confidentiality (vulnerable system)
    None
    Integrity (vulnerable system)
    None
    Availability (vulnerable system)
    High
    Confidentiality (subsequent systems)
    None
    Integrity (subsequent systems)
    None
    Availability (subsequent systems)
    None

    Checked 2026-10-23 at 18:48 UTC. The most recent advisory here was published 2026-08-28. Updated continuously from NVD, GHSA, OSV and CNA feeds.

    Think a verdict here is wrong? Tell us — we respond within 2 business days.