{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.3.24"
                  },
                  {
                    "fixed": "1.3.41"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "16fa03d159270624bf3059f3ea79b1e7d7edfc1a"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "ec11cfe89464aa8d4321219721d57c5d828b7571"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v1.3.41",
                "range": [
                  {
                    "fixed": "5228a1ca42d9a2c756aff8b702c52db21516a9fa"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v2.0.0",
                "range": [
                  {
                    "fixed": "f3f5461e829953715ba446a5439f1d4526f14d5e"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "3be7399585d749b691376d5cdca2d5f305d3e69d"
            },
            {
              "fixed": "5228a1ca42d9a2c756aff8b702c52db21516a9fa"
            },
            {
              "fixed": "16fa03d159270624bf3059f3ea79b1e7d7edfc1a"
            },
            {
              "fixed": "ec11cfe89464aa8d4321219721d57c5d828b7571"
            },
            {
              "fixed": "f3f5461e829953715ba446a5439f1d4526f14d5e"
            }
          ],
          "repo": "https://github.com/kestra-io/kestra",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-94pv-f379-3gp3"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-613"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138121.json"
  },
  "details": "Kestra 1.3.24 before 1.3.41 contains an insufficient credential expiration vulnerability that allows holders of a revoked administrator password to keep authenticating on peer webserver nodes through BasicAuthService's process-local verified-token cache. Attackers whose token remains cached on a peer node can call POST /api/v1/{tenant}/basicAuth to overwrite the shared administrator credentials and lock out the legitimate administrator.",
  "id": "CVE-2026-138121",
  "modified": "2026-11-28T02:45:54.244176844Z",
  "published": "2026-11-28T01:43:04.937Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138121.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/kestra-io/kestra"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/kestra-io/kestra/blob/v1.3.40/webserver/src/main/java/io/kestra/webserver/services/BasicAuthService.java#L253-L260"
    },
    {
      "type": "FIX",
      "url": "https://github.com/kestra-io/kestra/commit/16fa03d159270624bf3059f3ea79b1e7d7edfc1a"
    },
    {
      "type": "FIX",
      "url": "https://github.com/kestra-io/kestra/commit/ec11cfe89464aa8d4321219721d57c5d828b7571"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/kestra-io/kestra/releases/tag/v1.3.41"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/kestra-io/kestra/releases/tag/v2.0.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/kestra-io/kestra/security/advisories/GHSA-94pv-f379-3gp3"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138121"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/kestra-1.3.24-before-1.3.41-insufficient-credential-expiration-via-basic-auth-token-cache"
    }
  ],
  "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": "Kestra 1.3.24 before 1.3.41 Insufficient Credential Expiration via Basic-Auth Token Cache"
}