{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "1.3.8"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "cdb239fcbd4a9f95d8e80460d9b14871d6967c5b"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "9fd558c18d1c7c3510dda7fd9b10d674444511e7"
            },
            {
              "fixed": "cdb239fcbd4a9f95d8e80460d9b14871d6967c5b"
            }
          ],
          "repo": "https://github.com/valuemelody/melody-auth",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-269"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141334.json"
  },
  "details": "ValueMelody melody-auth through 1.3.8 contains a privilege escalation vulnerability in impersonateUser that allows users with a limited impersonation role to impersonate super_admin accounts. When S2sConfig.impersonationRoles includes a role such as support, attackers can obtain refresh tokens carrying the target's full roles, gaining super_admin control over the authorization server and relying applications.",
  "id": "CVE-2026-141334",
  "modified": "2026-12-01T16:45:42.282394114Z",
  "published": "2026-12-01T15:43:17.175Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141334.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/ValueMelody/melody-auth"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/ValueMelody/melody-auth/blob/v1.3.8/server/src/handlers/user.ts#L429-L475"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ValueMelody/melody-auth/commit/cdb239fcbd4a9f95d8e80460d9b14871d6967c5b"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/ValueMelody/melody-auth/issues/554"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-141334"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/valuemelody-melody-auth-through-1.3.8-privilege-escalation-via-user-impersonation"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "ValueMelody melody-auth through 1.3.8 Privilege Escalation via User Impersonation"
}