Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2025-14546

Versions of the package fastapi-sso before 0.19.0 are vulnerable to Cross-site Request Forgery (CSRF) due to the improper validation of the OAuth state parameter during the authentication callback. While the get_login_url method allows for state generation, it does not persist the state or bind it to the user's session. Consequently, the verify_and_process method accepts the state received in the query parameters without verifying it against a trusted local value. This allows a remote attacker to trick a victim into visiting a malicious callback URL, which can result in the attacker's account being linked to the victim's internal account.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-14546
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 02:16 UTC · Revision 1

Source evidence

CVE-2025-14546

core-osv · Original source

Published 19 Dec 2025, 05:00 UTC

Versions of the package fastapi-sso before 0.19.0 are vulnerable to Cross-site Request Forgery (CSRF) due to the improper validation of the OAuth state parameter during the authentication callback. While the get_login_url method allows for state generation, it does not persist the state or bind it to the user's session. Consequently, the verify_and_process method accepts the state received in the query parameters without verifying it against a trusted local value. This allows a remote attacker to trick a victim into visiting a malicious callback URL, which can result in the attacker's account being linked to the victim's internal account.

osv:CVE-2025-14546
Complete source record
{
  "id": "9c104049bb7a684d5a86ff72a247dbec56826a7fb9dc5cec5266eedeb702246e",
  "url": "https://osv.dev/vulnerability/CVE-2025-14546",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2025-14546",
    "summary": "Versions of the package fastapi-sso before 0.19.0 are vulnerable to Cross-site Request Forgery (CSRF) due to the improper validation of the OAuth state parameter during the authentication callback. While the get_login_url method allows for state generation, it does not persist the state or bind it to the user's session. Consequently, the verify_and_process method accepts the state received in the query parameters without verifying it against a trusted local value. This allows a remote attacker to trick a victim into visiting a malicious callback URL, which can result in the attacker's account being linked to the victim's internal account.",
    "evidence": "osv:CVE-2025-14546",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-14546",
      "aliases": [
        "CVE-2025-14546",
        "GHSA-hp6r-r9vc-q8wx",
        "PYSEC-2026-1362"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/tomasvotava/fastapi-sso",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "c905eafe2d6d7aab5d2b929e53ba98f238fdb21d"
                },
                {
                  "fixed": "6117d1a5ad498ba57d671e8a059ebe20db5abe02"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.19.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6117d1a5ad498ba57d671e8a059ebe20db5abe02"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.18.0",
            "0.17.0",
            "0.16.0",
            "0.15.0",
            "0.14.2",
            "0.14.1",
            "0.14.0",
            "0.13.1",
            "0.13.0",
            "0.12.2",
            "0.12.1",
            "0.12.0",
            "0.11.0",
            "0.10.0",
            "0.9.1",
            "0.9.0",
            "0.8.0",
            "0.7.4",
            "0.7.3",
            "0.7.2",
            "0.7.1",
            "0.7.0",
            "0.6.4",
            "0.6.3",
            "0.6.2",
            "0.6.1",
            "0.5.1",
            "0.5.0",
            "0.4.0",
            "0.3.0",
            "0.2.13",
            "0.2.21",
            "0.2.12",
            "0.2.11",
            "0.2.10",
            "0.2.9",
            "0.2.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-14546.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.065532835Z",
      "provider": "osv",
      "references": [
        "https://security.snyk.io/vuln/SNYK-PYTHON-FASTAPISSO-14386403",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/14xxx/CVE-2025-14546.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-14546",
        "https://github.com/tomasvotava/fastapi-sso/issues/266",
        "https://github.com/tomasvotava/fastapi-sso/commit/6117d1a5ad498ba57d671e8a059ebe20db5abe02"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-285"
        ],
        "cna_assigner": "snyk",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/14xxx/CVE-2025-14546.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-14546",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509443,
  "published_at": "2025-12-19T05:00:02.151+00:00"
}