id: CVE-2026-33868

info:
  name: Mastodon - Open Redirect
  author: theamanrawat
  severity: medium
  description: |
    Mastodon version < 4.5.8, < 4.4.15, < 4.3.21 is vulnerable to unauthenticated Open Redirect vulnerability (CWE-601) exists in the /web/* route due to improper handling of URL-encoded path segments.
  impact: |
    Redirect users to external domain.
  remediation: |
    Update Mastodon to versions 4.5.8, 4.4.15, 4.3.21.
  reference:
    - https://github.com/mastodon/mastodon/security/advisories/GHSA-xqw8-4j56-5hj6
    - https://nvd.nist.gov/vuln/detail/CVE-2026-33868
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
    cvss-score: 4.3
    cve-id: CVE-2026-33868
    epss-score: 0.00515
    epss-percentile: 0.39645
    cwe-id: CWE-601
  metadata:
    verified: true
    vendor: mastodon
    product: mastodon
    shodan-query: html:"mastodon-"
  tags: cve,cve2026,mastodon,open-redirect,vuln,unauth

http:
  - method: GET
    path:
      - "{{BaseURL}}/web/%2Finteract.sh:443"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/)?(?:[a-zA-Z0-9\-_\.@]*)interact\.sh.*$'
        part: header

      - type: status
        condition: or
        status:
          - 302
          - 301
# digest: 4a0a0047304502210089b126cfc879ac6abdb2c6d8ae5672c9c141393547709611e8d71b65381d17f3022030408587a7a09b1c6dce26cba6e918d46394744295f6a76206eb0840a9e99184:922c64590222798bb761d5b6d8e72950