{
  "schema_version": "1.4.0",
  "id": "GHSA-fcjw-8rhj-gwwc",
  "modified": "2023-01-23T20:12:32Z",
  "published": "2019-09-11T23:06:57Z",
  "aliases": [
    "CVE-2019-16109"
  ],
  "summary": "Authentication Bypass in Devise",
  "details": "An issue was discovered in Plataformatec Devise before 4.7.1. It confirms accounts upon receiving a request with a blank confirmation_token, if a database record has a blank value in the confirmation_token column. (However, there is no scenario within Devise itself in which such database records would exist.)",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "RubyGems",
        "name": "devise"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.7.1"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-16109"
    },
    {
      "type": "WEB",
      "url": "https://github.com/plataformatec/devise/issues/5071"
    },
    {
      "type": "WEB",
      "url": "https://github.com/plataformatec/devise/pull/5132"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/plataformatec/devise"
    },
    {
      "type": "WEB",
      "url": "https://github.com/plataformatec/devise/compare/v4.7.0...v4.7.1"
    },
    {
      "type": "WEB",
      "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise/CVE-2019-16109.yml"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-284"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2019-09-11T22:42:42Z",
    "nvd_published_at": "2019-09-08T20:15:10Z"
  }
}